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

Vinod Koul <[email protected]>
Newsgroups org.kernel.vger.linux-arm-msm,org.infradead.lists.linux-phy,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.