Commit f2865c6
usb: typec: tcpm: fix state transition for SNK_WAIT_CAPABILITIES state in run_state_machine()
A subtle error got introduced while manually fixing merge conflict in
tcpm.c for commit 85c4efb ("Merge v6.12-rc6 into usb-next"). As a
result of this error, the next state is unconditionally set to
SNK_WAIT_CAPABILITIES_TIMEOUT while handling SNK_WAIT_CAPABILITIES state
in run_state_machine(...).
Fix this by setting new state of TCPM state machine to `upcoming_state`
(that is set to different values based on conditions).
Cc: stable@vger.kernel.org
Fixes: 85c4efb ("Merge v6.12-rc6 into usb-next")
Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
Reviewed-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250310-fix-snk-wait-timeout-v6-14-rc6-v1-1-5db14475798f@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent c44e3d3 commit f2865c6
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5117 | 5117 | | |
5118 | 5118 | | |
5119 | 5119 | | |
5120 | | - | |
5121 | | - | |
| 5120 | + | |
5122 | 5121 | | |
5123 | 5122 | | |
5124 | 5123 | | |
5125 | 5124 | | |
5126 | 5125 | | |
5127 | | - | |
5128 | | - | |
5129 | 5126 | | |
| 5127 | + | |
| 5128 | + | |
| 5129 | + | |
5130 | 5130 | | |
5131 | 5131 | | |
5132 | 5132 | | |
| |||
0 commit comments