diff options
author | Ryan Wanner <Ryan.Wanner@microchip.com> | 2022-10-07 17:16:47 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-10-17 11:56:16 +0200 |
commit | eaa4c8f953ba1d2eafb1c961aa9321beb71f21c9 (patch) | |
tree | dfbd82c1137fe5a4e23010f632e7bdf2ee0fed18 /drivers/pinctrl/pinctrl-at91-pio4.c | |
parent | pinctrl: at91-pio4: Add configuration to userspace (diff) | |
download | linux-eaa4c8f953ba1d2eafb1c961aa9321beb71f21c9.tar.xz linux-eaa4c8f953ba1d2eafb1c961aa9321beb71f21c9.zip |
pinctrl: at91-pio4: Add persist state case in config
Adding persist state case to atmel_conf_pin_config_group_set() function.
After adding configuration support for userspace gpiod api, there was an
extra flag PIN_CONFIG_PERSIST_STATE that was not passed in before.
Based on other drivers like TI drivers, added a switch case and return
ENOTSUPP in that case.
Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Tested-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20221007151647.98222-3-Ryan.Wanner@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-at91-pio4.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-at91-pio4.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index a7383b9a309e..2287e3fa64bf 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -775,6 +775,8 @@ static int atmel_conf_pin_config_group_get(struct pinctrl_dev *pctldev, return -EINVAL; arg = (res & ATMEL_PIO_DRVSTR_MASK) >> ATMEL_PIO_DRVSTR_OFFSET; break; + case PIN_CONFIG_PERSIST_STATE: + return -ENOTSUPP; default: return -ENOTSUPP; } @@ -883,6 +885,8 @@ static int atmel_conf_pin_config_group_set(struct pinctrl_dev *pctldev, dev_warn(pctldev->dev, "drive strength not updated (incorrect value)\n"); } break; + case PIN_CONFIG_PERSIST_STATE: + return -ENOTSUPP; default: dev_warn(pctldev->dev, "unsupported configuration parameter: %u\n", |