public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4.4.y] drm: rcar-du: lvds: Fix PLL frequency-related configuration
@ 2017-08-16  8:53 Nhan Nguyen
  2017-08-16  8:53 ` [PATCH 4.4.y] drm: rcar-du: lvds: Rename PLLEN bit to PLLON Nhan Nguyen
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Nhan Nguyen @ 2017-08-16  8:53 UTC (permalink / raw)
  To: greg; +Cc: Laurent Pinchart, stable, Thong Ho, Nhan Nguyen

From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

commit 5e1ac3bdc6bbb4f378251b87625b8acfbfc4ae82 upstream.

The frequency checks don't match the datasheet, fix them.

Cc: stable@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
---
 drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c b/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
index 85043c5..5188972 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
@@ -56,11 +56,11 @@ static int rcar_du_lvdsenc_start(struct rcar_du_lvdsenc *lvds,
 		return ret;
 
 	/* PLL clock configuration */
-	if (freq <= 38000)
+	if (freq < 39000)
 		pllcr = LVDPLLCR_CEEN | LVDPLLCR_COSEL | LVDPLLCR_PLLDLYCNT_38M;
-	else if (freq <= 60000)
+	else if (freq < 61000)
 		pllcr = LVDPLLCR_CEEN | LVDPLLCR_COSEL | LVDPLLCR_PLLDLYCNT_60M;
-	else if (freq <= 121000)
+	else if (freq < 121000)
 		pllcr = LVDPLLCR_CEEN | LVDPLLCR_COSEL | LVDPLLCR_PLLDLYCNT_121M;
 	else
 		pllcr = LVDPLLCR_PLLDLYCNT_150M;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-27 12:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-16  8:53 [PATCH 4.4.y] drm: rcar-du: lvds: Fix PLL frequency-related configuration Nhan Nguyen
2017-08-16  8:53 ` [PATCH 4.4.y] drm: rcar-du: lvds: Rename PLLEN bit to PLLON Nhan Nguyen
2017-08-16  8:53 ` [PATCH 4.4.y] drm: rcar-du: Fix crash in encoder failure error path Nhan Nguyen
2017-08-27 12:21   ` Greg KH
2017-08-16  8:53 ` [PATCH 4.4.y] drm: rcar-du: Fix display timing controller parameter Nhan Nguyen
2017-08-27 12:22   ` Greg KH
2017-08-16  8:53 ` [PATCH 4.4.y] drm: rcar-du: Fix H/V sync signal polarity configuration Nhan Nguyen
2017-08-27 12:23   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox