]> git.baikalelectronics.ru Git - kernel.git/commit
net: ag71xx: remove interface checks in ag71xx_mac_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 17 Nov 2021 16:46:25 +0000 (16:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 11:36:48 +0000 (11:36 +0000)
commit5e20a8aa48a0c32dad6165b26d5030a6131a25ed
tree154ed05b78f70a4cfb045008959a5dbdb2f07cce
parent680e9d2cd4bf0d2a46e578aed5b330f946bd7620
net: ag71xx: remove interface checks in ag71xx_mac_validate()

As phylink checks the interface mode against the supported_interfaces
bitmap, we no longer need to validate the interface mode, nor handle
PHY_INTERFACE_MODE_NA in the validation function. Remove these to
simplify the implementation.

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