]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83f4c269d04ffaa8b9a8a6ecc290d39840a32ed5
tree1d9280d8ca6abda0b0b6494aeeb4a4e92ec62ae7
parentb196bad68fd8431875f6acd398fc19a64c758bcd
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