diff options
author | Kyle Tso <[email protected]> | 2021-05-07 14:23:00 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-05-10 15:52:06 +0200 |
commit | f1fbd950b59b67bc5c202216c8e1c6ca8c99a3b4 (patch) | |
tree | 2cfc82e491826a66a0a85ddf72d01732be7f7845 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | c34e85fa69b9f4568f19da3af06c3870dd8fcc50 (diff) |
usb: typec: tcpm: Fix wrong handling for Not_Supported in VDM AMS
Not_Supported Message is acceptable in VDM AMS. Redirect the VDM state
machine to VDM_STATE_DONE when receiving Not_Supported and finish the
VDM AMS.
Also, after the loop in vdm_state_machine_work, add more conditions of
VDM states to clear the vdm_sm_running flag because those are all
stopping states when leaving the loop.
In addition, finish the VDM AMS if the port partner responds BUSY.
Fixes: 8dea75e11380 ("usb: typec: tcpm: Protocol Error handling")
Fixes: 8d3a0578ad1a ("usb: typec: tcpm: Respond Wait if VDM state machine is running")
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Kyle Tso <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions