OSDN Git Service

net: mtk_eth_soc: remove interface checks in mtk_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 16 Nov 2021 10:06:48 +0000 (10:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2021 11:23:39 +0000 (11:23 +0000)
commitdb81ca153814475d7e07365d46a4d1134bd122e2
tree3f20243d6417d150d8af894a4cade4dbb91a269d
parent83800d29f0c578e82554e7d4c6bfdbdf9b6cf428
net: mtk_eth_soc: remove interface checks in mtk_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/mediatek/mtk_eth_soc.c