All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] usb: typec: tcpm: Fix AB BA lock inversion between tcpm and alt-mode drivers
@ 2020-07-15 13:22 Hans de Goede
  2020-07-15 13:22 ` [PATCH 1/6] usb: typec: tcpm: Move mod_delayed_work(&port->vdm_state_machine) call into tcpm_queue_vdm() Hans de Goede
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Hans de Goede @ 2020-07-15 13:22 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Guenter Roeck, Heikki Krogerus
  Cc: Hans de Goede, linux-usb

Hi All,

Here is a patch series which fixes an AB BA lock inversion between thr
tcpm code and alt-mode drivers (seen with the display-port alt-mode driver).

The actual fix is in patch 5. I could have just done an unlock before and
a re-lock after all the troublesome typec_altmode_foo(adev, ...) calls, but
I've done some reshuffling in patches 1-4 to make it clearer that when the
unlock happens we are really done with the port-state so it is ok to unlock
then.

Patch 6 is a bonus patch which adds an extra sanity check (WARN_ON) for a
potential issue which I noticed while working on this.

Regards,

Hans



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

end of thread, other threads:[~2020-07-24 15:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15 13:22 [PATCH 0/6] usb: typec: tcpm: Fix AB BA lock inversion between tcpm and alt-mode drivers Hans de Goede
2020-07-15 13:22 ` [PATCH 1/6] usb: typec: tcpm: Move mod_delayed_work(&port->vdm_state_machine) call into tcpm_queue_vdm() Hans de Goede
2020-07-15 15:36   ` Guenter Roeck
2020-07-15 13:22 ` [PATCH 2/6] usb: typec: tcpm: Move locking " Hans de Goede
2020-07-15 15:41   ` Guenter Roeck
2020-07-24 15:03     ` Hans de Goede
2020-07-15 13:22 ` [PATCH 3/6] usb: typec: tcpm: Refactor tcpm_handle_vdm_request payload handling Hans de Goede
2020-07-15 15:52   ` Guenter Roeck
2020-07-15 13:22 ` [PATCH 4/6] usb: typec: tcpm: Refactor tcpm_handle_vdm_request Hans de Goede
2020-07-15 15:58   ` Guenter Roeck
2020-07-24 15:31     ` Hans de Goede
2020-07-15 13:23 ` [PATCH 5/6] usb: typec: tcpm: Fix AB BA lock inversion between tcpm code and the alt-mode drivers Hans de Goede
2020-07-15 16:05   ` Guenter Roeck
2020-07-24 15:56     ` Hans de Goede
2020-07-15 13:23 ` [PATCH 6/6] usb: typec: tcpm: Add WARN_ON ensure we are not tryong to send 2 VDM packets at the same time Hans de Goede
2020-07-15 16:06   ` Guenter Roeck
2020-07-24 15:59     ` Hans de Goede

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.