[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <176651123953.749296.6443352481052227479.b4-ty@kernel.org>
Date: Tue, 23 Dec 2025 23:03:59 +0530
From: Vinod Koul <vkoul@...nel.org>
To: kishon@...nel.org, neil.armstrong@...aro.org,
Haotian Zhang <vulab@...as.ac.cn>
Cc: linux-phy@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] phy: ti: da8xx-usb: Handle devm_pm_runtime_enable()
errors
On Mon, 24 Nov 2025 18:57:34 +0800, Haotian Zhang wrote:
> devm_pm_runtime_enable() can fail due to memory allocation. The current
> code ignores its return value after calling pm_runtime_set_active(),
> leaving the device in an inconsistent state if runtime PM initialization
> fails.
>
> Check the return value of devm_pm_runtime_enable() and return on
> failure. Also move the declaration of 'ret' to the function scope
> to support this check.
>
> [...]
Applied, thanks!
[1/1] phy: ti: da8xx-usb: Handle devm_pm_runtime_enable() errors
commit: 08aa19de72110df8ac10c9e67349dd884eeed41d
Best regards,
--
~Vinod
Powered by blists - more mailing lists