linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add dev_err_probe() to i2c designware platform probing
@ 2025-09-04 14:31 Benoît Monin
  2025-09-04 14:31 ` [PATCH v2 1/2] i2c: designware: convert to dev_err_probe() on request IRQ error Benoît Monin
  2025-09-04 14:31 ` [PATCH v2 2/2] i2c: designware: use dev_err_probe() when probing platform device Benoît Monin
  0 siblings, 2 replies; 7+ messages in thread
From: Benoît Monin @ 2025-09-04 14:31 UTC (permalink / raw)
  To: Jarkko Nikula, Andy Shevchenko, Mika Westerberg, Jan Dabros,
	Andi Shyti
  Cc: Thomas Petazzoni, Vladimir Kondratiev, Tawfik Bayouk, linux-i2c,
	linux-kernel, Benoît Monin

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.

Signed-off-by: Benoît Monin <benoit.monin@bootlin.com>
---
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/20250904-i2c-dw-dev-err-probe-v1-1-acca6ffd122e@bootlin.com

---
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,
-- 
Benoît Monin, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-09-05  8:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04 14:31 [PATCH v2 0/2] Add dev_err_probe() to i2c designware platform probing Benoît Monin
2025-09-04 14:31 ` [PATCH v2 1/2] i2c: designware: convert to dev_err_probe() on request IRQ error Benoît Monin
2025-09-04 15:02   ` Andy Shevchenko
2025-09-05  8:04     ` Jarkko Nikula
2025-09-04 14:31 ` [PATCH v2 2/2] i2c: designware: use dev_err_probe() when probing platform device Benoît Monin
2025-09-04 15:04   ` Andy Shevchenko
2025-09-05  8:04     ` Jarkko Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).