[PATCH v2] phy: ti: da8xx-usb: Handle devm_pm_runtime_enable() errors
Vinod Koul
vkoul at kernel.org
Tue Dec 23 09:33:59 PST 2025
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
More information about the linux-phy
mailing list