Debugging some #asahilinux USB issues with
@janneJanne Grunau and right now it looks like ATCPHY is even more cursed than we thought: At boot time, macOS powers up the usb2 PHY once, switches it to host mode and immediately shuts it down again even when no device is connected. I missed this so far but it looks like we actually need this if we want usb2 devices plugged in during boot to work reliably ๐
@svenSven Peter
@janneJanne Grunau USB2 is kind of a massive thorn in the side of Type-C handling tbf >_<
On Qualcomm SoCs we have a fun issue: the USB2 PHY derives its clock from the USB3 PIPE clock, and the QMPPHY driver currently turns PIPE off when you go into 4-lane alt mode, so using 4-lane DP breaks USB2 on that port until full reboot :D (and just Not Turning it Off only fixes hotplugged devices, I'm gonna try modeling the clk relationship properly)
But hey, at least that's literally our only issue and we don't ever have to reset anything :P
If you have a fediverse account, you can quote this note from your own instance. Search https://social.treehouse.systems/users/valpackett/statuses/115855050397735543 on your instance and quote it. (Note that quoting is not supported in Mastodon.)