patch "usb: typec: tcpm: Keep other events when receiving FRS and" added to usb-linus
Subsystems (4)
This is a note to let you know that I've just added the patch titled
usb: typec: tcpm: Keep other events when receiving FRS and
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 43ad944cd73f2360ec8ff31d29ea44830b3119af Mon Sep 17 00:00:00 2001
From: Kyle Tso <[email protected]>
Date: Tue, 3 Aug 2021 17:13:14 +0800
Subject: usb: typec: tcpm: Keep other events when receiving FRS and
Sourcing_vbus events
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.
--- drivers/usb/typec/tcpm/tcpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/typec/tcpm/tcpm.c +2 -2
@@ -5369,7 +5369,7 @@ EXPORT_SYMBOL_GPL(tcpm_pd_hard_reset);void tcpm_sink_frs (struct tcpm_port *port) {spin_lock (&port->pd_event_lock); - port->pd_events =TCPM_FRS_EVENT ; + port->pd_events |=TCPM_FRS_EVENT ;spin_unlock (&port->pd_event_lock);kthread_queue_work (port->wq, &port->event_work); }
@@ -5378,7 +5378,7 @@ EXPORT_SYMBOL_GPL(tcpm_sink_frs);void tcpm_sourcing_vbus (struct tcpm_port *port) {spin_lock (&port->pd_event_lock); - port->pd_events =TCPM_SOURCING_VBUS ; + port->pd_events |=TCPM_SOURCING_VBUS ;spin_unlock (&port->pd_event_lock);kthread_queue_work (port->wq, &port->event_work); }
Signature · 1 line
2.32.0