Thread (4 messages) 4 messages, 2 authors, 2026-01-16
STALE193d
Revisions (2)
  1. v2 current
  2. v3 [diff vs current]

[PATCH V2 0/2] i2c: imx: Fix block read handling for invalid length

From: LI Qingwu <hidden>
Date: 2026-01-16 09:17:10
Also in: imx, linux-i2c, lkml

This series fixes a crash and bus lockup when SMBus block read operations
encounter invalid length values (zero or greater than I2C_SMBUS_BLOCK_MAX).

Both patches have been tested on i.MX 8M Plus with continuous block read
operations from battery and keyboard devices sharing the same I2C bus.

Changes in v2:
  - Split into two patches for clearer separation of concerns
  - Add detailed comments with reference manual citations
  - Implement abort handling in a dedicated ISR state and handler function
  - Remove modifications to i2c_imx_stop() to avoid affecting normal stop

LI Qingwu (2):
  i2c: imx: preserve error state in block data length handler
  i2c: imx: add abort path for invalid block length

 drivers/i2c/busses/i2c-imx.c | 58 ++++++++++++++++++++++++++++++++++--
 1 file changed, 55 insertions(+), 3 deletions(-)

-- 
2.43.0

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help