net: dsa: mv88e6xxx: pass mv88e6xxx_chip structure to port_max_speed_mode
authorAlexis Lothoré <alexis.lothore@bootlin.com>
Mon, 29 May 2023 08:02:45 +0000 (10:02 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 May 2023 06:54:33 +0000 (23:54 -0700)
commit18e1b7422dffe4c0f897fa63eb074f79d1d9d0a0
treeed3b2ef3810613a1071227b43b232bd408be1099
parent2f93493970dfa46779f134f1fb2cd803b8c80ea4
net: dsa: mv88e6xxx: pass mv88e6xxx_chip structure to port_max_speed_mode

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@bootlin.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/port.c
drivers/net/dsa/mv88e6xxx/port.h