bcm53xx: add Tenda AC9 switch workaround openwrt-21.02
authorRafał Miłecki <rafal@milecki.pl>
Thu, 31 Jul 2025 08:25:52 +0000 (10:25 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 31 Jul 2025 08:31:52 +0000 (10:31 +0200)
commit78e4cffcd882389cb8f0bf818303f85f8d1e9c8e
tree0175ab138a219a87edd2dccd399e3c74098bb9e2
parent4a1d8ef55cbf247f06dae8e958eb8eb42f1882a5
bcm53xx: add Tenda AC9 switch workaround

This fixes regressed support for Tenda AC9 which got broken somewhere
between LEDE 17.01 and OpenWrt 18.06.

At some point bcm47xx_nvram_gpio_pin() started working on bcm53xx
devices and it resulted in swconfig b53 performing GPIO-based switch
reset. It exposed some bug as switch stopped working.

The problem is most likely to be some missing initialization step. Tenda
AC9 comes with BCM53125 rev 4 (pretty common chip) but apparently needs
some extra quirk.

As a workaround (it doesn't make much sense to debug swconfig driver
which has a working DSA replacement) simply avoid full switch reset.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/bcm53xx/patches-5.4/701-b53-add-Tenda-AC9-switch-reset-workaround.patch [new file with mode: 0644]