public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 0/2] i2c: imx: Fix block read handling for invalid length
@ 2026-01-16 11:19 LI Qingwu
  2026-01-16 11:19 ` [PATCH V3 1/2] i2c: imx: preserve error state in block data length handler LI Qingwu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: LI Qingwu @ 2026-01-16 11:19 UTC (permalink / raw)
  To: o.rempel, kernel, andi.shyti, shawnguo, s.hauer, festevam,
	linux-i2c, imx, linux-arm-kernel, linux-kernel
  Cc: bsp-development.geo, LI Qingwu

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 v3:
  - Add trailing comma to IMX_I2C_STATE_READ_BLOCK_DATA_ABORT enum
  - Clean up reference manual citations

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


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

end of thread, other threads:[~2026-01-28 22:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 11:19 [PATCH V3 0/2] i2c: imx: Fix block read handling for invalid length LI Qingwu
2026-01-16 11:19 ` [PATCH V3 1/2] i2c: imx: preserve error state in block data length handler LI Qingwu
2026-01-22 10:48   ` Andi Shyti
2026-01-22 12:18     ` Stefan Eichenberger
2026-01-16 11:19 ` [PATCH V3 2/2] i2c: imx: add abort path for invalid block length LI Qingwu
2026-01-28 22:19 ` [PATCH V3 0/2] i2c: imx: Fix block read handling for invalid length Andi Shyti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox