Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/tilcdc: Clear bits of register we're going to set.

Bits weren't cleared so resolution changes didn't work.

Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Darren Etheridge <detheridge@ti.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Pantelis Antoniou and committed by
Dave Airlie
c19b3e23 39de6194

+2
+2
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
··· 299 299 * a value of 0 as 1 300 300 */ 301 301 if (priv->rev == 2) { 302 + /* clear bits we're going to set */ 303 + reg &= ~0x78000033; 302 304 reg |= ((hfp-1) & 0x300) >> 8; 303 305 reg |= ((hbp-1) & 0x300) >> 4; 304 306 reg |= ((hsw-1) & 0x3c0) << 21;