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>
Wed, 2 Jun 2021 22:00:46 +0000 (00:00 +0200)
commit766e0f584a325b0b80a97bbc86ca515d97c63001
tree0aadc9e672b4b8a570fe0d8b4d61ad3998e9edf4
parent29c94fe28ec6ec2f2cbd08e5af9a1b665587b3fe
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>
target/linux/generic/files/drivers/net/phy/ar8216.c