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

LI Qingwu posted 2 patches 3 weeks, 2 days ago
drivers/i2c/busses/i2c-imx.c | 58 ++++++++++++++++++++++++++++++++++--
1 file changed, 55 insertions(+), 3 deletions(-)
[PATCH V3 0/2] i2c: imx: Fix block read handling for invalid length
Posted by LI Qingwu 3 weeks, 2 days ago
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
Re: [PATCH V3 0/2] i2c: imx: Fix block read handling for invalid length
Posted by Andi Shyti 1 week, 4 days ago
Hi Li,

> LI Qingwu (2):
>   i2c: imx: preserve error state in block data length handler

I merged this patch in i2c/i2c-host-fixes.

>   i2c: imx: add abort path for invalid block length

For this patch I want the review from Oleksij. Oleksij? :-)

Thanks,
Andi