]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: innolux-ej030na and abt-y030xx067a: add .enable and .disable
authorChristophe Branchereau <cbranchereau@gmail.com>
Mon, 21 Mar 2022 13:36:51 +0000 (14:36 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Tue, 5 Apr 2022 20:41:36 +0000 (21:41 +0100)
commit56d1d67c85e392fc7085a39963e199a114617cc0
tree3164c22616c532d9ac24144cf43cbdab5baee000
parent90969b19cb1ab2e829f122fe71ed32588a84c10b
drm/panel: innolux-ej030na and abt-y030xx067a: add .enable and .disable

Following the introduction of bridge_atomic_enable in the ingenic
drm driver, the crtc is enabled between .prepare and .enable, if
it exists. Add it so the backlight is only enabled after the crtc is, to
avoid graphical issues.

As we're moving the "sleep out" command out of the init sequence
into .enable for the ABT, we need to switch the regmap cache
to REGCACHE_FLAT to be able to use regmap_set_bits, given this
panel registers are write-ony and read as 0.

Signed-off-by: Christophe Branchereau <cbranchereau@gmail.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
[pcercuei: Remove empty line after opening brace]
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220321133651.291592-4-cbranchereau@gmail.com
drivers/gpu/drm/panel/panel-abt-y030xx067a.c
drivers/gpu/drm/panel/panel-innolux-ej030na.c