mbox series

[0/6] usb: typec: tcpm: Fix AB BA lock inversion between tcpm and alt-mode drivers

Message ID 20200715132301.99816-1-hdegoede@redhat.com (mailing list archive)
Headers show
Series usb: typec: tcpm: Fix AB BA lock inversion between tcpm and alt-mode drivers | expand

Message

Hans de Goede July 15, 2020, 1:22 p.m. UTC
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