drm: rcar-du: lvds: Fix LVDS startup on R-Car Gen3
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Fri, 12 Jan 2018 20:12:04 +0000 (23:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:40 +0000 (07:52 +0200)
commite5b5d9be211e11acd6602b33a1fecea9f78cb850
treeb5c47a5f78415cf870bf531f01b615fbca539bbf
parentce7da8b88f6a5602743337f4f08f4009591c4cc7
drm: rcar-du: lvds: Fix LVDS startup on R-Car Gen3

[ Upstream commit 796ceb9269626afaed3b4955c40d2c3d7a8c5d01 ]

According to the latest revisions of the R-Car Gen3 manual, the LVDS mode
must be set before the LVDS I/O pins are enabled, not after -- fix the
Gen3 LVDS startup sequence accordingly.

Fixes: e947eccbeba4 ("drm: rcar-du: Add support for LVDS mode selection")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
[Updated comment in rcar_du_lvdsenc_start_gen3()]
[Moved Gen2 startup comment update to separate commit]
[Fixed =| typo]
Tested-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c