mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-06 02:24:14 +08:00
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>
This commit is contained in:
parent
fcd7631748
commit
eaa4c8f953
@ -775,6 +775,8 @@ static int atmel_conf_pin_config_group_get(struct pinctrl_dev *pctldev,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
arg = (res & ATMEL_PIO_DRVSTR_MASK) >> ATMEL_PIO_DRVSTR_OFFSET;
|
arg = (res & ATMEL_PIO_DRVSTR_MASK) >> ATMEL_PIO_DRVSTR_OFFSET;
|
||||||
break;
|
break;
|
||||||
|
case PIN_CONFIG_PERSIST_STATE:
|
||||||
|
return -ENOTSUPP;
|
||||||
default:
|
default:
|
||||||
return -ENOTSUPP;
|
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");
|
dev_warn(pctldev->dev, "drive strength not updated (incorrect value)\n");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case PIN_CONFIG_PERSIST_STATE:
|
||||||
|
return -ENOTSUPP;
|
||||||
default:
|
default:
|
||||||
dev_warn(pctldev->dev,
|
dev_warn(pctldev->dev,
|
||||||
"unsupported configuration parameter: %u\n",
|
"unsupported configuration parameter: %u\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user