25.12.6 on raspberry 5 USB problem

Hi, as I reported here: Rip5 25.12.6 network device HAT+ problem since updating from 25.12.5 to 25.12.6 the network devices (eth1 and eth2) are no longer recognised. Everything works on 25.12.5 and latest snapshots, it seems to only affect release 25.12.6. Don't think much can be done about it but wanted to report it here as it may inform others with similar hardware setups.

On further investigation 25.12-SNAPSHOT also is broken whilst daily snapshot is fine. I have no idea what is going on here but clearly something changed between the 25.12.5 builds and 25.12.6

thanks.

Hi all, as reported here, problems with raspberry 5 and 25.12.6 my rip5 no longer recognizes my realtek r8156 since 25.12.6 I did some investigations and noticed that any builds, via imagebuilder or firmware selector, using 25.12-SNAPSHOT are also brorken but daily snapshot works fine as does 25.12.5 release.
Would be really helpful if some knowledgeable person knows what changed in the build process between these versions as it looks like even 25.12.7 when it comes out will have the same problem since normally these are based off the 25.12-SNAPSHOT.

thanks for any help/advice.

Please share the output of cat /sys/kernel/debug/usb/devices

sure, see below...

OpenWrt 25.12-SNAPSHOT, r33339-2d44c5ae22 Dave's Guitar  ...same output as 25.12.6

root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 346d:5678 USB Disk 2.0
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

root@OpenWrt:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 2
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 6.12
S:  Manufacturer=Linux 6.12.113 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=346d ProdID=5678 Rev= 2.00
S:  Manufacturer=USB
S:  Product=Disk 2.0
S:  SerialNumber=9690861274554421195
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 6.12
S:  Manufacturer=Linux 6.12.113 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 2
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 6.12
S:  Manufacturer=Linux 6.12.113 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 6.12
S:  Manufacturer=Linux 6.12.113 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

-----------------------------------------------------------------------------
OpenWrt SNAPSHOT, r38056-2cac72feed  ..same output as 25.12.5

root@Rip5:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
Bus 002 Device 003: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 346d:5678 USB Disk 2.0
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

root@Rip5:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 6.18
S:  Manufacturer=Linux 6.18.60 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0001:04:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 4
D:  Ver= 2.10 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2109 ProdID=3431 Rev= 4.20
S:  Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 4
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 6.18
S:  Manufacturer=Linux 6.18.60 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0001:04:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  3
P:  Vendor=0bda ProdID=8156 Rev=31.04
S:  Manufacturer=Realtek
S:  Product=USB 10/100/1G/2.5G LAN
S:  SerialNumber=4013000001
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=256mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=r8152
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=128ms
C:  #Ifs= 2 Cfg#= 2 Atr=a0 MxPwr=256mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=
E:  Ad=83(I) Atr=03(Int.) MxPS=  16 Ivl=128ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=
I:  If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
C:  #Ifs= 2 Cfg#= 3 Atr=a0 MxPwr=256mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=
E:  Ad=83(I) Atr=03(Int.) MxPS=  16 Ivl=128ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=
I:  If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  3
P:  Vendor=0bda ProdID=8156 Rev=31.04
S:  Manufacturer=Realtek
S:  Product=USB 10/100/1G/2.5G LAN
S:  SerialNumber=4013000001
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=256mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=r8152
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=128ms
C:  #Ifs= 2 Cfg#= 2 Atr=a0 MxPwr=256mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=
E:  Ad=83(I) Atr=03(Int.) MxPS=  16 Ivl=128ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=
I:  If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
C:  #Ifs= 2 Cfg#= 3 Atr=a0 MxPwr=256mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=
E:  Ad=83(I) Atr=03(Int.) MxPS=  16 Ivl=128ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=
I:  If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 2
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 6.18
S:  Manufacturer=Linux 6.18.60 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=346d ProdID=5678 Rev= 2.00
S:  Manufacturer=USB
S:  Product=Disk 2.0
S:  SerialNumber=9908131222541082115
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 6.18
S:  Manufacturer=Linux 6.18.60 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 2
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 6.18
S:  Manufacturer=Linux 6.18.60 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=06 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 6.18
S:  Manufacturer=Linux 6.18.60 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

as I said differences in the builds result in differences in usb detection.
Note: This is a raspberry pi 5 with HAT for nvme (via pcie) and 2x2.5g (via usb).

If it helps, this is the HAT in question: waveshare-rip5-HAT

EDIT: looks to me like 'Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub' is not being detected on 25.12.6 and 25.12-SNAPSHOT, hence nothing connected to that will show up either, i.e. the r8156.

please do a
lsusb -t

also, (I am, too lazy too look into the repository for this)
uname -a

I know some USB hubs can control vbus for each port, via ububctl
But in your case some GPIO is missing to control vbus for the HUB

the output of lsusb -t is already shown in the linked first post above.
uname -a is different for all the builds i've tried since it just shows the kernel version. I believe 25.12.5 is v6.12.94 and 25.12.6 is 6.12.112.
The important thing to remember here is that 25.12.5 and daily snapshots work fine whereas 25.12.6 and 25.12-SNAPSHOT do not. I am convinced this is due to some change in the build process between the different versions, unless some package has drastically changed between versions !

EDIT: Since it looks like my raspberry pi 5 setup on 25.12.6 is EOL due to some changes which apparently no one can trace I've decided to take the course that 'best way to solve any problem is to eliminate it', so I'll be retiring my raspberry as a router and just bought a FLINT2.
Now to see what fun i can have with openwrt on the MT6000 !

After digging around how the hat+ is connected to the raspberry pi board, I discovered your USB root controller on the board is missing ...

So on the working branch the controller is visible via lsusb , this must also true for lspci

Can you share the output of lspci for both cases ?

Hi and thanks for your response, pls see below info you requested:

OpenWrt SNAPSHOT, r38056-2cac72feed

andy@Rip5:~$ lspci
0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
0001:01:00.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
0001:02:03.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
0001:02:07.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
0001:03:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. RTS5765DL NVMe SSD Controller (DRAM-less) (rev 01)
0001:04:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01)
0002:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
0002:01:00.0 Ethernet controller: Raspberry Pi Ltd RP1 PCIe 2.0 South Bridge

andy@Rip5:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
Bus 002 Device 003: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 346d:5678 USB Disk 2.0
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub


------------------------------------------------------------------------------------

OpenWrt 25.12-SNAPSHOT, r33342-6c57f7cd04 Dave's Guitar

root@Rip5:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 346d:5678 USB Disk 2.0
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

root@Rip5:~# lspci
0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
0001:01:00.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
0001:02:03.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
0001:02:07.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
0001:03:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. RTS5765DL NVMe SSD Controller (DRAM-less) (rev 01)
0001:04:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01)
0002:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
0002:01:00.0 Ethernet controller: Raspberry Pi Ltd RP1 PCIe 2.0 South Bridge

looks to me like lspci sees the AsMedia controllers for the nvme but lsusb does not see network device. Is there anything i can patch/load/compile to make this work on 25.12.6 ?
Any help would be welcome.

Now I'm getting more confused

Still missing

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
Bus 002 Device 003: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN

The ASMedia is a bridge controller is feeding NVMe and the VIA USB 3.0 controller.

0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 30)
0001:01:00.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
0001:02:03.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
0001:02:07.0 PCI bridge: ASMedia Technology Inc. ASM1182e 2-Port PCIe x1 Gen2 Packet Switch
0001:03:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. RTS5765DL NVMe SSD Controller (DRAM-less) (rev 01)
0001:04:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01)

Maybe this will get me some light here
dmesg | grep xhci

see below:

OpenWrt SNAPSHOT, r38056-2cac72feed

root@Rip5:~# dmesg | grep xhci
[    1.116224] xhci_hcd 0001:04:00.0: xHCI Host Controller
[    1.116232] xhci_hcd 0001:04:00.0: new USB bus registered, assigned bus number 1
[    1.188392] xhci_hcd 0001:04:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0700240000000890
[    1.188572] xhci_hcd 0001:04:00.0: xHCI Host Controller
[    1.188577] xhci_hcd 0001:04:00.0: new USB bus registered, assigned bus number 2
[    1.188581] xhci_hcd 0001:04:00.0: Host supports USB 3.0 SuperSpeed
[    1.188628] usb usb1: Manufacturer: Linux 6.18.60 xhci-hcd
[    1.188788] usb usb2: Manufacturer: Linux 6.18.60 xhci-hcd
[    1.356963] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    1.356971] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 3
[    1.357402] xhci-hcd xhci-hcd.0: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000808000000810
[    1.357412] xhci-hcd xhci-hcd.0: irq 135, io mem 0x1f00200000
[    1.357469] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    1.357472] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 4
[    1.357477] xhci-hcd xhci-hcd.0: Host supports USB 3.0 SuperSpeed
[    1.357525] usb usb3: Manufacturer: Linux 6.18.60 xhci-hcd
[    1.357527] usb usb3: SerialNumber: xhci-hcd.0
[    1.357712] usb usb4: Manufacturer: Linux 6.18.60 xhci-hcd
[    1.357714] usb usb4: SerialNumber: xhci-hcd.0
[    1.358022] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    1.358026] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 5
[    1.358448] xhci-hcd xhci-hcd.1: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000808000000810
[    1.358457] xhci-hcd xhci-hcd.1: irq 140, io mem 0x1f00300000
[    1.358512] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    1.358515] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 6
[    1.358518] xhci-hcd xhci-hcd.1: Host supports USB 3.0 SuperSpeed
[    1.358554] usb usb5: Manufacturer: Linux 6.18.60 xhci-hcd
[    1.358557] usb usb5: SerialNumber: xhci-hcd.1
[    1.358719] usb usb6: Manufacturer: Linux 6.18.60 xhci-hcd
[    1.358721] usb usb6: SerialNumber: xhci-hcd.1
[    1.484650] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.634660] usb 3-2: new high-speed USB device number 2 using xhci-hcd
[    1.794975] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[    1.966669] usb 2-2: new SuperSpeed USB device number 3 using xhci_hcd
[   10.685379] r8152-cfgselector 2-1: reset SuperSpeed USB device number 2 using xhci_hcd
[   10.905419] r8152-cfgselector 2-2: reset SuperSpeed USB device number 3 using xhci_hcd

-----------------------------------------------------------------------------------------
OpenWrt 25.12-SNAPSHOT, r33342-6c57f7cd04 Dave's Guitar
root@Rip5:~# dmesg | grep xhci
[    2.476956] xhci_hcd 0001:04:00.0: xHCI Host Controller
[    2.482519] xhci_hcd 0001:04:00.0: new USB bus registered, assigned bus number 1
[    2.492294] xhci_hcd 0001:04:00.0: can't setup: -12
[    2.497495] xhci_hcd 0001:04:00.0: USB bus 1 deregistered
[    2.503227] xhci_hcd 0001:04:00.0: init 0001:04:00.0 fail, -12
[    2.509390] xhci_hcd 0001:04:00.0: probe with driver xhci_hcd failed with error -12
[    3.010855] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    3.016269] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 1
[    3.024296] xhci-hcd xhci-hcd.0: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000808000000810
[    3.033647] xhci-hcd xhci-hcd.0: irq 136, io mem 0x1f00200000
[    3.039817] xhci-hcd xhci-hcd.0: xHCI Host Controller
[    3.045224] xhci-hcd xhci-hcd.0: new USB bus registered, assigned bus number 2
[    3.052819] xhci-hcd xhci-hcd.0: Host supports USB 3.0 SuperSpeed
[    3.080788] usb usb1: Manufacturer: Linux 6.12.113 xhci-hcd
[    3.086716] usb usb1: SerialNumber: xhci-hcd.0
[    3.121571] usb usb2: Manufacturer: Linux 6.12.113 xhci-hcd
[    3.127488] usb usb2: SerialNumber: xhci-hcd.0
[    3.140943] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    3.146337] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 3
[    3.154347] xhci-hcd xhci-hcd.1: hcc params 0x0240fe6d hci version 0x110 quirks 0x0000808000000810
[    3.163684] xhci-hcd xhci-hcd.1: irq 141, io mem 0x1f00300000
[    3.169843] xhci-hcd xhci-hcd.1: xHCI Host Controller
[    3.175238] xhci-hcd xhci-hcd.1: new USB bus registered, assigned bus number 4
[    3.182818] xhci-hcd xhci-hcd.1: Host supports USB 3.0 SuperSpeed
[    3.210700] usb usb3: Manufacturer: Linux 6.12.113 xhci-hcd
[    3.216611] usb usb3: SerialNumber: xhci-hcd.1
[    3.251350] usb usb4: Manufacturer: Linux 6.12.113 xhci-hcd
[    3.257262] usb usb4: SerialNumber: xhci-hcd.1
[    3.377948] usb 1-2: new high-speed USB device number 2 using xhci-hcd

the only obvious change here is the kernel version but that's to be expected between the two openwrt versions.
wait,i can also spot xhci_hcd failed errors...hmmm ? started to think this is a kernel issue. I've found other linux post suggesting the same on other distros. snapshot (which works) is currently at 6.18.60 and 25.12.6 (which doesn't work) is kernel 6.12.113. There may also be a quirk entry i could add to cmdline.txt but haven't discovered any yet.

ok, so i did some further testing, something that would not be possible if this was an standard router.
I loaded Debin12 and got exactly the same results; i.e. lsusb not registering the 8156.
Did the same on Debian13 and all was good.
I got exactly the same outputs on lsusb, lspci, dmesg | grep xhci as i did on OWRT versions.
Here is what I found, note (X) denotes not working:
Debian12--Kernel 6.12.109 X
Debian13--Kernel 6.18.50 ok
OWRT 25.12.5--Kernel 6.12.94 ok
OWRT 25.12.6--Kernel 6.12.112 X
OWRT daily SS--Kernel 6.18.60 ok

Something happened between v6.12.94 and v6.12.112, then corrected again at 6.18.50.
So I hope openwrt 25.12.7 will have a kernel that works !

OpenWrt SNAPSHOT, r38056-2cac72feed

root@Rip5:~# dmesg | grep xhci
...
[   10.685379] r8152-cfgselector 2-1: reset SuperSpeed USB device number 2 using xhci_hcd
[   10.905419] r8152-cfgselector 2-2: reset SuperSpeed USB device number 3 using xhci_hcd

The are only resets

This is the PCIe to USB3 root controller

OpenWrt SNAPSHOT, r38056-2cac72feed

root@Rip5:~# dmesg | grep xhci

[    1.116224] xhci_hcd 0001:04:00.0: xHCI Host Controller
[    1.116232] xhci_hcd 0001:04:00.0: new USB bus registered, assigned bus number 1
[    1.188392] xhci_hcd 0001:04:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0700240000000890
[    1.188572] xhci_hcd 0001:04:00.0: xHCI Host Controller
[    1.188577] xhci_hcd 0001:04:00.0: new USB bus registered, assigned bus number 2
[    1.188581] xhci_hcd 0001:04:00.0: Host supports USB 3.0 SuperSpeed
[    1.188628] usb usb1: Manufacturer: Linux 6.18.60 xhci-hcd
[    1.188788] usb usb2: Manufacturer: Linux 6.18.60 xhci-hcd

which if of course not visible, in the not working branch

This should be bisect'able

I remember some timing issues with my Marvell EspressBin board, using a slow responce PCIe Wifi card.
The PCIe controller will show up, but no wifi card. Adding some delay the wifi card shows up.

Maybe this is here as well

Please post full dmesg for both cases

I assume you didn't build OpenWrt youself, so load kmod-ikconfig and print

zcat /proc/config.gz | grep PCI

also for both cases

The fix is here: