Skip to content

soc: qcom: ice: Fix race between qcom_ice_probe() and of_qcom_ice_get()

Manivannan Sadhasivam b4-sent linux-arm-msm linux-mmc linux-scsi lkml stable 7 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260210-qcom-ice-fix-d2a3a045b32d

Versions newest first

  1. v7 Latest5 patches 3 repliesApplied
  2. v65 patches 1 replySuperseded
  3. v55 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v45 patches3 repliesSuperseded
v34 patches6 repliesSuperseded
v24 patches13 repliesSuperseded inferred link
v11 patch11 repliesSuperseded

Changes in v7 from the cover letter

- Rebased on top of v7.1-rc1
- Collected tags

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/5soc: qcom: ice: Fix race between qcom_ice_probe() and of_qcom_ice_get()drivers/soc/qcom/ice.c+31 -70 replies
2/5soc: qcom: ice: Return -ENODEV if the ICE platform device is not founddrivers/soc/qcom/ice.c+1 -10 replies
3/5soc: qcom: ice: Return proper error codes from devm_of_qcom_ice_get() instead of NULLdrivers/soc/qcom/ice.c+4 -52 replies
4/5mmc: sdhci-msm: Remove NULL check from devm_of_qcom_ice_get()drivers/mmc/host/sdhci-msm.c+5 -50 replies
5/5scsi: ufs: ufs-qcom: Remove NULL check from devm_of_qcom_ice_get()drivers/ufs/host/ufs-qcom.c+5 -50 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSumit GargKonrad DybcioUlf HanssonAdrian HunterMartin K. Petersen
1/5T-b A-b
2/5T-b A-b
3/5T-b A-b R-b
4/5T-b A-b R-b A-b A-b
5/5T-b A-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/5] soc: qcom: ice: Fix race between qcom_ice_probe() and of_qcom_ice_get()

Hi,

This series fixes the race betwen qcom_ice_probe() and of_qcom_ice_get() but synchronizing the two APIs and properly propagating the error codes to clients.

Merge Strategy
==============

Due to dependency, all patches should go through Qcom SoC tree.

---
Changes in v7:
- Rebased on top of v7.1-rc1
- Collected tags

Changes in v6:
- Fixed sparse warnings
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- Used Xarray instead of platform drvdata for passing the pointer since driver core frees drvdata on probe failure.
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- For supporting multi-ice instances in a SoC, stored the err ptr in platform drvdata instead of in a global pointer.
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Dropped the platform driver removal patch and used the ice_handle to pass error codes. This was done as I learned that we need to have the platform driver design going forward and also removing it introduces other issues.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:

- Added MODULE_* macros back
- Removed spurious platform_device_put()
- Added patches to remove NULL return

---
Manivannan Sadhasivam (5):
soc: qcom: ice: Fix race between qcom_ice_probe() and of_qcom_ice_get()
soc: qcom: ice: Return -ENODEV if the ICE platform device is not found
soc: qcom: ice: Return proper error codes from devm_of_qcom_ice_get() instead of NULL
mmc: sdhci-msm: Remove NULL check from devm_of_qcom_ice_get()
scsi: ufs: ufs-qcom: Remove NULL check from devm_of_qcom_ice_get()

 drivers/mmc/host/sdhci-msm.c | 10 ++++-----
 drivers/soc/qcom/ice.c       | 49 ++++++++++++++++++++++++++++++++------------
 drivers/ufs/host/ufs-qcom.c  | 10 ++++-----
 3 files changed, 46 insertions(+), 23 deletions(-)

---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260210-qcom-ice-fix-d2a3a045b32d

Best regards,

Signature · 1 line
Manivannan Sadhasivam <[email protected]>