Skip to content

i2c-dev: Don't let userspace block adapter

Viresh Kumar linux-i2c lkml 1 version Applied

Status from this message: Applied to for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 24 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2i2c-dev: don't get i2c adapter via i2c_devdrivers/i2c/i2c-dev.c+1 -65 replies
2/2i2c-dev: Don't block the adapter from unregisteringdrivers/i2c/i2c-dev.c include/linux/i2c.h+66 -717 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJean Delvare
1/2R-b T-b
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] i2c-dev: Don't let userspace block adapter

Hi Wolfram/Jean,

I am part of the kernel team for Google's projectara [1], where we are building a module smart phone.

This series tries to fix one of the problems we hit on our system as we are required to hotplug pretty much every thing on the phone and so this fixes hotplug issues with i2c-dev.

As described in the second patch, the current implementation of i2c-dev file operations doesn't let the modules (hardware attached to the phone) eject from the phone as the cleanup path for the module hasn't finished yet (i2c adapter not removed).

We can't let the userspace block the kernel devices forever in such cases.

I was able to test them on the ARA phone with kernel 3.10 only and not mainline.

--
viresh

[1] https://atap.google.com/ara/

Viresh Kumar (2):
i2c-dev: don't get i2c adapter via i2c_dev
i2c-dev: Don't block the adapter from unregistering

 drivers/i2c/i2c-dev.c | 79 ++++++++++++++++++++++++++++++++++++++++++---------
 include/linux/i2c.h   |  1 +
 2 files changed, 67 insertions(+), 13 deletions(-)
Signature · 1 line
2.7.4