linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] usb: typec: tipd: Fixes for Apple M1 (CD321X) support
@ 2021-11-17 15:14 Hector Martin
  2021-11-17 15:14 ` [PATCH 1/2] usb: typec: tipd: Fix typo in cd321x_switch_power_state Hector Martin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Hector Martin @ 2021-11-17 15:14 UTC (permalink / raw)
  To: Heikki Krogerus, Greg Kroah-Hartman, Sven Peter
  Cc: Hector Martin, Guido Günther, Alyssa Rosenzweig, linux-usb,
	linux-kernel

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.

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(-)

-- 
2.33.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-11-20  3:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17 15:14 [PATCH 0/2] usb: typec: tipd: Fixes for Apple M1 (CD321X) support Hector Martin
2021-11-17 15:14 ` [PATCH 1/2] usb: typec: tipd: Fix typo in cd321x_switch_power_state Hector Martin
2021-11-17 16:03   ` Greg Kroah-Hartman
2021-11-17 16:07     ` Hector Martin
2021-11-18 13:05   ` Heikki Krogerus
2021-11-17 15:14 ` [PATCH 2/2] usb: typec: tipd: Fix initialization sequence for cd321x Hector Martin
2021-11-17 16:04   ` Greg Kroah-Hartman
2021-11-17 16:11     ` Hector Martin
2021-11-18 13:12   ` Heikki Krogerus
2021-11-20  3:08     ` Hector Martin
2021-11-17 18:19 ` [PATCH 0/2] usb: typec: tipd: Fixes for Apple M1 (CD321X) support Sven Peter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).