Skip to content

Commit 7dcdfa2

Browse files
Junlisuzhougregkh
authored andcommitted
usb: typec: tcpm: cancel frs hrtimer when unregister tcpm port
commit 7ade480 upstream. Like the state_machine_timer, we should also cancel possible pending frs hrtimer when unregister tcpm port. Fixes: 8dc4bd0 ("usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS)") Cc: stable <stable@vger.kernel.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Li Jun <jun.li@nxp.com> Link: https://lore.kernel.org/r/1622627829-11070-2-git-send-email-jun.li@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 18eaf0d commit 7dcdfa2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/usb/typec/tcpm/tcpm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5187,6 +5187,7 @@ void tcpm_unregister_port(struct tcpm_port *port)
51875187
{
51885188
int i;
51895189

5190+
hrtimer_cancel(&port->enable_frs_timer);
51905191
hrtimer_cancel(&port->vdm_state_machine_timer);
51915192
hrtimer_cancel(&port->state_machine_timer);
51925193

0 commit comments

Comments
 (0)