Skip to content

Commit

Permalink
gpiolib: acpi: support bias pull disable
Browse files Browse the repository at this point in the history
On top of looking at PULL_UP and PULL_DOWN flags, also look at
PULL_DISABLE and set the appropriate GPIO flag. The GPIO core will then
pass down this to controllers that support it.

Change-Id: I78df1dc294ae916c1f52888e1c0b9e897042a4ed
Signed-off-by: Nuno Sá <[email protected]>
Acked-by: Andy Shevchenko <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Amelie Delaunay <[email protected]>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/312115
Tested-by: Eric FOURMONT <[email protected]>
Reviewed-by: Eric FOURMONT <[email protected]>
Domain-Review: Eric FOURMONT <[email protected]>
  • Loading branch information
nunojsa authored and fourmone committed Jul 31, 2023
1 parent 1a3de8e commit 61ca40c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpio/gpiolib-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@ int acpi_gpio_update_gpiod_lookup_flags(unsigned long *lookupflags,
case ACPI_PIN_CONFIG_PULLDOWN:
*lookupflags |= GPIO_PULL_DOWN;
break;
case ACPI_PIN_CONFIG_NOPULL:
*lookupflags |= GPIO_PULL_DISABLE;
break;
default:
break;
}
Expand Down

0 comments on commit 61ca40c

Please sign in to comment.