drm/i2c: tda998x: fix bad checksum of the HDMI AVI infoframe
authorJean-Francois Moine <moinejf@free.fr>
Fri, 17 Jul 2015 11:07:35 +0000 (13:07 +0200)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 5 Aug 2015 09:48:44 +0000 (10:48 +0100)
commit4a6ca1a2c2530af4611024476ba7005bf0336dfe
tree4b7b1864ee40f30f9fe23ff33d95427e82ef419e
parent5296b7f9d0e1ac31a9bc3044f04af18a521b9459
drm/i2c: tda998x: fix bad checksum of the HDMI AVI infoframe

The commit 8c7a075da9f7980cc95ffcd7e6621d4a87f20f40
"drm/i2c: tda998x: use drm_hdmi_avi_infoframe_from_display_mode()"
also uses hdmi_avi_infoframe_pack() to create the AVI infoframe.
This function sets the checksum of the frame and this breaks
the second calculation of the checksum done in tda998x_write_if().

Fixes: 8c7a075da9f7980c ("drm/i2c: tda998x: use drm_hdmi_avi_infoframe_from_display_mode()")
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c