lkml.org 
[lkml]   [2026]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 1/2] drm: Introduce drm_panel_prepare_for_mode callback
On Sun, Apr 12, 2026 at 08:00:44AM -0300, Val Packett wrote:
> Modern OLED panels often need to vary their prepare commands based on the
> mode being set (resolution and refresh rate). Introduce a new variant of
> the drm_panel_prepare callback that passes the chosen mode as an argument
> to allow for this.
>
> Signed-off-by: Val Packett <val@packett.cool>
> ---
> drivers/gpu/drm/bridge/panel.c | 8 ++++++--
> drivers/gpu/drm/drm_panel.c | 15 +++++++++++++--
> include/drm/drm_panel.h | 12 ++++++++++++
> 3 files changed, 31 insertions(+), 4 deletions(-)
>

A (somewhat) better approach would be to let add .atomic_foo callbacks,
which would receive drm_atomic_state instance. See the discussion
around [1].

[1] https://lore.kernel.org/dri-devel/nfc6ih43gjpi5u67fpkkxgwwygv53grdldq7tfp5iiukrkiy2u@53fsrtezzkyt/

--
With best wishes
Dmitry

\
 
 \ /
  Last update: 2026-04-13 03:06    [W:0.128 / U:18.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog