mbox series

[0/2] gpio: davinci: improve wakeup capabilities

Message ID 20240718000935.2573288-1-khilman@baylibre.com
Headers show
Series gpio: davinci: improve wakeup capabilities | expand

Message

Kevin Hilman July 18, 2024, 12:09 a.m. UTC
Improve wakeup capabilities in the gpio-davinci driver by properly
handling the "wakeup-source" property from DT, but also by keeping
track of any wake-enabled IRQs.

Kevin Hilman (2):
  gpiolib: expose for_each_gpio_desc() to drivers
  gpio: davinci: handle wakeup-source property, detect wake IRQs

 drivers/gpio/gpio-davinci.c | 25 +++++++++++++++++++++++++
 drivers/gpio/gpiolib.h      |  5 -----
 include/linux/gpio/driver.h |  5 +++++
 3 files changed, 30 insertions(+), 5 deletions(-)

Comments

Dhruva Gole July 18, 2024, 4:52 a.m. UTC | #1
On Jul 17, 2024 at 17:09:32 -0700, Kevin Hilman wrote:
> The for_each_gpio_desc() iterator is a convenient helper and is also
> useful for GPIO controller drivers.  Move this helper from the
> internal gpiolib.h to driver.h.
> 
> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
> ---

Reviewed-by: Dhruva Gole <d-gole@ti.com>