]> git.baikalelectronics.ru Git - kernel.git/commit
net: dpaa2-mac: remove interface checks in dpaa2_mac_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 17 Nov 2021 17:24:07 +0000 (17:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2021 11:38:44 +0000 (11:38 +0000)
commitc7b4ed024489612ce0b8864ec2d6aaab2f5b5278
treee9b4c443d358272af5330c624c193d41dda36d42
parentf18bcf0fc2aaa661b1e66475e64e7efc6ecd76e3
net: dpaa2-mac: remove interface checks in dpaa2_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/freescale/dpaa2/dpaa2-mac.c