#
✕ nick:sven
#asahi-dev · 2021-05-27 18:52
svenwell, i did just submit the first clock gate patchset two days ago. it's just a matter of months now!
#asahi-dev · 2021-05-27 18:49
svenbloom: if you like bad ideas i can give you a patchset that kinda-sorta makes it work :D
#asahi-dev · 2021-03-21 20:01
sven:-)
#asahi-dev · 2021-03-21 20:01
sven:-)
#asahi-dev · 2021-03-21 19:54
svenhttps://www.beyondlogic.org/usbnutshell/usb4.shtml that describes the stages of a usb transfer. i can't recommend that website enough. it manages to make the cursed parts of usb understandable :)
#asahi-dev · 2021-03-21 19:54
svenhttps://www.beyondlogic.org/usbnutshell/usb4.shtml that describes the stages of a usb transfer. i can't recommend that website enough. it manages to make the cursed parts of usb understandable :)
#asahi-dev · 2021-03-21 19:49
sventhe whole thing is just a (undocumented) state machine
#asahi-dev · 2021-03-21 19:49
sventhe whole thing is just a (undocumented) state machine
#asahi-dev · 2021-03-21 19:48
svenhttps://files.svenpeter.dev/99f309af34a540b23dafb0027d6a9ffd7ce948934734da17aa3a5a8726f9766c_0001-usb-add-GET_STATUS-reply.patch might work
#asahi-dev · 2021-03-21 19:48
svenhttps://files.svenpeter.dev/99f309af34a540b23dafb0027d6a9ffd7ce948934734da17aa3a5a8726f9766c_0001-usb-add-GET_STATUS-reply.patch might work
#asahi-dev · 2021-03-21 19:43
svendo you want me to patch it or do you want to fix it yourself? :)
#asahi-dev · 2021-03-21 19:43
svendo you want me to patch it or do you want to fix it yourself? :)
#asahi-dev · 2021-03-21 19:36
sventhat's for D1, isn't it?
#asahi-dev · 2021-03-21 19:36
sventhat's for D1, isn't it?
#asahi-dev · 2021-03-21 19:35
sveni guess we can just return 0x0001
#asahi-dev · 2021-03-21 19:35
sveni guess we can just return 0x0001
#asahi-dev · 2021-03-21 19:34
sven"If D0 is set, then this indicates the device is self powered. If clear, the device is bus powered. If D1 is set, the device has remote wakeup enabled and can wake the host up during suspend. The remote wakeup bit can be by the SetFeature and ClearFeature requests with a feature selector of DEVICE_REMOTE_WAKEUP (0x01)"
#asahi-dev · 2021-03-21 19:34
sven"If D0 is set, then this indicates the device is self powered. If clear, the device is bus powered. If D1 is set, the device has remote wakeup enabled and can wake the host up during suspend. The remote wakeup bit can be by the SetFeature and ClearFeature requests with a feature selector of DEVICE_REMOTE_WAKEUP (0x01)"
#asahi-dev · 2021-03-21 19:34
svenhttps://www.beyondlogic.org/usbnutshell/usb6.shtml
#asahi-dev · 2021-03-21 19:34
svenhttps://www.beyondlogic.org/usbnutshell/usb6.shtml
#asahi-dev · 2021-03-21 19:33
svenah, it probably doesn't like that there's no reply for that one :)
#asahi-dev · 2021-03-21 19:33
svenah, it probably doesn't like that there's no reply for that one :)
#asahi-dev · 2021-03-21 19:23
svenstrange
#asahi-dev · 2021-03-21 19:23
svenstrange
#asahi-dev · 2021-03-21 19:18
svenusually there should be some "Unable to [whatever]" if some SETUP packet fails
#asahi-dev · 2021-03-21 19:18
svenusually there should be some "Unable to [whatever]" if some SETUP packet fails
#asahi-dev · 2021-03-21 19:18
svendo you see anything in dmesg?
#asahi-dev · 2021-03-21 19:18
svendo you see anything in dmesg?
#asahi-dev · 2021-03-21 19:17
sventhat shouldn't make a difference
#asahi-dev · 2021-03-21 19:17
sventhat shouldn't make a difference
#asahi-dev · 2021-03-21 19:16
svenyes, was about to suggest that :)
#asahi-dev · 2021-03-21 19:16
svenyes, was about to suggest that :)
#asahi-dev · 2021-03-21 19:15
sven+do
#asahi-dev · 2021-03-21 19:15
sven+do
#asahi-dev · 2021-03-21 19:15
svenah, looks like your host is trying to something i haven't implemented
#asahi-dev · 2021-03-21 19:15
svenah, looks like your host is trying to something i haven't implemented
#asahi-dev · 2021-03-21 18:58
sventhis also happens with the linux dwc3 driver :/
#asahi-dev · 2021-03-21 18:58
sventhis also happens with the linux dwc3 driver :/
#asahi-dev · 2021-03-21 18:58
sveni've also noticed the "only plugging in once" bug but have no idea what causes it. for some reason there are no more events after the device has been disconnected once
#asahi-dev · 2021-03-21 18:58
sveni've also noticed the "only plugging in once" bug but have no idea what causes it. for some reason there are no more events after the device has been disconnected once
#asahi-dev · 2021-03-21 18:58
svenjeffmiw: nice, thanks! :)
#asahi-dev · 2021-03-21 18:58
svenjeffmiw: nice, thanks! :)
#asahi-dev · 2021-03-17 17:15
svenhrm, strange. i don't seem to get "usb disconnected" events and i can't seem to bring usb back up after disconnecting once
#asahi-dev · 2021-03-16 21:30
sveni finally have a m1n1 verison that i actually want to flash to my mac again (https://github.com/svenpeter42/m1n1/tree/usb-uartproxy-console-wip) and i'll check tomorrow if that one still works for me
#asahi-dev · 2021-03-16 21:30
sveni finally have a m1n1 verison that i actually want to flash to my mac again (https://github.com/svenpeter42/m1n1/tree/usb-uartproxy-console-wip) and i'll check tomorrow if that one still works for me
#asahi-dev · 2021-03-16 21:30
sveni finally have a m1n1 verison that i actually want to flash to my mac again (https://github.com/svenpeter42/m1n1/tree/usb-uartproxy-console-wip) and i'll check tomorrow if that one still works for me
#asahi-dev · 2021-03-16 21:29
sventhis is pretty much a shot in the dark fwiw
#asahi-dev · 2021-03-16 21:29
sventhis is pretty much a shot in the dark fwiw
#asahi-dev · 2021-03-16 21:29
sventhis is pretty much a shot in the dark fwiw
#asahi-dev · 2021-03-16 21:26
svencan you try adding a large udelay before the first usb call and see if that fixes anything? :>

plus ›