summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-11-12 19:17:02 -0500
committerAlex Deucher <alexander.deucher@amd.com>2014-11-20 11:13:18 -0500
commit28731d5818ae25b92d1fb82fe0ac196e97102c1b (patch)
tree585d5457dc5613e466e68937173634f1662393db /drivers/gpu
parentb7bc596ebbe0cddc97d76ef9309f64471bbf13eb (diff)
downloadlinux-28731d5818ae25b92d1fb82fe0ac196e97102c1b.tar.gz
linux-28731d5818ae25b92d1fb82fe0ac196e97102c1b.tar.bz2
linux-28731d5818ae25b92d1fb82fe0ac196e97102c1b.zip
drm/radeon: fix endian swapping in vbios fetch for tdp table
Value needs to be swapped on BE. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/r600_dpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c
index f6309bd23e01..b5c73df8e202 100644
--- a/drivers/gpu/drm/radeon/r600_dpm.c
+++ b/drivers/gpu/drm/radeon/r600_dpm.c
@@ -1256,7 +1256,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
(mode_info->atom_context->bios + data_offset +
le16_to_cpu(ext_hdr->usPowerTuneTableOffset));
rdev->pm.dpm.dyn_state.cac_tdp_table->maximum_power_delivery_limit =
- ppt->usMaximumPowerDeliveryLimit;
+ le16_to_cpu(ppt->usMaximumPowerDeliveryLimit);
pt = &ppt->power_tune_table;
} else {
ATOM_PPLIB_POWERTUNE_Table *ppt = (ATOM_PPLIB_POWERTUNE_Table *)