octeon: force pcs reset to fix qca833x traffic
authorAndrew LaMarche <andrewjlamarche@gmail.com>
Mon, 31 Mar 2025 17:00:28 +0000 (17:00 +0000)
committerRobert Marko <robimarko@gmail.com>
Wed, 2 Apr 2025 08:04:52 +0000 (10:04 +0200)
commitce1991cd6466e12fc3c018e5729572b52d4e20fd
tree814579f73c79aa711cffd0afe8c7070e5151d145
parente37ad78539d410368de2e5b95388b3acf8686126
octeon: force pcs reset to fix qca833x traffic

There is a known bug with qca833x switches where they fail to pass
traffic without first resetting the PCS. U-Boot already has this fix,
though it uses a much newer networking stack from Marvell. This commit
backports the fix for OpenWrt.

References:
- https://github.com/u-boot/u-boot/blob/master/arch/mips/mach-octeon/cvmx-helper-sgmii.c#L197-L225
- https://github.com/u-boot/u-boot/blob/master/arch/mips/mach-octeon/cvmx-helper-sgmii.c#L701-L737

Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18385
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/octeon/patches-6.6/702-qca833x-force-pcs-reset.patch [new file with mode: 0644]