1. 25 6月, 2015 1 次提交
  2. 12 5月, 2015 2 次提交
  3. 06 5月, 2015 1 次提交
  4. 30 4月, 2015 1 次提交
    • J
      gpio: sysfs: fix memory leaks and device hotplug · 483d8211
      Johan Hovold 提交于
      Unregister GPIOs requested through sysfs at chip remove to avoid leaking
      the associated memory and sysfs entries.
      
      The stale sysfs entries prevented the gpio numbers from being exported
      when the gpio range was later reused (e.g. at device reconnect).
      
      This also fixes the related module-reference leak.
      
      Note that kernfs makes sure that any on-going sysfs operations finish
      before the class devices are unregistered and that further accesses
      fail.
      
      The chip exported flag is used to prevent gpiod exports during removal.
      This also makes it harder to trigger, but does not fix, the related race
      between gpiochip_remove and export_store, which is really a race with
      gpiod_request that needs to be addressed separately.
      
      Also note that this would prevent the crashes (e.g. NULL-dereferences)
      at reconnect that affects pre-3.18 kernels, as well as use-after-free on
      operations on open attribute files on pre-3.14 kernels (prior to
      kernfs).
      
      Fixes: d8f388d8 ("gpio: sysfs interface")
      Cc: stable <stable@vger.kernel.org>	# v2.6.27: 01cca93aSigned-off-by: NJohan Hovold <johan@kernel.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      483d8211
  5. 27 4月, 2015 1 次提交
  6. 10 4月, 2015 1 次提交
  7. 09 4月, 2015 1 次提交
    • L
      gpio: dwapb: remove dependencies · 549c5dc1
      Linus Walleij 提交于
      The Synopsys DesignWare DWAPB GPIO block is popular to
      synthesize amongst many architectures: X86, ARM, ARC.
      The driver was restricted to only these archs due to
      using [read|write]l_relaxed() accessors that were not
      universally available in the past,
      but as of commit 9439eb3a
      "asm-generic: io: implement relaxed accessor macros as
      conditional wrappers" these accessors are available on all
      archs so this should not be a problem any more. Enable the
      driver for all archs.
      
      Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      549c5dc1
  8. 08 4月, 2015 18 次提交
  9. 07 4月, 2015 1 次提交
  10. 04 4月, 2015 1 次提交
  11. 28 3月, 2015 1 次提交
  12. 27 3月, 2015 11 次提交