1. 27 12月, 2015 23 次提交
  2. 22 12月, 2015 3 次提交
  3. 17 12月, 2015 2 次提交
    • L
      gpio: revert get() to non-errorprogating behaviour · 45ad7db9
      Linus Walleij 提交于
      commit e20538b8
      ("gpio: Propagate errors from chip->get()")
      started to propagate errors from the .get() functions since
      we can get errors from the infrastructure of e.g. slowbus
      GPIO expanders.
      
      However it turns out a bunch of drivers relied on the core
      to clamp the value, so we need to revert to the old behaviour
      and go over all drivers and fix them to conform to the
      expectations of the core before we go back to propagating
      the error code.
      
      Cc: stable@vger.kernel.org # 4.3+
      Cc: Bjorn Andersson <bjorn.andersson@sonymobile.com>
      Cc: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
      Fixes: e20538b8 ("gpio: Propagate errors from chip->get()")
      Reported-by: NMichael Trimarchi <michael@amarulasolutions.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      45ad7db9
    • L
      gpio: generic: clamp values from bgpio_get_set() · 67a76aaf
      Linus Walleij 提交于
      The bgpio_get_set() call should return a value clamped to [0,1],
      the current code will return a negative value if reading
      bit 31, which turns the value negative as this is a signed value
      and thus gets interpreted as an error by the gpiolib core.
      Found on the gpio-mxc but applies to any MMIO driver.
      
      Cc: stable@vger.kernel.org # 4.3+
      Cc: kernel@pengutronix.de
      Cc: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
      Fixes:  e20538b8 ("gpio: Propagate errors from chip->get()")
      Reported-by: NClemens Gruber <clemens.gruber@pqgruber.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      67a76aaf
  4. 15 12月, 2015 2 次提交
    • L
      gpio: pch: fix non-DT build · a9f1a3e4
      Linus Walleij 提交于
      commit 1cfadea8
      "gpio: pch: allow use from device tree"
      makes the driver not compile unless CONFIG_OF_GPIO is set.
      Fix it.
      
      Cc: Paul Burton <paul.burton@imgtec.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      a9f1a3e4
    • R
      gpio: pxa: add pin control gpio direction and request · a770d946
      Robert Jarzmik 提交于
      If a pin control driver is available, use it to change the gpio
      direction. If not fallback to directly manipulating the gpio direction
      register.
      
      The reason to use the pin control driver first is that pin control in
      pxa2xx architecture implies changing the gpio direction, even for non
      gpio functions. In order to do it atomically, only one driver should
      control the gpio direction, and if a pin controller is available, it has
      to be him.
      
      There is a small catch : if CONFIG_PINCTRL is selected, then a pinctrl
      driver has to be probed. If not, gpio_request() will return
      -EPROBE_DEFER as pinctrl_request_gpio() returns it in that case.
      Signed-off-by: NRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      a770d946
  5. 14 12月, 2015 3 次提交
  6. 12 12月, 2015 2 次提交
  7. 11 12月, 2015 5 次提交