diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-08-27 10:23:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-31 11:38:29 -0400 |
commit | 3f8340cc72c9a1a4b49bce7802afd7f248400ef5 (patch) | |
tree | df1748057e0ac2443b2d0b993300994b72f7d921 /drivers/gpu/drm/radeon | |
parent | 6e7a3840745c950c37d37cbb0af2e753a765d4ec (diff) |
drm/radeon/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.
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_dp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index f81e0d7d0232..9cd49c584263 100644 --- 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) | |||
171 | return -E2BIG; | 171 | return -E2BIG; |
172 | 172 | ||
173 | tx_buf[0] = msg->address & 0xff; | 173 | tx_buf[0] = msg->address & 0xff; |
174 | tx_buf[1] = msg->address >> 8; | 174 | tx_buf[1] = (msg->address >> 8) & 0xff; |
175 | tx_buf[2] = msg->request << 4; | 175 | tx_buf[2] = (msg->request << 4) | |
176 | ((msg->address >> 16) & 0xf); | ||
176 | tx_buf[3] = msg->size ? (msg->size - 1) : 0; | 177 | tx_buf[3] = msg->size ? (msg->size - 1) : 0; |
177 | 178 | ||
178 | switch (msg->request & ~DP_AUX_I2C_MOT) { | 179 | switch (msg->request & ~DP_AUX_I2C_MOT) { |