1. 26 1月, 2015 1 次提交
  2. 12 12月, 2014 1 次提交
  3. 03 12月, 2014 1 次提交
  4. 27 11月, 2014 3 次提交
  5. 29 10月, 2014 1 次提交
  6. 05 9月, 2014 1 次提交
  7. 22 7月, 2014 1 次提交
  8. 05 7月, 2014 1 次提交
  9. 28 5月, 2014 1 次提交
    • L
      gpio: mcp23s08: switch chip count to int · 596a1c5f
      Linus Walleij 提交于
      Commit 3e3bed91
      "gpio: mcp23s08: fixed count variable for devicetree probing"
      introduced a loop check to see if the number of chips were
      unconsistent and going below zero counting downwards, but
      this requires the counting variable to be able to be
      negative, so switch the variable from unsigned to int.
      
      Cc: Michael Stickel <ms@mycable.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      596a1c5f
  10. 27 5月, 2014 1 次提交
    • M
      gpio: mcp23s08: fixed count variable for devicetree probing · 3e3bed91
      Michael Stickel 提交于
      Fixed missing increase of count variable for devicetree path in driver
      probing.
      
      The gpio-mcp23s08 driver has two paths for getting the platform
      registration information. One for the classic platform initialization
      and one for openfirmware devicetree based initialization. The devicetree
      based path is missing the increase of the count variable, which results
      in the count variable to become negative in the later use, where it is
      decreased. The count variable is used as an index into a vector. This
      results in accessing invalid memory space and can result in an exception.
      
      Tested this with an AM3352 SoC with two mcp23s17 on two chip selects as
      well as on a shared chip select.
      Signed-off-by: NMichael Stickel <ms@mycable.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      3e3bed91
  11. 09 5月, 2014 2 次提交
  12. 18 3月, 2014 1 次提交
    • L
      gpio: switch drivers to use new callback · 57ef0428
      Linus Walleij 提交于
      This switches all GPIO and pin control drivers with irqchips
      that were using .startup() and .shutdown() callbacks to lock
      GPIO lines for IRQ usage over to using the .request_resources()
      and .release_resources() callbacks just introduced into the
      irqchip vtable.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      57ef0428
  13. 12 3月, 2014 1 次提交
  14. 20 1月, 2014 1 次提交
  15. 17 1月, 2014 1 次提交
    • L
      gpio: mcp23s08: Add irq functionality for i2c chips · 4e47f91b
      Lars Poeschel 提交于
      This adds interrupt functionality for i2c chips to the driver.
      They can act as a interrupt-controller and generate interrupts, if
      the inputs change.
      This is tested with a mcp23017 chip on an arm based platform.
      
      v3:
      - be a bit more clear that the irq functionality is also available
        on spi versions of the chips, but the linux driver does not support
        this yet
      
      v2:
      - some more word about irq-mirror property in binding doc
      - use of_read_bool instead of of_find_property for
        "interrupt-contrller" and "irq-mirror"
      - cache the "interrupt-controller" for remove function
      - do set the irq-mirror bit only if device is marked as
        interrupt-controller
      - do create the irq mapping and setup of irq_desc of all possible
        interrupts in probe path instead of in gpio_to_irq
      - mark gpios as in use as interrupts in irq in irq_startup and
        unlock it in irq_shutdown
      - rename virq to child_irq
      - remove dev argument from mcp23s08_irq_setup function
      - move gpiochip_add before mcp23s08_irq_setup in probe path
      Signed-off-by: NLars Poeschel <poeschel@lemonage.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      4e47f91b
  16. 04 12月, 2013 1 次提交
    • L
      gpio/pinctrl: make gpio_chip members typed boolean · 9fb1f39e
      Linus Walleij 提交于
      This switches the two members of struct gpio_chip that were
      defined as unsigned foo:1 to bool, because that is indeed what
      they are. Switch all users in the gpio and pinctrl subsystems
      to assign these values with true/false instead of 0/1. The
      users outside these subsystems will survive since true/false
      is 1/0, atleast we set some kind of more strict typing example.
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      9fb1f39e
  17. 30 8月, 2013 1 次提交
  18. 16 8月, 2013 2 次提交
  19. 11 4月, 2013 1 次提交
    • L
      gpio: mcp23s08: convert driver to DT · 97ddb1c8
      Lars Poeschel 提交于
      This converts the mcp23s08 driver to be able to be used with
      device tree.
      
      There is a "spi-present-mask" device tree property, that allows to
      use multiple of this spi chips on the same chipselect.
      
      v4:
      - removed the ability to specify the pullup from device tree
      - updated binding doc
      
      v3:
      - removed mcp,chips device tree property in favour of a
          mcp,spi-present-mask and a flag for the pullup of every gpio
      - seperated the match table. Now there is one for i2c and one for spi
      - do the of reading stuff on stack of the probe function - no devm
          any more
      
      v2:
      - squashed booth patches together
      - fixed build warning, when CONFIG_OF is not defined
      - use of_match_ptr macro for of_match_table
      Signed-off-by: NLars Poeschel <poeschel@lemonage.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      97ddb1c8
  20. 29 11月, 2012 3 次提交
  21. 18 11月, 2012 1 次提交
  22. 19 5月, 2012 1 次提交
  23. 01 11月, 2011 1 次提交
  24. 16 7月, 2011 3 次提交
  25. 15 7月, 2011 1 次提交
  26. 07 6月, 2011 1 次提交
  27. 12 3月, 2011 1 次提交
  28. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  29. 23 9月, 2009 2 次提交
  30. 16 1月, 2009 1 次提交
    • B
      gpio: fix probe() error return in gpio driver probes · a342d215
      Ben Dooks 提交于
      A number of drivers in drivers/gpio return -ENODEV when confronted with
      missing setup parameters such as the platform data.  However, returning
      -ENODEV causes the driver layer to silently ignore the driver as it
      assumes the probe did not find anything and was only speculative.
      
      To make life easier to discern why a driver is not being attached, change
      to returning -EINVAL, which is a better description of the fact that the
      driver data was not valid.
      
      Also add a set of dev_dbg() statements to the error paths to provide an
      better explanation of the error as there may be more that one point in the
      driver.
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      Cc: David Brownell <david-b@pacbell.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a342d215
  31. 17 10月, 2008 1 次提交