Skip to content

Commit

Permalink
thunderbolt: Log an error if DPTX request is not cleared
Browse files Browse the repository at this point in the history
This helps debugging issues around DisplayPort bandwidth allocation
mode.

Signed-off-by: Mika Westerberg <[email protected]>
  • Loading branch information
westeri committed Feb 16, 2024
1 parent c7857ee commit 2ec67a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/thunderbolt/usb4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2858,8 +2858,10 @@ static int usb4_dp_port_wait_and_clear_cm_ack(struct tb_port *port,
usleep_range(50, 100);
} while (ktime_before(ktime_get(), end));

if (val & ADP_DP_CS_8_DR)
if (val & ADP_DP_CS_8_DR) {
tb_port_warn(port, "timeout waiting for DPTX request to clear\n");
return -ETIMEDOUT;
}

ret = tb_port_read(port, &val, TB_CFG_PORT,
port->cap_adap + ADP_DP_CS_2, 1);
Expand Down

0 comments on commit 2ec67a4

Please sign in to comment.