1. 22 7月, 2017 1 次提交
  2. 10 7月, 2017 1 次提交
  3. 05 2月, 2017 1 次提交
  4. 26 1月, 2017 2 次提交
  5. 22 1月, 2017 3 次提交
  6. 18 11月, 2016 1 次提交
    • S
      Input: gpio_keys - set input direction explicitly · dadbb0aa
      Sudeep Holla 提交于
      Commit 700a38b2 ("Input: gpio_keys - switch to using generic device
      properties") switched to use generic device properties for GPIO keys and
      commit 5feeca3c ("Input: gpio_keys - add support for GPIO descriptors")
      switched from legacy GPIO numbers to GPIO descriptors.
      
      Previously devm_gpio_request_one was explicitly passed GPIOF_DIR_IN flag
      to set the GPIO direction as input. However devm_get_gpiod_from_child
      doesn't have such provisions and hence fwnode_get_named_gpiod can't set
      it as input.
      
      This breaks few platforms with the following error:
      " gpiochip_lock_as_irq: tried to flag a GPIO set as output for IRQ
        unable to lock HW IRQ <n> for IRQ
        genirq: Failed to request resources for POWER (irq <x>) on irqchip
        gpio_keys: Unable to claim irq <x>; error -22
        gpio-keys: probe failed with error -22 "
      
      This patch fixes the issue by setting input direction explicitly for
      gpio lines described by generic properties.
      
      Fixes: 700a38b2 ("Input: gpio_keys - switch to using generic device properties")
      Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      dadbb0aa
  7. 08 11月, 2016 5 次提交
  8. 13 1月, 2016 2 次提交
  9. 11 1月, 2016 1 次提交
  10. 03 10月, 2015 1 次提交
  11. 25 8月, 2015 1 次提交
  12. 24 7月, 2015 1 次提交
  13. 14 2月, 2015 1 次提交
  14. 16 12月, 2014 2 次提交
  15. 15 12月, 2014 1 次提交
  16. 08 12月, 2014 1 次提交
  17. 04 12月, 2014 1 次提交
  18. 20 10月, 2014 1 次提交
  19. 15 5月, 2014 3 次提交
  20. 06 10月, 2013 1 次提交
  21. 09 5月, 2013 1 次提交
  22. 25 12月, 2012 1 次提交
  23. 04 12月, 2012 1 次提交
  24. 28 11月, 2012 2 次提交
  25. 24 11月, 2012 3 次提交
  26. 22 8月, 2012 1 次提交
    • N
      Input: gpio_keys - report a wakeup_event for a button press · 2fba26c6
      NeilBrown 提交于
      In order to avoid races with suspend, a wakeup event must register as
      such by calling pm_wakeup_event() or pm_stay_awake().  This will ensure
      that the current suspend cycle aborts.
      
      When the user-space visible event is created in the interrupt handler
      (gpio_keys_irq_isr), a simple pm_wakeup_event() with no delay is
      sufficient as suspend will synchronise with all interrupt delivery.
      
      When the user-space visible event is created later
      (gpio_keys_gpio_isr), we need to bracket the event with
      pm_stay_awake() and pm_relax().
      Signed-off-by: NNeilBrown <neilb@suse.de>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      2fba26c6