Commit 18d30864 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan
Browse files

FROMLIST: usb: typec: tcpm: Clear send_discover in tcpm_check_send_discover

tcpm_check_send_discover does not clear the send_discover flag
when any of the following conditions are not met.
1. data_role is TYPEC_HOST
2. link is pd_capable

Discovery indentity would anyways not be attempted during
the current session anymore when the above conditions are not
met. Hence clear the send_discover flag here to prevent
tcpm_enable_frs_work from rescheduling indefinetly.

Bug: 174693433
Link: https://lore.kernel.org/linux-usb/20201203031908.1491542-1-badhri@google.com/T/#u


Signed-off-by: default avatarBadhri Jagan Sridharan <badhri@google.com>
Change-Id: I69d3137d373e303396cf37d885a9bb797331d13d
parent 58b3ff58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment