Skip to content

i2c: imx: Fix slave mode corner issues

Liem imx linux-arm-kernel linux-i2c lkml stable 2 versions – Applied

Status from this message: merged to i2c/i2c-fixes.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 5 repliesApplied
  2. v32 patches 3 repliesSuperseded

Changes in v4 from the cover letter

- Patch 1: reworked to avoid race with shared IRQ handler, as suggested by Sashiko.
- Patch 2: unchanged.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2i2c: imx: Fix slave registration race and error handlingdrivers/i2c/busses/i2c-imx.c+5 -33 replies
2/2i2c: imx: Cancel hrtimer before clearing slave pointerdrivers/i2c/busses/i2c-imx.c+1 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchCarlos SongFrank Li
1/2A-b R-b
2/2A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] i2c: imx: Fix slave mode corner issues

This series fixes two issues in the i2c-imx target mode.

Patch 1 defers slave pointer assignment to after a successful resume and protects it with the slave_lock to prevent races with the shared IRQ handler.

Patch 2 cancels the hrtimer before clearing the slave pointer during unregistration, preventing a potential use-after-free.

Changes in v4:
- Patch 1: reworked to avoid race with shared IRQ handler, as suggested by Sashiko.
- Patch 2: unchanged.

Changes in v3:
- Split the original patch into two separate patches as suggested by Frank Li.
- v2: https://lore.kernel.org/imx/
[email protected]/

Liem (2):
i2c: imx: Fix slave registration race and error handling
i2c: imx: Cancel hrtimer before clearing slave pointer

 drivers/i2c/busses/i2c-imx.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1