]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: ksz9477: separate phylink mode from switch register
authorArun Ramadoss <arun.ramadoss@microchip.com>
Wed, 22 Jun 2022 09:04:21 +0000 (14:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jun 2022 10:31:43 +0000 (11:31 +0100)
commit014b9ec0fabbac5e3cd072f285f917636774ecae
tree3cc178dffb68705488f46f2da341137bb8b21757
parent9e5cc8a380095803b439f295a65baa57b1d19375
net: dsa: microchip: ksz9477: separate phylink mode from switch register

As per 'commit 8539f2f53c36 ("net: dsa: microchip: call
phy_remove_link_mode during probe")' phy_remove_link_mode is added in
the switch_register function after dsa_switch_register. In order to have
the common switch register function, moving this phylink validation to
phylink_get_caps validation hook.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz_common.c