Re: [RFC Patch net-next v2 8/9] net: dsa: microchip: add the phylink get_caps

From: Florian Fainelli
Date: Mon May 16 2022 - 22:58:16 EST




On 5/13/2022 3:22 AM, Arun Ramadoss wrote:
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@xxxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

Many ways to skin a cat^w report what a given port can do to phylink, I would have probably used a bitmask for each type of interface, but this works as well.
--
Florian