* [PATCH] drm/bridge: analogix_dp: Fix clk-disable removal
@ 2025-05-27 22:51 Heiko Stuebner
2025-05-28 13:52 ` Dmitry Baryshkov
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Heiko Stuebner @ 2025-05-27 22:51 UTC (permalink / raw)
To: andrzej.hajda, neil.armstrong, rfoss
Cc: Laurent.pinchart, jonas, jernej.skrabec, maarten.lankhorst,
mripard, tzimmermann, dmitry.baryshkov, dri-devel, linux-kernel,
Heiko Stuebner
Commit 6579a03e68ff ("drm/bridge: analogix_dp: Remove the unnecessary
calls to clk_disable_unprepare() during probing") removed the mismatched
clock_disable calls from analogix_dp_probe.
But that patch was created and sent before
commit e5e9fa9f7aad ("drm/bridge: analogix_dp: Add support to get panel
from the DP AUX bus") was merged, so couldn't know about this change.
So in the original patch the last change is
if (ret) {
dev_err(&pdev->dev, "failed to request irq\n");
- goto err_disable_clk;
+ return ERR_PTR(ret);
}
disable_irq(dp->irq);
return dp;
-
-err_disable_clk:
- clk_disable_unprepare(dp->clock);
- return ERR_PTR(ret);
}
EXPORT_SYMBOL_GPL(analogix_dp_probe);
the analogix_dp_core.c actually now has the runtime-pm handling between
disable_irq() and return do introducing another goto err_clk_disable there.
So remove that one too and return an error pointer, to not create build
breakage.
Fixes: 6579a03e68ff ("drm/bridge: analogix_dp: Remove the unnecessary calls to clk_disable_unprepare() during probing")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
When I reviewed the original patch, I failed to see that difference :-(
But I do wonder how dim was able to apply the original patch.
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
index 01201fff59a6..505eec6b819b 100644
--- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
+++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
@@ -1586,7 +1586,7 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data)
pm_runtime_set_autosuspend_delay(dp->dev, 100);
ret = devm_pm_runtime_enable(dp->dev);
if (ret)
- goto err_disable_clk;
+ return ERR_PTR(ret);
return dp;
}
--
2.47.2
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] drm/bridge: analogix_dp: Fix clk-disable removal
2025-05-27 22:51 [PATCH] drm/bridge: analogix_dp: Fix clk-disable removal Heiko Stuebner
@ 2025-05-28 13:52 ` Dmitry Baryshkov
2025-05-28 13:56 ` Lucas De Marchi
2025-05-28 14:08 ` Dmitry Baryshkov
2 siblings, 0 replies; 4+ messages in thread
From: Dmitry Baryshkov @ 2025-05-28 13:52 UTC (permalink / raw)
To: Heiko Stuebner
Cc: andrzej.hajda, neil.armstrong, rfoss, Laurent.pinchart, jonas,
jernej.skrabec, maarten.lankhorst, mripard, tzimmermann,
dri-devel, linux-kernel
On Wed, May 28, 2025 at 12:51:19AM +0200, Heiko Stuebner wrote:
> Commit 6579a03e68ff ("drm/bridge: analogix_dp: Remove the unnecessary
> calls to clk_disable_unprepare() during probing") removed the mismatched
> clock_disable calls from analogix_dp_probe.
>
> But that patch was created and sent before
> commit e5e9fa9f7aad ("drm/bridge: analogix_dp: Add support to get panel
> from the DP AUX bus") was merged, so couldn't know about this change.
>
> So in the original patch the last change is
> if (ret) {
> dev_err(&pdev->dev, "failed to request irq\n");
> - goto err_disable_clk;
> + return ERR_PTR(ret);
> }
> disable_irq(dp->irq);
>
> return dp;
> -
> -err_disable_clk:
> - clk_disable_unprepare(dp->clock);
> - return ERR_PTR(ret);
> }
> EXPORT_SYMBOL_GPL(analogix_dp_probe);
>
> the analogix_dp_core.c actually now has the runtime-pm handling between
> disable_irq() and return do introducing another goto err_clk_disable there.
>
> So remove that one too and return an error pointer, to not create build
> breakage.
>
> Fixes: 6579a03e68ff ("drm/bridge: analogix_dp: Remove the unnecessary calls to clk_disable_unprepare() during probing")
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
> When I reviewed the original patch, I failed to see that difference :-(
> But I do wonder how dim was able to apply the original patch.
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] drm/bridge: analogix_dp: Fix clk-disable removal
2025-05-27 22:51 [PATCH] drm/bridge: analogix_dp: Fix clk-disable removal Heiko Stuebner
2025-05-28 13:52 ` Dmitry Baryshkov
@ 2025-05-28 13:56 ` Lucas De Marchi
2025-05-28 14:08 ` Dmitry Baryshkov
2 siblings, 0 replies; 4+ messages in thread
From: Lucas De Marchi @ 2025-05-28 13:56 UTC (permalink / raw)
To: Heiko Stuebner, Dmitry Baryshkov
Cc: andrzej.hajda, neil.armstrong, rfoss, Laurent.pinchart, jonas,
jernej.skrabec, maarten.lankhorst, mripard, tzimmermann,
dri-devel, linux-kernel
On Wed, May 28, 2025 at 12:51:19AM +0200, Heiko Stuebner wrote:
>Commit 6579a03e68ff ("drm/bridge: analogix_dp: Remove the unnecessary
>calls to clk_disable_unprepare() during probing") removed the mismatched
>clock_disable calls from analogix_dp_probe.
>
>But that patch was created and sent before
>commit e5e9fa9f7aad ("drm/bridge: analogix_dp: Add support to get panel
>from the DP AUX bus") was merged, so couldn't know about this change.
>
>So in the original patch the last change is
> if (ret) {
> dev_err(&pdev->dev, "failed to request irq\n");
>- goto err_disable_clk;
>+ return ERR_PTR(ret);
> }
> disable_irq(dp->irq);
>
> return dp;
>-
>-err_disable_clk:
>- clk_disable_unprepare(dp->clock);
>- return ERR_PTR(ret);
> }
> EXPORT_SYMBOL_GPL(analogix_dp_probe);
>
>the analogix_dp_core.c actually now has the runtime-pm handling between
>disable_irq() and return do introducing another goto err_clk_disable there.
>
>So remove that one too and return an error pointer, to not create build
>breakage.
>
>Fixes: 6579a03e68ff ("drm/bridge: analogix_dp: Remove the unnecessary calls to clk_disable_unprepare() during probing")
>Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Dmitry, maybe you have to enable a config in your build tests so we
don't have broken builds?
Lucas De Marchi
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] drm/bridge: analogix_dp: Fix clk-disable removal
2025-05-27 22:51 [PATCH] drm/bridge: analogix_dp: Fix clk-disable removal Heiko Stuebner
2025-05-28 13:52 ` Dmitry Baryshkov
2025-05-28 13:56 ` Lucas De Marchi
@ 2025-05-28 14:08 ` Dmitry Baryshkov
2 siblings, 0 replies; 4+ messages in thread
From: Dmitry Baryshkov @ 2025-05-28 14:08 UTC (permalink / raw)
To: andrzej.hajda, neil.armstrong, rfoss, Heiko Stuebner
Cc: Laurent.pinchart, jonas, jernej.skrabec, maarten.lankhorst,
mripard, tzimmermann, dri-devel, linux-kernel
On Wed, 28 May 2025 00:51:19 +0200, Heiko Stuebner wrote:
> Commit 6579a03e68ff ("drm/bridge: analogix_dp: Remove the unnecessary
> calls to clk_disable_unprepare() during probing") removed the mismatched
> clock_disable calls from analogix_dp_probe.
>
> But that patch was created and sent before
> commit e5e9fa9f7aad ("drm/bridge: analogix_dp: Add support to get panel
> from the DP AUX bus") was merged, so couldn't know about this change.
>
> [...]
Applied to drm-misc-next-fixes, thanks!
[1/1] drm/bridge: analogix_dp: Fix clk-disable removal
commit: fd03f82a026cc03cb8051a8c6487c99f96c9029f
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-05-28 14:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-27 22:51 [PATCH] drm/bridge: analogix_dp: Fix clk-disable removal Heiko Stuebner
2025-05-28 13:52 ` Dmitry Baryshkov
2025-05-28 13:56 ` Lucas De Marchi
2025-05-28 14:08 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®