Skip to content

i2c: xiic: use generic device property accessors

Abdurrahman Hussain b4-sent linux-arm-kernel linux-devicetree linux-i2c lkml 11 versions – In review

Get series with b4
b4 am [email protected] change-id 20260122-i2c-xiic-3ba89ff5ea93

Versions newest first

  1. v12 Latest7 patches 3 repliesIn review
  2. v117 patches 4 repliesSuperseded
  3. v107 patches 5 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v97 patches12 repliesSuperseded
v86 patches0 repliesSuperseded
v76 patches16 repliesSuperseded
v67 patches13 repliesSuperseded
v56 patches7 repliesSuperseded
v45 patches1 replySuperseded
v35 patches13 repliesSuperseded
v22 patches3 repliesSuperseded

Changes in v12 from the cover letter

- Reworded the patch 3 description as suggested by Krzysztof.
- Added fwnode to patch 3 as suggested by Andy.
- Used fwnode added in patch 3 in patch 7 as suggested by Andy.
- Link to v11: https://lore.kernel.org/r/[email protected]

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7i2c: xiic: switch to devres managed APIsdrivers/i2c/busses/i2c-xiic.c+12 -180 replies
2/7i2c: xiic: remove duplicate error messagedrivers/i2c/busses/i2c-xiic.c+1 -40 replies
3/7i2c: xiic: switch to generic device property accessorsdrivers/i2c/busses/i2c-xiic.c+7 -140 replies
4/7i2c: xiic: cosmetic cleanupdrivers/i2c/busses/i2c-xiic.c+12 -120 replies
5/7i2c: xiic: cosmetic: use resource format specifier in debug logdrivers/i2c/busses/i2c-xiic.c+2 -20 replies
6/7i2c: xiic: use numbered adapter registrationdrivers/i2c/busses/i2c-xiic.c+2 -10 replies
7/7i2c: xiic: skip input clock setup on non-OF systemsdrivers/i2c/busses/i2c-xiic.c+6 -40 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchAndy ShevchenkoAndrew LunnJonathan Cameron
1/7R-b
2/7R-b R-b R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7

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

Read the v12 thread

Cover letter [PATCH v12 0/7] i2c: xiic: use generic device property accessors

- Switch to generic device property accessors.
- Switch to managed devm_ functions to simplify error handling.
- General cleanups.
- Skip clock setup on non-OF systems where clock is not specified via firmware.

---
Changes in v12:
- Reworded the patch 3 description as suggested by Krzysztof.
- Added fwnode to patch 3 as suggested by Andy.
- Used fwnode added in patch 3 in patch 7 as suggested by Andy.
- Link to v11: https://lore.kernel.org/r/[email protected]

Changes in v11:
- Cosmetic change to return 0 in patch 1.
- Remove pm_runtime_dont_use_autosuspend() in patch 1.
- Link to v10: https://lore.kernel.org/r/[email protected]

Changes in v10:
- Moved dev_dbg() change from patch 4 to patch 5.
- Reworded description in patch 6.
- Addressed Andy's comment in patch 7 (&pdev->dev -> dev).
- Link to v9: https://lore.kernel.org/r/[email protected]

Changes in v9:
- Fix an issue found by the test robot in the cleanup patch.
- Reworded the clock change description.
- Add a patch to switch to i2c_add_numbered_adapter().
- Link to v8: https://lore.kernel.org/r/[email protected]

Changes in v8:
- Made the clock change the last patch in the series.
- Reworded the clock change description.
- Changed dev->fwnode to dev_fwnode(dev).
- Link to v7: https://lore.kernel.org/r/[email protected]

Changes in v7:
- Drop the dt-bindings patch.
- Skip clock setup on non-OF systems.
- Minor commit body rewording.
- Applied code-review trailers with b4 trailers -u
- Link to v6: https://lore.kernel.org/r/[email protected]

Changes in v6:
- Cosmetic changes to address the comments.
- Added a patch to use resource format specifier in debug log.
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- Reorder the cosmetic patch to be the last in the series.
- Added a documentation patch to describe the optional clock.
- Minor commit body rewording.
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Reorder the cosmetic patch to be the first in the series.
- Amend the mutex_init patch to also switch to the managed pm_runtime_ variant.
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Reorder the "optional clock" patch to be the first in the series.
- Add a patch to switch to devm_mutex_init().
- Remove dup message in error path.
- Cosmetic: use temporary dev variable.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Split the patch into two independent changes.
- Added struct device *dev at the top of probe() and remove() to re-use.
- Switched to device_set_node(...)

---
Abdurrahman Hussain (7):
i2c: xiic: switch to devres managed APIs
i2c: xiic: remove duplicate error message
i2c: xiic: switch to generic device property accessors
i2c: xiic: cosmetic cleanup
i2c: xiic: cosmetic: use resource format specifier in debug log
i2c: xiic: use numbered adapter registration
i2c: xiic: skip input clock setup on non-OF systems

 drivers/i2c/busses/i2c-xiic.c | 97 +++++++++++++++++++------------------------
 1 file changed, 42 insertions(+), 55 deletions(-)

---
base-commit: 37a93dd5c49b5fda807fd204edf2547c3493319c
change-id: 20260122-i2c-xiic-3ba89ff5ea93

Best regards,

Signature · 1 line
Abdurrahman Hussain <[email protected]>