i2c: imx: Fix slave mode corner issues
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
- v4 Latest2 patches 5 repliesApplied
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | i2c: imx: Fix slave registration race and error handlingdrivers/ | +5 | 3 replies | |
| 2/2 | i2c: imx: Cancel hrtimer before clearing slave pointerdrivers/ | +1 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Carlos Song | Frank Li |
|---|---|---|
| 1/2 | A-b | R-b |
| 2/2 | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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