Skip to content

cpufreq: ti: Fix probe ordering with k3-socinfo

Akashdeep Kaur linux-pm lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest1 patch 1 replyIn review
  2. v41 patch 4 repliesApplied
  3. v31 patch 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches1 replySuperseded
v15 patches3 repliesSuperseded

Changes in v5 from the cover letter

- Use dev_err_probe() instead of dev_dbg() with updated error message
- Link to v4: https://lore.kernel.org/all/[email protected]/

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1cpufreq: ti: Add EPROBE_DEFER for K3 SoCsdrivers/cpufreq/ti-cpufreq.c+10 -01 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchZhongqiu Han
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/1] cpufreq: ti: Fix probe ordering with k3-socinfo

For K3 SoCs, ti-cpufreq depends on k3-socinfo to provide SoC revision information via soc_device_match(). If ti-cpufreq probes before k3-socinfo, soc_device_match() returns NULL, causing incorrect revision detection and OPP table initialization failures.

Add a needs_k3_socinfo flag to ti_cpufreq_soc_data to properly handle probe deferral when k3-socinfo hasn't registered the SoC device yet.

Changes in v5
- Use dev_err_probe() instead of dev_dbg() with updated error message
- Link to v4: https://lore.kernel.org/all/[email protected]/

Changes in v4
- Use needs_k3_socinfo flag in soc_data
- Link to v3: https://lore.kernel.org/all/[email protected]/

Changes in v3
- Simplified to single patch (EPROBE_DEFER only)
- Changed the logic to detect whether the probe is for am62 family SoCs
- Dropped device link patch after analysis as revision information is cached after successful probe. Module reload also works as k3-socinfo stays bound during normal operation
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changes in v2
- Added DT bindings documentation for ti,soc-info property
- Reordered patches: bindings first, then driver changes, then DTS
- Link to v1: https://lore.kernel.org/all/[email protected]/

Testing
- Verified correct probe ordering on AM625, AM62A7, AM62P5 platforms

---

Akashdeep Kaur (1):
cpufreq: ti: Add EPROBE_DEFER for K3 SoCs

 drivers/cpufreq/ti-cpufreq.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

--
2.34.1