]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ff849ad403c6ad9b5b3fd72f12b4710bee5cb16
tree3f20243d6417d150d8af894a4cade4dbb91a269d
parent7777bbb81beb8e4a1f69a6adcf84dbb8cef4b51e
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