Re: [PATCH v6 0/7] phy: qcom: Fix possible NULL-deref and runtime PM race conditions

From: Vinod Koul

Date: Fri Aug 07 2026 - 08:36:15 EST



On Wed, 22 Jul 2026 15:45:13 +0200, Loic Poulain wrote:
> Address potential NULL pointer dereferences and race conditions related
> to runtime PM in several Qualcomm PHY drivers. In all cases, enabling
> runtime PM before the PHY instance is fully initialized can lead to
> crashes during early runtime suspend callbacks.
>
> - Attach driver data before enabling runtime PM.
> - Introduce initialization flags where needed to avoid dereferencing
> uninitialized pointers.
> - Reorder pm_runtime_enable() and pm_runtime_forbid() calls to prevent
> unnecessary suspend/resume cycles during driver probe.
> - Use devres-managed PM runtime helpers for proper cleanup.
>
> [...]

Applied, thanks!

[1/7] phy: qcom: qmp-combo: Prevent unnecessary PM runtime suspend at boot
commit: 729e0af3c2b938a9405e6245aaab97d025e3f427
[2/7] phy: qcom: qmp-usbc: Prevent unnecessary PM runtime suspend at boot
commit: 991339420f6ddd299d9f34316866dda83dccd72a
[3/7] phy: qcom: qmp-usb-legacy: Fix possible NULL-deref on early runtime suspend
commit: 8e3687f7e18fe84372e86875709d56c37e7525a8
[4/7] phy: qcom: qmp-usb-legacy: Prevent unnecessary PM runtime suspend at boot
commit: a9b9feb37bfa684f495e3a3553342191d2b30eee
[5/7] phy: qcom: snps-femto-v2: Fix possible NULL-deref on early runtime suspend
commit: c271a6926ea7d3c9566b033d63fd4e8c488dc860
[6/7] phy: qcom: qmp-usb: Fix possible NULL-deref on early runtime suspend
commit: 142c5593379273264474f31d5956b1a0065cd576
[7/7] phy: qcom: qmp-usb: Prevent unnecessary PM runtime suspend at boot
commit: fedcff16a9b60a94e68e2a0478ceda309566d61a

Best regards,
--
~Vinod