drm: rcar_lvds: Fix color mismatches on R-Car H2 ES2.0 and later
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 17 Sep 2019 06:23:53 +0000 (08:23 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 15 Oct 2019 21:27:54 +0000 (00:27 +0300)
commit3986457110a054466bf02f9c4a85aa2bba96177b
tree294384c0cc506a06a6c1c61d0e3fe19bdcb98880
parent0a370db816f8632bc71d7d0c6f59a82d2934f0df
drm: rcar_lvds: Fix color mismatches on R-Car H2 ES2.0 and later

Commit 5cca30ebe089be23 ("drm/rcar-du: Add LVDS_LANES quirk") states
that LVDS lanes 1 and 3 are inverted on R-Car H2 ES1 only, and that the
problem has been fixed in newer revisions.

However, the code didn't take into account the actual hardware revision,
thus applying the quirk also on newer hardware revisions, causing green
color reversals.

Fix this by applying the quirk when running on R-Car H2 ES1.x only.

Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fixes: 5cca30ebe089be23 ("drm/rcar-du: Add LVDS_LANES quirk")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_lvds.c