]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: get rid of SPEED_MAX setting
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 21 Jun 2022 09:37:40 +0000 (10:37 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Jun 2022 03:26:41 +0000 (20:26 -0700)
commit210e28a51213d1ab13d76104799436a689c66697
tree5ab7983915bb76bdec57803cf00256ccab66bf6d
parent91ef28b1dbfc42234836e3ef8aac2a0c6d54b2ca
net: dsa: mv88e6xxx: get rid of SPEED_MAX setting

Currently, all the device specific speed setting functions convert
SPEED_MAX to the actual speed of the port. Rather than having each
of the mv88e6xxx chip specifics handling SPEED_MAX, derive it from
the mac_capabilities instead.

This is only needed for CPU and DSA ports, so move the logic up into
mv88e6xxx_setup_port() - which allows us to kill off all users of
SPEED_MAX throughout the driver.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
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