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

drm/meson: Correct OSD1 global alpha value

VIU_OSD1_CTRL_STAT.GLOBAL_ALPHA is a 9 bit field, so the maximum
value is 0x100 not 0xff.

This matches the vendor kernel.

Signed-off-by: Stuart Menefy <stuart.menefy@mathembedded.com>
Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic Controller")
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220908155103.686904-1-stuart.menefy@mathembedded.com

authored by

Stuart Menefy and committed by
Neil Armstrong
6836829c 8f7115c1

+1 -1
+1 -1
drivers/gpu/drm/meson/meson_plane.c
··· 170 170 171 171 /* Enable OSD and BLK0, set max global alpha */ 172 172 priv->viu.osd1_ctrl_stat = OSD_ENABLE | 173 - (0xFF << OSD_GLOBAL_ALPHA_SHIFT) | 173 + (0x100 << OSD_GLOBAL_ALPHA_SHIFT) | 174 174 OSD_BLK0_ENABLE; 175 175 176 176 priv->viu.osd1_ctrl_stat2 = readl(priv->io_base +