linux-phy.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH next] phy: rockchip-samsung-dcphy: Add missing assignment
@ 2025-03-21 14:36 Dan Carpenter
  2025-03-21 17:08 ` Heiko Stuebner
  2025-04-11 12:10 ` Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2025-03-21 14:36 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Vinod Koul, Kishon Vijay Abraham I, Heiko Stuebner,
	Sebastian Reichel, linux-phy, linux-arm-kernel, linux-rockchip,
	linux-kernel, kernel-janitors

The "ret = " was accidentally dropped so the error handling doesn't work.

Fixes: b2a1a2ae7818 ("phy: rockchip: Add Samsung MIPI D-/C-PHY driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
 drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
index 08c78c1bafc9..28a052e17366 100644
--- a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
+++ b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
@@ -1653,7 +1653,7 @@ static __maybe_unused int samsung_mipi_dcphy_runtime_resume(struct device *dev)
 		return ret;
 	}
 
-	clk_prepare_enable(samsung->ref_clk);
+	ret = clk_prepare_enable(samsung->ref_clk);
 	if (ret) {
 		dev_err(samsung->dev, "Failed to enable reference clock, %d\n", ret);
 		clk_disable_unprepare(samsung->pclk);
-- 
2.47.2


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* Re: [PATCH next] phy: rockchip-samsung-dcphy: Add missing assignment
  2025-03-21 14:36 [PATCH next] phy: rockchip-samsung-dcphy: Add missing assignment Dan Carpenter
@ 2025-03-21 17:08 ` Heiko Stuebner
  2025-04-11 12:10 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Heiko Stuebner @ 2025-03-21 17:08 UTC (permalink / raw)
  To: Heiko Stuebner, Dan Carpenter
  Cc: Vinod Koul, Kishon Vijay Abraham I, Sebastian Reichel, linux-phy,
	linux-arm-kernel, linux-rockchip, linux-kernel, kernel-janitors

Hey Dan,

Am Freitag, 21. März 2025, 15:36:14 MEZ schrieb Dan Carpenter:
> The "ret = " was accidentally dropped so the error handling doesn't work.
> 
> Fixes: b2a1a2ae7818 ("phy: rockchip: Add Samsung MIPI D-/C-PHY driver")
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>

oh darn ... thanks so much for catching that

Reviewed-by: Heiko Stuebner <heiko@sntech.de>

> ---
>  drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
> index 08c78c1bafc9..28a052e17366 100644
> --- a/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
> +++ b/drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c
> @@ -1653,7 +1653,7 @@ static __maybe_unused int samsung_mipi_dcphy_runtime_resume(struct device *dev)
>  		return ret;
>  	}
>  
> -	clk_prepare_enable(samsung->ref_clk);
> +	ret = clk_prepare_enable(samsung->ref_clk);
>  	if (ret) {
>  		dev_err(samsung->dev, "Failed to enable reference clock, %d\n", ret);
>  		clk_disable_unprepare(samsung->pclk);
> 





-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* Re: [PATCH next] phy: rockchip-samsung-dcphy: Add missing assignment
  2025-03-21 14:36 [PATCH next] phy: rockchip-samsung-dcphy: Add missing assignment Dan Carpenter
  2025-03-21 17:08 ` Heiko Stuebner
@ 2025-04-11 12:10 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2025-04-11 12:10 UTC (permalink / raw)
  To: Heiko Stuebner, Dan Carpenter
  Cc: Kishon Vijay Abraham I, Heiko Stuebner, Sebastian Reichel,
	linux-phy, linux-arm-kernel, linux-rockchip, linux-kernel,
	kernel-janitors


On Fri, 21 Mar 2025 17:36:14 +0300, Dan Carpenter wrote:
> The "ret = " was accidentally dropped so the error handling doesn't work.
> 
> 

Applied, thanks!

[1/1] phy: rockchip-samsung-dcphy: Add missing assignment
      commit: 9cf118aafd6682793c40dde31b5f24d271da3996

Best regards,
-- 
~Vinod



-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

end of thread, other threads:[~2025-04-11 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-21 14:36 [PATCH next] phy: rockchip-samsung-dcphy: Add missing assignment Dan Carpenter
2025-03-21 17:08 ` Heiko Stuebner
2025-04-11 12:10 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).