Mac Studio and M1 Mini kernel panic with USB-C hubs
I have two bus-powered USB-C hubs made by different manufacturers. When I plug either of them (with no other devices plugged in) into my Mac Studio or M1 Mac Mini, I'll soon get a kernel panic like this:
panic(cpu 0 caller 0xfffffe001f2a88d4): Sleep transition timed out after 35 seconds while notifying applications.
Debugger message: panic
This mostly happens when the Mac is asleep. I first noticed it happening when I'd plugged in a hub into my Mini which is in my bedroom. It reboots spontaneously every 45 mins or so. It also panics in the same way at random intervals while powered on and in active use, suggesting it's talking about some kind of "USB Sleep", and not system sleep. Disconnecting the hub stops it happening.
I have also seen this kernel panic on my Mac Studio without a USB-C hub connected, but it happens far less often. I do have a USB 3.0 hub as well, but that one doesn't seem to cause problems, it's only newer ones with USB 3.1 + C support. Aside from that, the symptoms are the same on both machines: panics while asleep.
I see that this panic has been reported since the introduction of Apple Silicon fairly regularly, and seems to be caused by USB hubs from many different manufacturers, though there are reports of some monitors causing it too (like the Apple-backed LG 5K ultra fine).
Both machines are running Monterey 12.5.
Does anyone have any fixes for this?
Mac Studio