When i reboot my MR8300, or when power gets turned off / on, there is an 2/3 chance that the lan ports are not available after the boot.
This happens ever since i am using all four lan ports in both OpenWRT 23.05 and 24.10.
The wan port always works.
When they don't work, dmesg tells me:
[ 1.746516] qca8k-ipq4019 c000000.switch lan1 (uninitialized): failed to connect to PHY: -ENODEV
[ 1.752783] qca8k-ipq4019 c000000.switch lan1 (uninitialized): error -19 setting up PHY for tree 0, switch 0, port 1
[ 1.761988] qca8k-ipq4019 c000000.switch lan2 (uninitialized): failed to connect to PHY: -ENODEV
[ 1.772211] qca8k-ipq4019 c000000.switch lan2 (uninitialized): error -19 setting up PHY for tree 0, switch 0, port 2
[ 1.781194] qca8k-ipq4019 c000000.switch lan3 (uninitialized): failed to connect to PHY: -ENODEV
[ 1.791473] qca8k-ipq4019 c000000.switch lan3 (uninitialized): error -19 setting up PHY for tree 0, switch 0, port 3
[ 1.800418] qca8k-ipq4019 c000000.switch lan4 (uninitialized): failed to connect to PHY: -ENODEV
[ 1.810748] qca8k-ipq4019 c000000.switch lan4 (uninitialized): error -19 setting up PHY for tree 0, switch 0, port 4
This is the state the device is in when it happens.
All LEDs on the lan ports are frozen, the ones who are on are permanently on, i can connect and disconnect cables without them changing state. The WAN port works and blinks nicely.
If this is a hardware issue, then i don't get it why it randomly works on reboots.
I notice that there is an USB device: have you tried to unplug it? It is notorious for creating a lack of electrical power. That may impact the LAN ports, as you mentionned the issue only occurs when the 4 ports are plugged.
I played around, disabled all LEDs that can be disabled, like the green:usb one, did opkg remove kmod-usb3 kmod-usb-xhci-hcd (the flash drive still works without it) and it looks like it is now stable, even when it is plugged in.
I will test it a few days to see if the issue appears again.
Yes, it is obviously a power problem.
The power supply is the original that came with the router. I will simply try a bunch of different flash drives to see which one works best. So far, it is stable now.