1. 11 5月, 2016 6 次提交
    • P
      gpio: zevio: make it explicitly non-modular · a90295b4
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/gpio/Kconfig:config GPIO_ZEVIO
      drivers/gpio/Kconfig:   bool "LSI ZEVIO SoC memory mapped GPIOs"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We explicitly disallow a driver unbind, since that doesn't have a
      sensible use case anyway, and it allows us to drop the ".remove"
      code for non-modular drivers.
      
      Since module_platform_driver() uses the same init level priority as
      builtin_platform_driver() the init ordering remains unchanged with
      this commit.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: Fabian Vogt <fabian@ritter-vogt.de>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      a90295b4
    • P
      gpio: timberdale: make it explicitly non-modular · 52ad9053
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/gpio/Kconfig:config GPIO_TIMBERDALE
      drivers/gpio/Kconfig:   bool "Support for timberdale GPIO IP"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We explicitly disallow a driver unbind, since that doesn't have a
      sensible use case anyway, and it allows us to drop the ".remove"
      code for non-modular drivers.
      
      Since module_platform_driver() uses the same init level priority as
      builtin_platform_driver() the init ordering remains unchanged with
      this commit.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      52ad9053
    • P
      gpio: stmpe: make it explicitly non-modular · 3b52bb96
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/gpio/Kconfig:config GPIO_STMPE
      drivers/gpio/Kconfig:   bool "STMPE GPIOs"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We explicitly disallow a driver unbind, since that doesn't have a
      sensible use case anyway, and it allows us to drop the ".remove"
      code for non-modular drivers.
      
      Curiously, this driver was using subsys_initcall since day one, so
      we don't have the "normal" module_init replacement in this change
      like we've done in other similar driver updates.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: Rabin Vincent <rabin.vincent@stericsson.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      3b52bb96
    • P
      gpio: sodaville: make it explicitly non-modular · 6a5ead91
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/gpio/Kconfig:config GPIO_SODAVILLE
      drivers/gpio/Kconfig:   bool "Intel Sodaville GPIO support"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We explicitly disallow a driver unbind, since that doesn't have a
      sensible use case anyway, and it allows us to drop the ".remove"
      code for non-modular drivers.
      
      Since module_pci_driver() uses the same init level as the
      builtin_pci_driver() does, there is no init ordering change
      caused by this commit.
      
      We don't replace module.h with init.h since the file already has that.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Hans J. Koch <hjk@linutronix.de>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      6a5ead91
    • G
      pinctrl: sh-pfc: Let gpio_chip.to_irq() return zero on error · 9697643f
      Geert Uytterhoeven 提交于
      Currrently the gpio_chip.to_irq() callback returns -ENOSYS on error,
      which causes bad interactions with the serial_mctrl_gpio helpers.
      
      mctrl_gpio_init() returns -ENOSYS if GPIOLIB is not enabled, which is
      intended to be ignored by its callers. However, ignoring -ENOSYS when it
      was caused by a gpiod_to_irq() failure will lead to a crash later:
      
          Unable to handle kernel paging request at virtual address ffffffde
          ...
          PC is at mctrl_gpio_set+0x14/0x78
      
      Fix this by returning zero instead, like gpiochip_to_irq() does.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      9697643f
    • D
      gpio: dwapb: Add ACPI device ID for DWAPB GPIO controller on X-Gene platforms · 1b0d5287
      Duc Dang 提交于
      This patch enables DWAPB GPIO controller support on X-Gene
      platforms in ACPI boot mode.
      Signed-off-by: NDuc Dang <dhdang@apm.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      1b0d5287
  2. 10 5月, 2016 2 次提交
    • C
      gpio: dt-bindings: add wd,mbl-gpio bindings · 5b64250b
      Christian Lamparter 提交于
      This patch adds the device tree bindings for the Western Digital's
      MyBook Live memory-mapped GPIO controllers.
      
      The gpios will be supported by gpio-mmio code of the
      GPIO generic library.
      Signed-off-by: NChristian Lamparter <chunkeey@googlemail.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      5b64250b
    • L
      gpio: of: make it possible to name GPIO lines · fd9c5531
      Linus Walleij 提交于
      Make it possible to name the producer side of a GPIO line using
      a "gpio-line-names" property array, modeled on the
      "clock-output-names" property from the clock bindings.
      
      This naming is especially useful for:
      
      - Debugging: lines are named after function, not just opaque
        offset numbers.
      
      - Exploration: systems where some or all GPIO lines are available
        to end users, such as prototyping, one-off's "makerspace usecases"
        users are helped by the names of the GPIO lines when tinkering.
        This usecase has been surfacing recently.
      
      The gpio-line-names attribute is completely optional.
      
      Example output from lsgpio on a patched Snowball tree:
      
      GPIO chip: gpiochip6, "8000e180.gpio", 32 GPIO lines
              line  0: unnamed unused
              line  1: "AP_GPIO161" "extkb3" [kernel]
              line  2: "AP_GPIO162" "extkb4" [kernel]
              line  3: "ACCELEROMETER_INT1_RDY" unused [kernel]
              line  4: "ACCELEROMETER_INT2" unused
              line  5: "MAG_DRDY" unused [kernel]
              line  6: "GYRO_DRDY" unused [kernel]
              line  7: "RSTn_MLC" unused
              line  8: "RSTn_SLC" unused
              line  9: "GYRO_INT" unused
              line 10: "UART_WAKE" unused
              line 11: "GBF_RESET" unused
              line 12: unnamed unused
      
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Amit Kucheria <amit.kucheria@linaro.org>
      Cc: David Mandala <david.mandala@linaro.org>
      Cc: Lee Campbell <leecam@google.com>
      Cc: devicetree@vger.kernel.org
      Acked-by: NRob Herring <robh@kernel.org>
      Reviewed-by: NMichael Welling <mwelling@ieee.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      fd9c5531
  3. 02 5月, 2016 1 次提交
  4. 01 5月, 2016 2 次提交
  5. 30 4月, 2016 2 次提交
  6. 29 4月, 2016 10 次提交
  7. 28 4月, 2016 2 次提交
  8. 27 4月, 2016 1 次提交
  9. 26 4月, 2016 14 次提交