Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 6.18] Revert "drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()"
@ 2026-11-29 23:19 Samuel Holland
  2026-12-02 13:48 ` Sasha Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Holland @ 2026-11-29 23:19 UTC (permalink / raw)
  To: stable
  Cc: Andy Yan, Thomas Zimmermann, David Airlie, Heiko Stübner,
	Greg Kroah-Hartman, Maarten Lankhorst, Simona Vetter, dri-devel,
	linux-rockchip, Sandy Huang, Maxime Ripard, Sasha Levin,
	Samuel Holland, Dmitry Baryshkov, Luca Ceresoli, linux-arm-kernel,
	linux-kernel

This reverts commit 1738286ab46261bcf93dd6e1c13f73a0bb2b6e58. It was
backported without commit dcad6dd16e87 ("drm/display: bridge-connector:
attach the encoder to the created connector"), which moves the function
call to generic code. As a result, in v6.18.65, the connector is never
attached and HDMI output on RK3588 is broken.

Fixes: 1738286ab462 ("drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()")
Signed-off-by: Samuel Holland <samuel@sholland.org>
---

 drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c
index 0953ff807310..f08cdd89b3ed 100644
--- a/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c
+++ b/drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c
@@ -563,7 +563,7 @@ static int dw_hdmi_qp_rockchip_bind(struct device *dev, struct device *master,
 
 	platform_set_drvdata(pdev, hdmi);
 
-	return 0;
+	return drm_connector_attach_encoder(connector, encoder);
 }
 
 static void dw_hdmi_qp_rockchip_unbind(struct device *dev,
-- 
2.56.0

base-commit: 4700e3adf3b24b39dd4929e9c6d62811ba3ccea8

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 6.18] Revert "drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()"
  2026-11-29 23:19 [PATCH 6.18] Revert "drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()" Samuel Holland
@ 2026-12-02 13:48 ` Sasha Levin
  2026-12-02 20:48   ` Luca Ceresoli
  0 siblings, 1 reply; 3+ messages in thread
From: Sasha Levin @ 2026-12-02 13:48 UTC (permalink / raw)
  To: stable
  Cc: Sasha Levin, Andy Yan, Thomas Zimmermann, David Airlie,
	Heiko Stübner, Greg Kroah-Hartman, Maarten Lankhorst,
	Simona Vetter, dri-devel, linux-rockchip, Sandy Huang,
	Maxime Ripard, Samuel Holland, Dmitry Baryshkov, Luca Ceresoli,
	linux-arm-kernel, linux-kernel

> As a result, in v6.18.65, the connector is never
> attached and HDMI output on RK3588 is broken.

Queued for 6.18, thanks.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 6.18] Revert "drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()"
  2026-12-02 13:48 ` Sasha Levin
@ 2026-12-02 20:48   ` Luca Ceresoli
  0 siblings, 0 replies; 3+ messages in thread
From: Luca Ceresoli @ 2026-12-02 20:48 UTC (permalink / raw)
  To: Sasha Levin, stable
  Cc: Andy Yan, Thomas Zimmermann, David Airlie, Heiko Stübner,
	Greg Kroah-Hartman, Maarten Lankhorst, Simona Vetter, dri-devel,
	linux-rockchip, Sandy Huang, Maxime Ripard, Samuel Holland,
	Dmitry Baryshkov, Luca Ceresoli, linux-arm-kernel, linux-kernel

Hello Sasha, Samuel,

On Wed Dec 2, 2026 at 2:48 PM CET, Sasha Levin wrote:
>> As a result, in v6.18.65, the connector is never
>> attached and HDMI output on RK3588 is broken.
>
> Queued for 6.18, thanks.

I hadn't seen this earlier, sorry about that. Thanks for reporting and
taking action.

However I'm not sure reverting this commit is the right thing to do. Here's
why, and the alternative I'd consider.

First, I wondered why this commit has been added to stable in the first
place, being not a fix. Because it is a dependency for applying a following
fix, I guess (0259bf47f8f78297777c12f10e11c869fef51616 apparently)?

The reverted commit comes from a series of 41 patches [0] where:

 * patch 1 adds a call to drm_connector_attach_encoder() in common code,
   to avoid the need to call it from 40 different drivers
 * patches 2-41 remove the same call from those 40 drivers, one by one;
   the reverted patch is one of them (patch 30)

So this means there are 39 other patches doing the same oneliner change,
potentially needing to be reverted as well, in case their drivers have
similarly conflicting fixes.

So an alternative option would be instead taking patch 1, aka commit
dcad6dd16e87 ("drm/display: bridge-connector: attach the encoder to the
created connector"), so that any of patches 2-41 won't regress, if applied
to sable branches.

In other words: all of patches 2-41 do depend on patch 1, even thoug they
apply cleanly without. So when taking any of them, I think patch 1 should
be taken as well.

I'm available for any further clarifications that might be needed.

[0] https://lore.kernel.org/lkml/20260423-drm-bridge-connector-attach_encoder-v2-0-2ae6ca69b390@bootlin.com/

Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-02 20:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 23:19 [PATCH 6.18] Revert "drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()" Samuel Holland
2026-12-02 13:48 ` Sasha Levin
2026-12-02 20:48   ` Luca Ceresoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox