net: ag71xx: use phylink_generic_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 17 Nov 2021 16:46:31 +0000 (16:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 11:36:48 +0000 (11:36 +0000)
commitc8fa4bac30e1ca4b0213f85fd868d0f14545d4c7
tree1d9280d8ca6abda0b0b6494aeeb4a4e92ec62ae7
parent5e20a8aa48a0c32dad6165b26d5030a6131a25ed
net: ag71xx: use phylink_generic_validate()

ag71xx apparently only supports MII port type, which makes it different
from other implementations. However, Oleksij says there is no special
reason for this.

Convert the driver to use phylink_generic_validate(), which will allow
all ethtool port linkmodes instead of only MII, giving the driver
consistent behaviour with other drivers.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/ag71xx.c