From: Andrzej Hajda Date: Fri, 20 Jan 2017 06:52:20 +0000 (+0100) Subject: drm/exynos/hdmi: fix VSI infoframe registers X-Git-Tag: v5.15~11808^2~22^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10abdbc5eeec964d0534f6ace94624a5fae64233;p=platform%2Fkernel%2Flinux-starfive.git drm/exynos/hdmi: fix VSI infoframe registers VSI infoframe registers address space is non-contiguous, so infoframe write should be split into two chunks. Signed-off-by: Andrzej Hajda Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index bef8965..223b872 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -797,7 +797,8 @@ static void hdmi_reg_infoframes(struct hdmi_context *hdata) sizeof(buf)); if (ret > 0) { hdmi_reg_writeb(hdata, HDMI_VSI_CON, HDMI_VSI_CON_EVERY_VSYNC); - hdmi_reg_write_buf(hdata, HDMI_VSI_HEADER0, buf, ret); + hdmi_reg_write_buf(hdata, HDMI_VSI_HEADER0, buf, 3); + hdmi_reg_write_buf(hdata, HDMI_VSI_DATA(0), buf + 3, ret - 3); } ret = hdmi_audio_infoframe_init(&frm.audio);