usb: typec: tcpm: cancel send discover hrtimer when unregister tcpm port
authorLi Jun <jun.li@nxp.com>
Wed, 2 Jun 2021 09:57:09 +0000 (17:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Jun 2021 11:28:01 +0000 (13:28 +0200)
commit024236abeba8194c23affedaaa8b1aee7b943890
tree206fe05635b29f30c610dbd98bbafa35f43e04cf
parent7ade4805e296c8d1e40c842395bbe478c7210555
usb: typec: tcpm: cancel send discover hrtimer when unregister tcpm port

Like the state_machine_timer, we should also cancel possible pending
send discover identity hrtimer when unregister tcpm port.

Fixes: c34e85fa69b9 ("usb: typec: tcpm: Send DISCOVER_IDENTITY from dedicated work")
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Li Jun <jun.li@nxp.com>
Link: https://lore.kernel.org/r/1622627829-11070-3-git-send-email-jun.li@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c