Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: merrifield: Make bias configuration available for GPIOs

If we get bias set request, for example, from GpioIo() resource,
we silently ignore it. Make bias configuration available for GPIOs.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

authored by

Andy Shevchenko and committed by
Bartosz Golaszewski
1d10243d ea6fe47f

+5
+5
drivers/gpio/gpio-merrifield.c
··· 194 194 { 195 195 u32 debounce; 196 196 197 + if ((pinconf_to_config_param(config) == PIN_CONFIG_BIAS_DISABLE) || 198 + (pinconf_to_config_param(config) == PIN_CONFIG_BIAS_PULL_UP) || 199 + (pinconf_to_config_param(config) == PIN_CONFIG_BIAS_PULL_DOWN)) 200 + return gpiochip_generic_config(chip, offset, config); 201 + 197 202 if (pinconf_to_config_param(config) != PIN_CONFIG_INPUT_DEBOUNCE) 198 203 return -ENOTSUPP; 199 204