summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThulasimani,Sivakumar <sivakumar.thulasimani@intel.com>2015-08-07 11:44:30 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-08-14 17:50:42 +0200
commitf79b468eca20dae31b6fcaaa738a7f99b764837d (patch)
treee76615d1ab0df897aa56230ca72d0ed3435c2e1c /drivers
parentdrm/i915: Contain the WA_REG macro (diff)
downloadlinux-f79b468eca20dae31b6fcaaa738a7f99b764837d.tar.xz
linux-f79b468eca20dae31b6fcaaa738a7f99b764837d.zip
drm/i915: fix checksum write for automated test reply
DP spec requires the checksum of the last block read to be written when replying to TEST_EDID_READ. This patch fixes the current code to do the same. v2: removed loop for jumping blocks and performed direct addition as recommended by Daniel Signed-off-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com> Reviewed-by: Sonika Jindal <sonika.jindal@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index f3133d81fb9d..016e7bc6af0a 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -4139,9 +4139,16 @@ static uint8_t intel_dp_autotest_edid(struct intel_dp *intel_dp)
intel_dp->aux.i2c_defer_count);
intel_dp->compliance_test_data = INTEL_DP_RESOLUTION_FAILSAFE;
} else {
+ struct edid *block = intel_connector->detect_edid;
+
+ /* We have to write the checksum
+ * of the last block read
+ */
+ block += intel_connector->detect_edid->extensions;
+
if (!drm_dp_dpcd_write(&intel_dp->aux,
DP_TEST_EDID_CHECKSUM,
- &intel_connector->detect_edid->checksum,
+ &block->checksum,
1))
DRM_DEBUG_KMS("Failed to write EDID checksum\n");