]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: add the phylink get_caps
authorArun Ramadoss <arun.ramadoss@microchip.com>
Tue, 17 May 2022 09:43:32 +0000 (15:13 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 May 2022 11:50:59 +0000 (12:50 +0100)
commitca6e6dab1af75ba9ed3fde5320490d7b01b21c48
tree3036bf3aae249666ef1c1c8fa6e9ddfd497b3ed8
parent5c94584eeb4ee1dbb8eb472d0ac0bf7d83395b9d
net: dsa: microchip: add the phylink get_caps

This patch add the support for phylink_get_caps for ksz8795 and ksz9477
series switch. It updates the struct ksz_switch_chip with the details of
the internal phys and xmii interface. Then during the get_caps based on
the bits set in the structure, corresponding phy mode is set.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz8795.c
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h