Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1437388

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

From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 0/2] i2c-dev: Don't let userspace block adapter
Date 2016-07-06 05:00 +0200
Message-ID <rRLe9-3nf-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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(-)

-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] i2c-dev: Don't let userspace block adapter Viresh Kumar <viresh.kumar@linaro.org> - 2016-07-06 05:00 +0200
  [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering Viresh Kumar <viresh.kumar@linaro.org> - 2016-07-06 05:00 +0200
    Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering kbuild test robot <lkp@intel.com> - 2016-07-06 07:10 +0200
    Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering Wolfram Sang <wsa@the-dreams.de> - 2016-07-06 09:00 +0200
      Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering Viresh Kumar <viresh.kumar@linaro.org> - 2016-07-06 16:00 +0200
      Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering Jean Delvare <jdelvare@suse.de> - 2016-07-06 19:20 +0200
        Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering Viresh Kumar <viresh.kumar@linaro.org> - 2016-07-06 23:00 +0200
    Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering Viresh Kumar <viresh.kumar@linaro.org> - 2016-07-06 16:40 +0200
      Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering Lars-Peter Clausen <lars@metafoo.de> - 2016-07-06 16:50 +0200
        Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering Viresh Kumar <viresh.kumar@linaro.org> - 2016-07-06 17:40 +0200
        Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering Viresh Kumar <viresh.kumar@linaro.org> - 2016-07-06 17:40 +0200
  Re: [PATCH 0/2] i2c-dev: Don't let userspace block adapter Lars-Peter Clausen <lars@metafoo.de> - 2016-07-06 16:50 +0200
    Re: [PATCH 0/2] i2c-dev: Don't let userspace block adapter Viresh Kumar <viresh.kumar@linaro.org> - 2016-07-06 17:40 +0200

csiph-web