Commit 90f720d2 authored by Mika Westerberg's avatar Mika Westerberg

thunderbolt: Add debug logging when lane is enabled/disabled

This is useful when debugging possible issues.
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 5dddb416
......@@ -693,8 +693,14 @@ static int __tb_port_enable(struct tb_port *port, bool enable)
else
phy |= LANE_ADP_CS_1_LD;
return tb_port_write(port, &phy, TB_CFG_PORT,
port->cap_phy + LANE_ADP_CS_1, 1);
ret = tb_port_write(port, &phy, TB_CFG_PORT,
port->cap_phy + LANE_ADP_CS_1, 1);
if (ret)
return ret;
tb_port_dbg(port, "lane %sabled\n", enable ? "en" : "dis");
return 0;
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment