Re: [PATCH net-next v2 6/7] net: dsa: mv88e6xxx: pass mv88e6xxx_chip structure to port_max_speed_mode

From: Florian Fainelli
Date: Fri May 19 2023 - 22:56:17 EST




On 5/19/2023 7:13 AM, alexis.lothore@xxxxxxxxxxx wrote:
From: Alexis Lothoré <alexis.lothore@xxxxxxxxxxx>

Some switches families have minor differences on supported link speed for
ports. Instead of redefining a new port_max_speed_mode for each different
configuration, allow to pass mv88e6xxx_chip structure to allow
differentiating those chips by known chip id

Signed-off-by: Alexis Lothoré <alexis.lothore@xxxxxxxxxxx>

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