Skip to content

Commit e39daf2

Browse files
committed
drm/amdgpu/atom: Send out the full AUX address
AUX addresses are 20 bits long. Send out the entire address instead of just the low 16 bits. Port of: drm/radeon/atom: Send out the full AUX address to amdgpu Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 7040c39 commit e39daf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdgpu/atombios_dp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ amdgpu_atombios_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *m
139139

140140
tx_buf[0] = msg->address & 0xff;
141141
tx_buf[1] = msg->address >> 8;
142-
tx_buf[2] = msg->request << 4;
142+
tx_buf[2] = (msg->request << 4) |
143+
((msg->address >> 16) & 0xf);
143144
tx_buf[3] = msg->size ? (msg->size - 1) : 0;
144145

145146
switch (msg->request & ~DP_AUX_I2C_MOT) {

0 commit comments

Comments
 (0)