Commit 6958b45
usb: typec: tcpm: properly deliver cable vdms to altmode drivers
commit f34bfcc upstream.
tcpm_handle_vdm_request delivers messages to the partner altmode or the
cable altmode depending on the SVDM response type, which is incorrect.
The partner or cable should be chosen based on the received message type
instead.
Also add this filter to ADEV_NOTIFY_USB_AND_QUEUE_VDM, which is used when
the Enter Mode command is responded to by a NAK on SOP or SOP' and when
the Exit Mode command is responded to by an ACK on SOP.
Fixes: 7e7877c ("usb: typec: tcpm: add alt mode enter/exit/vdm support for sop'")
Cc: [email protected]
Signed-off-by: RD Babiera <[email protected]>
Reviewed-by: Badhri Jagan Sridharan <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent b17e79b commit 6958b45
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2426 | 2426 | | |
2427 | 2427 | | |
2428 | 2428 | | |
2429 | | - | |
2430 | | - | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
2431 | 2435 | | |
2432 | 2436 | | |
2433 | | - | |
| 2437 | + | |
2434 | 2438 | | |
2435 | 2439 | | |
2436 | 2440 | | |
2437 | 2441 | | |
2438 | 2442 | | |
2439 | | - | |
| 2443 | + | |
2440 | 2444 | | |
2441 | 2445 | | |
2442 | 2446 | | |
| |||
0 commit comments