drm/i915: fix checksum write for automated test reply
authorThulasimani,Sivakumar <sivakumar.thulasimani@intel.com>
Fri, 7 Aug 2015 09:44:30 +0000 (15:14 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Aug 2015 15:50:42 +0000 (17:50 +0200)
commitf79b468eca20dae31b6fcaaa738a7f99b764837d
treee76615d1ab0df897aa56230ca72d0ed3435c2e1c
parentca5a0fbd53be86d2bf44769741e02e66feeacc0a
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>
drivers/gpu/drm/i915/intel_dp.c