From: Ben Skeggs Date: Tue, 20 May 2014 06:13:54 +0000 (+1000) Subject: drm/gf119-/disp: fix nasty bug which can clobber SOR0's clock setup X-Git-Tag: v3.12.23~88 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=afb44e1758741b45be382544527b6edf99fd2f6f;p=unionfs-2.6.39.y.git drm/gf119-/disp: fix nasty bug which can clobber SOR0's clock setup commit 0f1d360b2ee3a2a0f510d3f1bcd3f5ebe5d41265 upstream. Fixes a LVDS bleed issue on Lenovo W530 that can occur under a number of circumstances. Signed-off-by: Ben Skeggs Signed-off-by: Jiri Slaby --- diff --git a/drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c b/drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c index 52dd7a1db72..8f336558c68 100644 --- a/drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c +++ b/drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c @@ -678,7 +678,7 @@ exec_clkcmp(struct nv50_disp_priv *priv, int head, int id, } if (outp == 8) - return false; + return conf; data = exec_lookup(priv, head, outp, ctrl, dcb, &ver, &hdr, &cnt, &len, &info1); if (data == 0x0000)