mbox series

[RESEND,0/2] usb: typec: tipd: Fixes for Apple M1 (CD321X) support

Message ID 20211120030717.84287-1-marcan@marcan.st (mailing list archive)
Headers show
Series usb: typec: tipd: Fixes for Apple M1 (CD321X) support | expand

Message

Hector Martin Nov. 20, 2021, 3:07 a.m. UTC
Hi folks,

These two fixes make tipd work properly on Apple M1 devices, in
particular in the case where the bootloader hasn't initialized
the controllers yet.

We normally do it in m1n1 (so the machine can charge and so bootloaders
get working USB without needing this driver), but that was causing this
codepath to never get properly exercised, so we never caught it. I
noticed on the new machines with 3+1 ports, since m1n1 was only
initializing 2 and the other 2 were failing to initialize.

No changes since the previous version, just updating the commit tags.

Hector Martin (2):
  usb: typec: tipd: Fix typo in cd321x_switch_power_state
  usb: typec: tipd: Fix initialization sequence for cd321x

 drivers/usb/typec/tipd/core.c | 35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)