diff mbox series

drm/bridge: panel: Set pre_enable_prev_first from drmm_panel_bridge_add

Message ID 20221222185213.3773336-1-dave.stevenson@raspberrypi.com (mailing list archive)
State New, archived
Headers show
Series drm/bridge: panel: Set pre_enable_prev_first from drmm_panel_bridge_add | expand

Commit Message

Dave Stevenson Dec. 22, 2022, 6:52 p.m. UTC
Commit 5ea6b1702781 ("drm/panel: Add prepare_prev_first flag to drm_panel")
added code to copy prepare_prev_first from drm_panel to pre_enable_prev_first
in drm_bridge when called through devm_panel_bridge_add, but
missed drmm_panel_bridge_add.

Add the same code to drmm_panel_bridge_add.

Fixes: 5ea6b1702781 ("drm/panel: Add prepare_prev_first flag to drm_panel")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
 drivers/gpu/drm/bridge/panel.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jagan Teki Dec. 22, 2022, 7:09 p.m. UTC | #1
On Fri, Dec 23, 2022 at 12:22 AM Dave Stevenson
<dave.stevenson@raspberrypi.com> wrote:
>
> Commit 5ea6b1702781 ("drm/panel: Add prepare_prev_first flag to drm_panel")
> added code to copy prepare_prev_first from drm_panel to pre_enable_prev_first
> in drm_bridge when called through devm_panel_bridge_add, but
> missed drmm_panel_bridge_add.
>
> Add the same code to drmm_panel_bridge_add.
>
> Fixes: 5ea6b1702781 ("drm/panel: Add prepare_prev_first flag to drm_panel")
> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> ---

Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Maxime Ripard Jan. 2, 2023, 10:40 a.m. UTC | #2
On Thu, 22 Dec 2022 18:52:13 +0000, Dave Stevenson wrote:
> Commit 5ea6b1702781 ("drm/panel: Add prepare_prev_first flag to drm_panel")
> added code to copy prepare_prev_first from drm_panel to pre_enable_prev_first
> in drm_bridge when called through devm_panel_bridge_add, but
> missed drmm_panel_bridge_add.
> 
> Add the same code to drmm_panel_bridge_add.
> 
> [...]

Applied to drm/drm-misc (drm-misc-next).

Thanks!
Maxime
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c
index 03c3274dc3d9..1708098fba6d 100644
--- a/drivers/gpu/drm/bridge/panel.c
+++ b/drivers/gpu/drm/bridge/panel.c
@@ -404,6 +404,8 @@  struct drm_bridge *drmm_panel_bridge_add(struct drm_device *drm,
 	if (ret)
 		return ERR_PTR(ret);
 
+	bridge->pre_enable_prev_first = panel->prepare_prev_first;
+
 	return bridge;
 }
 EXPORT_SYMBOL(drmm_panel_bridge_add);