pipcet / pearl

GNU/Linux on Apple M1 hardware
GNU General Public License v3.0
35 stars 6 forks source link

USB host mode #11

Closed pipcet closed 3 years ago

pipcet commented 3 years ago

It appears USB host mode is totally broken right now. I don't use it regularly so I hadn't been aware of it (USB gadget mode works as it always used to).

pipcet commented 3 years ago

The question is whether to bisect this, or switch to the Asahi-based branch I've been working on anyway, where it works. The problem with the second option is that the Asahi people chose to move initialization that I feel really belongs in the Linux driver to m1n1, and I might have to move it back.

pipcet commented 3 years ago

The current state is that with some driver hacks, USB host mode, USB gadget mode, and USB power delivery all work; there's still software intervention required to successfully disconnect devices and prepare for connecting the next device, but no reboots are required at this point.

pipcet commented 3 years ago

Okay, I'm closing this issue as things appear to work now. USB ports on the MacBooks should work for PD, host, and gadget mode; USB ports on the Mini are all in host mode. (This can be changed, but autodetection doesn't currently work).