usb: typec: tcpm: Keep other events when receiving FRS and Sourcing_vbus events
authorKyle Tso <kyletso@google.com>
Tue, 3 Aug 2021 09:13:14 +0000 (17:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:22:11 +0000 (13:22 +0200)
commit8f8645de092a4c80d4c6905f6015375226300002
treef115e4f70ca6cda106b0007bfac84aca4428dc87
parent5b4318885a4388b6b7c9227be53b8411bb1457ac
usb: typec: tcpm: Keep other events when receiving FRS and Sourcing_vbus events

commit 43ad944cd73f2360ec8ff31d29ea44830b3119af upstream.

When receiving FRS and Sourcing_Vbus events from low-level drivers, keep
other events which come a bit earlier so that they will not be ignored
in the event handler.

Fixes: 8dc4bd073663 ("usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS)")
Cc: stable <stable@vger.kernel.org>
Cc: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Badhri Jagan Sridharan <badhri@google.com>
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210803091314.3051302-1-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c