projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e7a384
)
drm/radeon/atom: Send out the full AUX address
author
Ville Syrjälä
<
[email protected]
>
Thu, 27 Aug 2015 14:23:31 +0000
(17:23 +0300)
committer
Alex Deucher
<
[email protected]
>
Mon, 31 Aug 2015 15:38:29 +0000
(11:38 -0400)
AUX addresses are 20 bits long. Send out the entire address instead of
just the low 16 bits.
Cc: Alex Deucher <
[email protected]
>
Cc: "Christian König" <
[email protected]
>
Signed-off-by: Ville Syrjälä <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
Cc:
[email protected]
drivers/gpu/drm/radeon/atombios_dp.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/atombios_dp.c
b/drivers/gpu/drm/radeon/atombios_dp.c
index f81e0d7d023290813ed9cdc981155ee8d1a12c4c..9cd49c584263c895ad368586a1df58120d9c9a71 100644
(file)
--- a/
drivers/gpu/drm/radeon/atombios_dp.c
+++ b/
drivers/gpu/drm/radeon/atombios_dp.c
@@
-171,8
+171,9
@@
radeon_dp_aux_transfer_atom(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)
return -E2BIG;
tx_buf[0] = msg->address & 0xff;
- tx_buf[1] = msg->address >> 8;
- tx_buf[2] = msg->request << 4;
+ tx_buf[1] = (msg->address >> 8) & 0xff;
+ tx_buf[2] = (msg->request << 4) |
+ ((msg->address >> 16) & 0xf);
tx_buf[3] = msg->size ? (msg->size - 1) : 0;
switch (msg->request & ~DP_AUX_I2C_MOT) {