Files
openwrt_NSS_ACW/target/linux
Tony Ambardar 70000ab509 ath79: use gpios for switch management in WZR-HP-G300NH variants
The RTL8366S/RB switch node in DTS defines "mii-bus = <&mdio0>" to permit
management via SMI but this has likely never worked, instead falling back
to using GPIOs in the past:

     rtl8366s switch: cannot find mdio bus from bus handle (yet)
     rtl8366s switch: using GPIO pins 19 (SDA) and 20 (SCK)
     rtl8366s switch: RTL8366 ver. 1 chip found

Recently, the rtl8366s and rtl8366_smi drivers were changed from built-in
to loadable modules. This affected driver probing order and caused switch
initialization (and network access) to fail:

     rtl8366s switch: using MDIO bus 'ag71xx_mdio'
     rtl8366s switch: unknown chip id (ffff)
     rtl8366s switch: chip detection failed, err=-19

Force using GPIOs to manage the switch by dropping the "mii-bus" DTS
definition, which works for both built-in and loadable switch drivers.

Fixes: 6e0f0eae5b ("ath79: use rtl8366s and rtl8366_smi as a module")
Fixes: 575ec7a4b1 ("ath79: use rtl8366rb as a module")
Tested-by: Tony Ambardar <itugrok@yahoo.com> # WZR-HP-G300NH (RTL8366S)
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2023-04-23 18:57:29 +02:00
..
2023-03-18 12:52:17 +01:00
2023-04-22 01:15:03 +02:00
2023-04-22 01:15:03 +02:00
2023-04-22 01:10:24 +02:00
2022-12-23 19:44:20 +01:00
2023-04-15 14:15:42 +02:00
2023-04-22 01:15:03 +02:00
2023-04-22 01:10:24 +02:00
2023-04-08 14:41:01 +02:00
2023-04-22 01:10:24 +02:00
2023-01-30 11:13:14 +01:00
2023-03-18 12:52:17 +01:00
2023-03-20 22:44:28 +01:00
2023-04-22 01:15:03 +02:00
2023-01-07 01:30:31 +01:00
2023-02-26 22:22:48 +01:00
2023-01-30 18:01:14 +08:00