kernel: ar8216: add get_features method
authorDavid Bauer <mail@david-bauer.net>
Wed, 2 Jun 2021 17:34:01 +0000 (19:34 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 12 Oct 2021 09:38:20 +0000 (11:38 +0200)
commite7c5e08db09a0034a1dc5f013af651339743fd40
tree017c3b7a3ba85d0741d754ff0b1fb2a72bdca9d4
parent9b258f220f1223dc578e1cfe3ff026fb98b9edd2
kernel: ar8216: add get_features method

Modifying PHY capabilities in the probe function broke with upstream
commit 92ed2eb7f4b7 ("net: phy: probe the PHY before determining the
supported features").

AR8316 switches only support 10/100 Mbit/s link modes because of this
change.

Provide a get_features method for the PHY driver, so Gigabit link mode
will be advertised to link partners again.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 766e0f584a325b0b80a97bbc86ca515d97c63001)
target/linux/generic/files/drivers/net/phy/ar8216.c