[PATCH 0/8] i2c: nomadik: fix several issues in fault handling, optimize layout

Dmitry Guzman Dmitry.Guzman at mobileye.com
Tue Nov 3 00:29:36 PST 2026


This patchset fixes several issues in i2c-nomadik driver.

Patches #1..#5 were previously submitted as a part of a patchset that
introduces detailed fault reporting feature in i2c-nomadik and
i2c-designware drivers and i2c-core.

In patch #5, the new structure declaration is moved to different place
to make it independent of patch #3 (avoid merge conflicts).

Patches #6..#8 fix other pre-existing issues found by AI review of that
patchset.

All patches are mutually independent and may be applied separately.

Patch #1 Optimize struct layout.
Patch #2 Remove automatic retransfer on failures.
Patch #3 Fix error codes returned by xfer() callback.
Patch #4 Avoid excessive prints by replacing dev_err() with dev_dbg() on
	I2C faults.
Patch #5 Add quirks that describe hardware limitations of the controller.
Patch #6 Handle PM runtime errors.
Patch #7 Fix race condition with IRQ handler.
Patch #8 Fix possible long busy-wait loop in interrupt handler.

Link to the patch set that patches 1..5 were submitted in:

https://lore.kernel.org/r/20260903-i2c-fault-reporting-v2-0-fedeb91792e6@mobileye.com

Signed-off-by: Dmitry Guzman <Dmitry.Guzman at mobileye.com>
---
Dmitry Guzman (8):
      i2c: nomadik: optimize struct layout, change unsigned char into u8
      i2c: nomadik: do not try to retransmit I2C message series on errors
      i2c: nomadik: return proper fault codes
      i2c: nomadik: change print level for fault messages to debug
      i2c: nomadik: add quirks max_len=2047 and no_zero_len_read
      i2c: nomadik: handle pm_runtime errors
      i2c: nomadik: fix race condition with interrupt handler
      i2c: nomadik: reduce FIFO flush timeout to avoid long interrupt handling

 drivers/i2c/busses/i2c-nomadik.c | 105 +++++++++++++++++++++++----------------
 1 file changed, 62 insertions(+), 43 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261025-i2c-nomadik-fixes-73121cc61408

Best regards,
--  
Dmitry Guzman <Dmitry.Guzman at mobileye.com>




More information about the linux-arm-kernel mailing list