Skip to content

i2c: dev: fix blocked adapter deregistration

Johan Hovold linux-i2c lkml stable 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 12 repliesIn review
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

- take rwsem also on open()
- clear adap pointer also if chardev registration fails

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3i2c: dev: fix blocked adapter deregistrationdrivers/i2c/i2c-dev.c+76 -192 replies
2/3i2c: dev: drop unnecessary sysfs device lookupdrivers/i2c/i2c-dev.c+3 -52 replies
3/3i2c: dev: clean up registrationdrivers/i2c/i2c-dev.c+29 -406 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchBartosz GolaszewskiWolfram Sang
1/3
2/3R-b R-b
3/3A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] i2c: dev: fix blocked adapter deregistration

As part of addressing I2C lifetime issues, this series fixes an issue which may actually matter to some people, at least if they are playing around with USB attached I2C controllers, and whose fix does not depend on any larger rework.

This could possibly go into 7.3, but can also wait for 7.4 as the impact of the issue (both in terms of number of affected users and symptoms) should be limited.

Johan

Changes in v2:
- take rwsem also on open()
- clear adap pointer also if chardev registration fails

Johan Hovold (3):
i2c: dev: fix blocked adapter deregistration
i2c: dev: drop unnecessary sysfs device lookup
i2c: dev: clean up registration

 drivers/i2c/i2c-dev.c | 162 +++++++++++++++++++++++++++---------------
 1 file changed, 103 insertions(+), 59 deletions(-)
Signature · 1 line
2.54.0