Add dev_err_probe() to i2c designware platform probing
Status from this message: Applied to for-next, thanks!
Get series with b4
b4 am [email protected] change-id 20250822-i2c-dw-dev-err-probe-eaf9bce3ef4cVersions newest first
- v2 Latest2 patches 6 repliesApplied
- v11 patch 2 repliesSuperseded
Changes in v2 from the cover letter
- Split the patch in two: one to convert dev_err() to dev_err_probe()
on request IRQ failure and the other adding dev_err_probe() to error
paths in dw_i2c_plat_probe()
- Link to v1: https://lore.kernel.org/r/[email protected]
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | i2c: designware: convert to dev_err_probe() on request IRQ errordrivers/ drivers/ | +8 | 3 replies | |
| 2/2 | i2c: designware: use dev_err_probe() when probing platform devicedrivers/ | +6 | 3 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko | Jarkko Nikula |
|---|---|---|
| 1/2 | R-b | A-b |
| 2/2 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] Add dev_err_probe() to i2c designware platform probing
I recently spend some time debugging a case where the i2c controller never showed up. In the end it was caused by a missing reset controller due to a typo in the device tree.
While this has nothing to do with the i2c designware driver, not having any hint about why the device stays in deferred probe state does not help.
The first patch convert dev_err() to dev_err_probe() on request IRQ failure, this simplifies error handling.
The second patch add dev_err_probe() in the error paths that can return -EPROBE_DEFER in dw_i2c_plat_probe() to aid in debugging deferred probe errors.
---
Changes in v2:
- Split the patch in two: one to convert dev_err() to dev_err_probe()
on request IRQ failure and the other adding dev_err_probe() to error
paths in dw_i2c_plat_probe()
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Benoît Monin (2):
i2c: designware: convert to dev_err_probe() on request IRQ error
i2c: designware: use dev_err_probe() when probing platform device
drivers/i2c/busses/i2c-designware-master.c | 9 ++++----- drivers/i2c/busses/i2c-designware-platdrv.c | 10 ++++++---- drivers/i2c/busses/i2c-designware-slave.c | 9 ++++----- 3 files changed, 14 insertions(+), 14 deletions(-)
---
base-commit: b320789d6883cc00ac78ce83bccbfe7ed58afcf0
change-id: 20250822-i2c-dw-dev-err-probe-eaf9bce3ef4c
Best regards,
Signature · 3 lines
Benoît Monin, Bootlin Embedded Linux and Kernel engineering https://bootlin.com