[RFC PATCH 04/10] drm/panel_helper: Introduce drm_panel_helper

Maxime Ripard mripard at kernel.org
Mon Aug 7 06:41:05 UTC 2023


Hi Doug,

Thanks for working on this :)

On Fri, Aug 04, 2023 at 02:06:07PM -0700, Douglas Anderson wrote:
> The goal of this file is to contain helper functions for panel drivers
> to use. To start off with, let's add drm_panel_helper_shutdown() for
> use by panels that want to make sure they're powered off at
> shutdown/remove time if they happen to be powered on.
> 
> The main goal of introducting this function is so that panel drivers
> don't need to track the enabled/prepared state themselves.
> 
> Signed-off-by: Douglas Anderson <dianders at chromium.org>

It shouldn't be necessary at all: drivers should call
drm_atomic_helper_shutdown at removal time which will disable the
connector (which in turn should unprepare/disable its panel).

If either the driver is missing drm_atomic_helper_shutdown, or if the
connector doesn't properly disable the panel, then I would consider that
a bug.

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20230807/e8e6e829/attachment.sig>


More information about the dri-devel mailing list