net: dsa: microchip: ksz8: Make flow control, speed, and duplex on CPU port configurable
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 27 Nov 2023 14:50:59 +0000 (15:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Nov 2023 16:38:34 +0000 (08:38 -0800)
commit87f062ed853ce75f9f71fd2f7aa9887ee7e8ba65
tree4e190c5c5f52268be6a7743b0608921c0675dbdb
parentbed7b22e1316cf8714db5a6805368e66237bdf31
net: dsa: microchip: ksz8: Make flow control, speed, and duplex on CPU port configurable

Allow flow control, speed, and duplex settings on the CPU port to be
configurable. Previously, the speed and duplex relied on default switch
values, which limited flexibility. Additionally, flow control was
hardcoded and only functional in duplex mode. This update enhances the
configurability of these parameters.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/20231127145101.3039399-2-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz8.h
drivers/net/dsa/microchip/ksz8795.c
drivers/net/dsa/microchip/ksz_common.c