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

OMAPDSS: fix dispc register dump for preload & mflag

Preload register is dumped twice for video overlays and mflag register
is not dumped for GFX.

Fix the register dump.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

+3 -4
+3 -4
drivers/video/fbdev/omap2/dss/dispc.c
··· 3290 3290 DUMPREG(i, DISPC_OVL_FIFO_SIZE_STATUS); 3291 3291 DUMPREG(i, DISPC_OVL_ROW_INC); 3292 3292 DUMPREG(i, DISPC_OVL_PIXEL_INC); 3293 + 3293 3294 if (dss_has_feature(FEAT_PRELOAD)) 3294 3295 DUMPREG(i, DISPC_OVL_PRELOAD); 3296 + if (dss_has_feature(FEAT_MFLAG)) 3297 + DUMPREG(i, DISPC_OVL_MFLAG_THRESHOLD); 3295 3298 3296 3299 if (i == OMAP_DSS_GFX) { 3297 3300 DUMPREG(i, DISPC_OVL_WINDOW_SKIP); ··· 3315 3312 } 3316 3313 if (dss_has_feature(FEAT_ATTR2)) 3317 3314 DUMPREG(i, DISPC_OVL_ATTRIBUTES2); 3318 - if (dss_has_feature(FEAT_PRELOAD)) 3319 - DUMPREG(i, DISPC_OVL_PRELOAD); 3320 - if (dss_has_feature(FEAT_MFLAG)) 3321 - DUMPREG(i, DISPC_OVL_MFLAG_THRESHOLD); 3322 3315 } 3323 3316 3324 3317 #undef DISPC_REG