]> 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)
commita78dab3dd0adfe59b3f7f7a55d9cc4acc78d0743
treee9b4c443d358272af5330c624c193d41dda36d42
parentecacbabe5e73863a42e13160bd672f32c4a07d8e
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