mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 15:03:53 +02:00
thunderbolt: Fix bit masking in tb_dp_port_set_hops()
The tb_dp_port_set_hops() function was incorrectly clearing
ADP_DP_CS_1_AUX_RX_HOPID_MASK twice. According to the function's
purpose, it should clear both TX and RX AUX HopID fields. Replace the
first instance with ADP_DP_CS_1_AUX_TX_HOPID_MASK to ensure proper
configuration of both AUX directions.
Fixes: 98176380cb ("thunderbolt: Convert DP adapter register names to follow the USB4 spec")
Cc: stable@vger.kernel.org
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
58d71d4242
commit
2cdde91c14
|
|
@ -1450,7 +1450,7 @@ int tb_dp_port_set_hops(struct tb_port *port, unsigned int video,
|
|||
return ret;
|
||||
|
||||
data[0] &= ~ADP_DP_CS_0_VIDEO_HOPID_MASK;
|
||||
data[1] &= ~ADP_DP_CS_1_AUX_RX_HOPID_MASK;
|
||||
data[1] &= ~ADP_DP_CS_1_AUX_TX_HOPID_MASK;
|
||||
data[1] &= ~ADP_DP_CS_1_AUX_RX_HOPID_MASK;
|
||||
|
||||
data[0] |= (video << ADP_DP_CS_0_VIDEO_HOPID_SHIFT) &
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user