diff options
| author | Pin-yen Lin <treapking@chromium.org> | 2025-08-18 19:49:33 +0800 |
|---|---|---|
| committer | Douglas Anderson <dianders@chromium.org> | 2025-08-25 09:17:49 -0700 |
| commit | 2eb22214c132374e11e681c44d7879c91f67f614 (patch) | |
| tree | ebea67dcec4aba97228fe2302a51d41bfb95b910 /include/drm | |
| parent | drm/msm: fix msm_gem_vma_new() allocations for managed GPUVMs (diff) | |
| download | linux-2eb22214c132374e11e681c44d7879c91f67f614.tar.gz linux-2eb22214c132374e11e681c44d7879c91f67f614.zip | |
drm/panel: Allow powering on panel follower after panel is enabled
Some touch controllers have to be powered on after the panel's backlight
is enabled. To support these controllers, introduce .panel_enabled() and
.panel_disabling() to panel_follower_funcs and use them to power on the
device after the panel and its backlight are enabled.
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20250818115015.2909525-1-treapking@chromium.org
Diffstat (limited to 'include/drm')
| -rw-r--r-- | include/drm/drm_panel.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index 843fb756a295..2407bfa60236 100644 --- a/include/drm/drm_panel.h +++ b/include/drm/drm_panel.h @@ -160,6 +160,20 @@ struct drm_panel_follower_funcs { * Called before the panel is powered off. */ int (*panel_unpreparing)(struct drm_panel_follower *follower); + + /** + * @panel_enabled: + * + * Called after the panel and the backlight have been enabled. + */ + int (*panel_enabled)(struct drm_panel_follower *follower); + + /** + * @panel_disabling: + * + * Called before the panel and the backlight are disabled. + */ + int (*panel_disabling)(struct drm_panel_follower *follower); }; struct drm_panel_follower { |
