diff options
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_crtc.c')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index 1b278a22c8b7..1067e702c22c 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c | |||
@@ -224,7 +224,7 @@ static void tilcdc_crtc_set_clk(struct drm_crtc *crtc) | |||
224 | 224 | ||
225 | ret = clk_set_rate(priv->clk, req_rate * clkdiv); | 225 | ret = clk_set_rate(priv->clk, req_rate * clkdiv); |
226 | clk_rate = clk_get_rate(priv->clk); | 226 | clk_rate = clk_get_rate(priv->clk); |
227 | if (ret < 0) { | 227 | if (ret < 0 || tilcdc_pclk_diff(req_rate, clk_rate) > 5) { |
228 | /* | 228 | /* |
229 | * If we fail to set the clock rate (some architectures don't | 229 | * If we fail to set the clock rate (some architectures don't |
230 | * use the common clock framework yet and may not implement | 230 | * use the common clock framework yet and may not implement |