Skip to content

Commit f5b27f7

Browse files
committed
Merge tag 'mediatek-drm-fixes-5.14-2' of https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux into drm-fixes
Mediatek DRM Fixes for Linux 5.14-2 1. Fix AAL output size setting. 2. Delete component in remove function. Signed-off-by: Dave Airlie <[email protected]> From: Chun-Kuang Hu <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 5ce5cef + da4d451 commit f5b27f7

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

drivers/gpu/drm/mediatek/mtk_disp_color.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ static int mtk_disp_color_probe(struct platform_device *pdev)
133133

134134
static int mtk_disp_color_remove(struct platform_device *pdev)
135135
{
136+
component_del(&pdev->dev, &mtk_disp_color_component_ops);
137+
136138
return 0;
137139
}
138140

drivers/gpu/drm/mediatek/mtk_disp_ovl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ static int mtk_disp_ovl_probe(struct platform_device *pdev)
423423

424424
static int mtk_disp_ovl_remove(struct platform_device *pdev)
425425
{
426+
component_del(&pdev->dev, &mtk_disp_ovl_component_ops);
427+
426428
return 0;
427429
}
428430

drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
#define DISP_AAL_EN 0x0000
3636
#define DISP_AAL_SIZE 0x0030
37+
#define DISP_AAL_OUTPUT_SIZE 0x04d8
3738

3839
#define DISP_DITHER_EN 0x0000
3940
#define DITHER_EN BIT(0)
@@ -197,6 +198,7 @@ static void mtk_aal_config(struct device *dev, unsigned int w,
197198
struct mtk_ddp_comp_dev *priv = dev_get_drvdata(dev);
198199

199200
mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, DISP_AAL_SIZE);
201+
mtk_ddp_write(cmdq_pkt, w << 16 | h, &priv->cmdq_reg, priv->regs, DISP_AAL_OUTPUT_SIZE);
200202
}
201203

202204
static void mtk_aal_gamma_set(struct device *dev, struct drm_crtc_state *state)

0 commit comments

Comments
 (0)