Skip to content
Unverified Commit efb37e66 authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Javier Martinez Canillas
Browse files

drm: ssd130x: Fix COM scan direction register mask

The SSD130x's command to toggle COM scan direction uses bit 3 and only
bit 3 to set the direction of the scanout. The driver has an incorrect
GENMASK(3, 2), causing the setting to be set on bit 2, rendering it
ineffective.

Fix the mask to only bit 3, so that the requested setting is applied
correctly.

Fixes: a61732e8

 ("drm: Add driver for Solomon SSD130x OLED displays")
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Acked-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Tested-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220308160758.26060-1-wens@kernel.org
parent 14a28e79
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment