diff options
| author | Kyle Tso <[email protected]> | 2021-05-07 06:23:00 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-05-10 13:52:06 +0000 |
| commit | f1fbd950b59b67bc5c202216c8e1c6ca8c99a3b4 (patch) | |
| tree | 2cfc82e491826a66a0a85ddf72d01732be7f7845 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | usb: typec: tcpm: Send DISCOVER_IDENTITY from dedicated work (diff) | |
| download | kernel-f1fbd950b59b67bc5c202216c8e1c6ca8c99a3b4.tar.gz kernel-f1fbd950b59b67bc5c202216c8e1c6ca8c99a3b4.zip | |
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
