Skip to content

Commit 1ee6f34

Browse files
BibbyHsiehckhu-mediatek
authored andcommitted
drm/mediatek: fix a typo of DISP_OD_CFG to OD_RELAYMODE
If we want to set the hardware OD to relay mode, we have to set DISP_OD_CFG register rather than OD_RELAYMODE; otherwise, the system will access the wrong address. Change-Id: Ifb9bb4caa63df906437d48b5d5326b6d04ea332a Fixes: 7216436 ("drm/mediatek: set mt8173 dithering function") Cc: [email protected] # v4.9+ Signed-off-by: Bibby Hsieh <[email protected]> Acked-by: CK Hu <[email protected]>
1 parent 9c76358 commit 1ee6f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static void mtk_od_config(struct mtk_ddp_comp *comp, unsigned int w,
123123
unsigned int bpc)
124124
{
125125
writel(w << 16 | h, comp->regs + DISP_OD_SIZE);
126-
writel(OD_RELAYMODE, comp->regs + OD_RELAYMODE);
126+
writel(OD_RELAYMODE, comp->regs + DISP_OD_CFG);
127127
mtk_dither_set(comp, bpc, DISP_OD_CFG);
128128
}
129129

0 commit comments

Comments
 (0)