diff options
author | Badhri Jagan Sridharan <badhri@google.com> | 2020-12-03 06:19:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-09 16:45:53 +0300 |
commit | 3bac42f02d41dd85da7afb9ffc3f4539fad20cc5 (patch) | |
tree | 16f2650eb438ed81063df7933fb9d2395c71efa7 /include/linux/usb | |
parent | e4a9378083c57a22624cda8b780ff5f5da4de7ef (diff) | |
download | linux-3bac42f02d41dd85da7afb9ffc3f4539fad20cc5.tar.xz |
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.
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20201203031908.1491542-1-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
0 files changed, 0 insertions, 0 deletions