1. 18 11月, 2012 9 次提交
  2. 12 11月, 2012 6 次提交
  3. 09 11月, 2012 4 次提交
  4. 07 11月, 2012 1 次提交
  5. 05 11月, 2012 2 次提交
    • A
      gpio-pch: Set parent dev for gpio chip · 5c868fc6
      Alexander Stein 提交于
      This will show the gpio chip as a child node
      under /sys/bus/pci/devices/xxxx:xx:xx.x/
      Signed-off-by: NAlexander Stein <alexander.stein@systec-electronic.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      5c868fc6
    • A
      gpio: em: Fix build errors · 16310819
      Axel Lin 提交于
      Fix below build errors:
      
        CC [M]  drivers/gpio/gpio-em.o
      drivers/gpio/gpio-em.c: In function 'em_gio_probe':
      drivers/gpio/gpio-em.c:306: error: 'err' undeclared (first use in this function)
      drivers/gpio/gpio-em.c:306: error: (Each undeclared identifier is reported only once
      drivers/gpio/gpio-em.c:306: error: for each function it appears in.)
      drivers/gpio/gpio-em.c:308: error: label 'err3' used but not defined
      drivers/gpio/gpio-em.c:279: error: label 'err2' used but not defined
      drivers/gpio/gpio-em.c:265: error: label 'err1' used but not defined
      drivers/gpio/gpio-em.c:250: error: label 'err0' used but not defined
      drivers/gpio/gpio-em.c:309: warning: no return statement in function returning non-void
      drivers/gpio/gpio-em.c: At top level:
      drivers/gpio/gpio-em.c:311: error: expected identifier or '(' before 'if'
      drivers/gpio/gpio-em.c:317: error: expected identifier or '(' before 'if'
      drivers/gpio/gpio-em.c:323: warning: data definition has no type or storage class
      drivers/gpio/gpio-em.c:323: warning: type defaults to 'int' in declaration of 'ret'
      drivers/gpio/gpio-em.c:323: error: 'gpio_chip' undeclared here (not in a function)
      drivers/gpio/gpio-em.c:323: error: initializer element is not constant
      drivers/gpio/gpio-em.c:324: error: expected identifier or '(' before 'if'
      drivers/gpio/gpio-em.c:328: error: expected identifier or '(' before 'return'
      drivers/gpio/gpio-em.c:330: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:332: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:334: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:338: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:340: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:342: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:344: error: expected identifier or '(' before '}' token
      drivers/gpio/gpio-em.c: In function 'em_gio_remove':
      drivers/gpio/gpio-em.c:361: error: implicit declaration of function 'em_gio_irq_domain_cleanup'
      make[2]: *** [drivers/gpio/gpio-em.o] Error 1
      make[1]: *** [drivers/gpio] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      16310819
  6. 31 10月, 2012 1 次提交
  7. 28 10月, 2012 2 次提交
    • J
      gpio/omap: fix off-mode bug: clear debounce settings on free/reset · c9c55d92
      Jon Hunter 提交于
      This change was originally titled "gpio/omap: fix off-mode bug: clear debounce
      clock enable mask on free/reset". The title has been updated slightly to
      reflect (what should be) the final fix.
      
      When a GPIO is freed or shutdown, we need to ensure that any debounce settings
      are cleared and if the GPIO is the only GPIO in the bank that is currently
      using debounce, then disable the debounce clock as well to save power.
      
      Currently, the debounce settings are not cleared on a GPIO free or shutdown and
      so during a context restore on subsequent off-mode transition, the previous
      debounce values are restored from the shadow copies (bank->context.debounce*)
      leading to mismatch state between driver state and hardware state.
      
      This was discovered when board code was doing
      
        gpio_request_one()
        gpio_set_debounce()
        gpio_free()
      
      which was leaving the GPIO debounce settings in a confused state.  If that GPIO
      bank is subsequently used with off-mode enabled, bogus state would be restored,
      leaving GPIO debounce enabled which then prevented the CORE powerdomain from
      transitioning.
      
      To fix this, introduce a new function called _clear_gpio_debounce() to clear
      any debounce settings when the GPIO is freed or shutdown. If this GPIO is the
      last debounce-enabled GPIO in the bank, the debounce will also be cut.
      
      Please note that we cannot use _gpio_dbck_disable() to disable the debounce
      clock because this has been specifically created for the gpio suspend path
      and is intended to shutdown the debounce clock while debounce is enabled.
      
      Special thanks to Kevin Hilman for root causing the bug. This fix is a
      collaborative effort with inputs from Kevin Hilman, Grazvydas Ignotas and
      Santosh Shilimkar.
      
      Testing:
      - This has been unit tested on an OMAP3430 Beagle board, by requesting a gpio,
        enabling debounce and then freeing the gpio and checking the register
        contents, the saved register context and the debounce clock state.
      - Kevin Hilman tested on 37xx/EVM board which configures GPIO debounce for the
        ads7846 touchscreen in its board file using the above sequence, and so was
        failing off-mode tests in dynamic idle. Verified that off-mode tests are
        passing with this patch.
      
      V5 changes:
      - Corrected author
      Reported-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Igor Grinberg <grinberg@compulab.co.il>
      Cc: Grazvydas Ignotas <notasas@gmail.com>
      Cc: Jon Hunter <jon-hunter@ti.com>
      Signed-off-by: NJon Hunter <jon-hunter@ti.com>
      Reviewed-by: NKevin Hilman <khilman@ti.com>
      Tested-by: NKevin Hilman <khilman@ti.com>
      Acked-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      c9c55d92
    • W
      GPIO: clps711x: use platform_device_unregister in gpio_clps711x_init() · 2cad6a8a
      Wei Yongjun 提交于
      platform_device_unregister() only calls platform_device_del() and
      platform_device_put(), thus use platform_device_unregister() to
      simplify the code.
      
      Also the documents in platform.c shows that platform_device_del
      and platform_device_put must _only_ be externally called in error
      cases.  All other usage is a bug.
      
      dpatch engine is used to auto generate this patch.
      (https://github.com/weiyj/dpatch)
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      2cad6a8a
  8. 26 10月, 2012 8 次提交
  9. 24 10月, 2012 2 次提交
  10. 23 10月, 2012 1 次提交
    • R
      gpiolib: Refactor gpio_export · fc4e2514
      Ryan Mallon 提交于
      The gpio_export function uses nested if statements and the status
      variable to handle the failure cases. This makes the function logic
      difficult to follow. Refactor the code to abort immediately on failure
      using goto. This makes the code slightly longer, but significantly
      reduces the nesting and number of split lines and makes the code easier
      to read.
      Signed-off-by: NRyan Mallon <rmallon@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      fc4e2514
  11. 19 10月, 2012 1 次提交
  12. 18 10月, 2012 1 次提交
  13. 17 10月, 2012 1 次提交
  14. 16 10月, 2012 1 次提交