#asahi · 2021-09-24 16:52
sventhen i disconnected it#asahi · 2021-09-24 16:52
sveni had both of them connected to my mac mini#asahi · 2021-09-24 16:52
sveni don't really know tbh#asahi · 2021-09-24 16:49
sven(rebooting will probably fix it, but this whole thing seems to be rather unstable :D)#asahi · 2021-09-24 16:48
svenhuh... looks like i also just somehow managed to get one of the usb-c port into a broken state on my macbook air running macOS#asahi · 2021-09-24 14:22
svenah yes. i love how rebasing on the latest linux-next essentially triggers a full kernel rebuild. and ccache doesn't seem to help :(#asahi · 2021-09-24 11:02
svenj_ey: yeah, i can kinda hope we can make at least usb 2 work for 5.16#asahi · 2021-09-24 06:09
svensure#asahi · 2021-09-24 06:09
sven(but then sometimes makes dwc3 fail because I didn't do a complete reset I guess and broke some internal state machine :D)#asahi · 2021-09-24 06:09
sventhat kinda also explains why the partial SoC PHY reset I did kinda works#asahi · 2021-09-24 06:08
svenhrm#asahi · 2021-09-24 06:08
svengreat.#asahi · 2021-09-24 06:08
svenokay.. and the SoC PHY is still in host or device mode and doesn't do anything#asahi · 2021-09-24 06:07
sven:/#asahi · 2021-09-24 06:07
svenso essentially the eUSB2 repeater is reset and then it goes into idle/no device?#asahi · 2021-09-24 05:51
svenit's meant for maintainers who send pull requests directly to linus to make sure everything works and iron out conflicts as soon as possible#asahi · 2021-09-24 05:51
svenand linux-next isn't meant for continuous pushing afaict#asahi · 2021-09-24 05:51
svenalyssa: three or so patches for tipd should be in linux-next starting today. they are the boring ones though and only ~5 lines#asahi · 2021-09-23 13:33
sventhe moment you unplug the cable it already puts everything it can into reset#asahi · 2021-09-23 13:21
svenwouldn't surprise me#asahi · 2021-09-23 13:12
sveni kinda understand why apple's SW engineers just decided to reset everything now :D#asahi · 2021-09-23 13:00
svenso we'll just patch the CD3217 ourselves to fix this? :>#asahi · 2021-09-23 12:56
svenhuh, interesting#asahi · 2021-09-23 12:47
svenbut IIRC i tried reproducing macos' phy pokes for host mode and that didn't fix anything#asahi · 2021-09-23 12:47
sveni originally thought that host mode was broken because i didn't setup the phy correctly for that fwiw (or, to put it different: i was very surprised when dwc just worked in host mode without any additional phy pokes)#asahi · 2021-09-23 12:44
svenlol :D#asahi · 2021-09-23 12:27
svenlol#asahi · 2021-09-23 12:20
svenhuh#asahi · 2021-09-23 12:05
svenmarcan: fixed it yet? :>#asahi · 2021-09-23 11:19
sven(it's pretty easy to see with that tracer you merged)#asahi · 2021-09-23 11:18
sventhen when you connect a cable it just brings everything up again#asahi · 2021-09-23 11:18
svenmacos always pulls the entire PHY into reset when a cable is disconnected and tears down xhci completely#asahi · 2021-09-23 11:18
svenyou just need to send that SPSS command (like m1n1 does) and then everything is autonomous #asahi · 2021-09-23 11:17
svennope#asahi · 2021-09-23 11:17
svenbut that can sometimes mess up dwc3 completely#asahi · 2021-09-23 11:17
svenit also usually gets fixed with a partial phy reset (i.e. not what mac os, but just setting two reset bits)#asahi · 2021-09-23 11:17
svenwith a dwc3 reset, yes#asahi · 2021-09-23 11:15
svenif I use a dumb usb-c -> usb-a adapter and i disconnect the usb-a everything works (in host mode)#asahi · 2021-09-23 11:15
svenin xhci mode: if you disconnect the cable xhci sees a disconnected event but never gets another cable connected event. the port status indicates that the correct cable status though#asahi · 2021-09-23 11:15
svenin gadget mode: if you disconnect the cable dwc3 never submits an USBDisconnected event and if you plug it in again you also get no USBReset or USBConnectionDone event#asahi · 2021-09-23 11:13
svenalso less chances of messing up some tps chip with weird quirks somewhere ;)\#asahi · 2021-09-23 11:12
sven*interrupt handler#asahi · 2021-09-23 11:12
svenyeah, and since heikki prefers that separate interrupt for the apple chip it also became a bit simpler imho #asahi · 2021-09-23 11:11
svenshould send tipd v2 and i2c as well#asahi · 2021-09-23 11:09
svenbut shouldn't be a big deal#asahi · 2021-09-23 11:09
svenprobably#asahi · 2021-09-23 11:08
svenyeah, the corellium patch probably just needs to be split from a single commit to three or four of them and it needs additional code i think to grab the mac address from the device tree#asahi · 2021-09-23 10:12
sveniirc in gadget mode it doesn't even get the "usb device disconnected" event#asahi · 2021-09-23 10:11
sven(which equally makes no sense)#asahi · 2021-09-23 10:11
sveni think it just doesn't see the "new usb device connected" event :/