diff options
| author | Peng Fan <[email protected]> | 2026-06-18 14:48:48 +0800 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2026-06-18 16:48:16 +0200 |
| commit | 78d5f8cb50090a2888df284564f43f4ebfbf663c (patch) | |
| tree | eb59ecc16afd5ff012834145145477ad667ca197 /Documentation/devicetree/bindings/timer | |
| parent | a7830e87555abfb81cc69275cecb2bc0fbde5b28 (diff) | |
usb: tcpm: fix inverted poll condition in tcpm_pd_transmit()
The read_poll_timeout() macro breaks out of its loop when the condition
evaluates to true. The current code uses "!tx_complete" as the
condition, which means it exits immediately when tx_complete is false
(i.e., transmission has NOT completed yet), rather than waiting for
completion.
Fix the condition to "tx_complete" so that the poll loop waits until
the TCPC signals transmission success/failure/discard before
proceeding.
Without this fix, tcpm_pd_transmit() returns before the TCPC has
finished transmitting, causing the PD state machine to proceed with
stale tx_status values.
Fixes: 1db4c0ac77e3 ("usb: tcpm: add core framework")
Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'Documentation/devicetree/bindings/timer')
0 files changed, 0 insertions, 0 deletions
