diff options
author | Fabien Dessenne <fabien.dessenne@foss.st.com> | 2022-04-22 16:36:08 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-05-01 23:25:58 +0200 |
commit | c954531bc5d84fc13e035204750c3761c5fc93b0 (patch) | |
tree | 19e45e32a09b914a73de0e5c8fdc06c2e8ab68fe /drivers/pinctrl/stm32/pinctrl-stm32mp157.c | |
parent | Merge tag 'v5.18-rc5' into devel (diff) | |
download | linux-c954531bc5d84fc13e035204750c3761c5fc93b0.tar.xz linux-c954531bc5d84fc13e035204750c3761c5fc93b0.zip |
pinctrl: stm32: improve bank clocks management
Instead of enabling/disabling the clock at each IO configuration update,
just keep the clock enabled from the probe.
This makes things simpler and more efficient (e.g. the time required to
toggle an output IO is drastically decreased) without significantly
increasing the power consumption.
Signed-off-by: Fabien Dessenne <fabien.dessenne@foss.st.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20220422143608.226580-1-fabien.dessenne@foss.st.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/stm32/pinctrl-stm32mp157.c')
-rw-r--r-- | drivers/pinctrl/stm32/pinctrl-stm32mp157.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32mp157.c b/drivers/pinctrl/stm32/pinctrl-stm32mp157.c index 2ccb99d64df8..91b2fc8ddbdb 100644 --- a/drivers/pinctrl/stm32/pinctrl-stm32mp157.c +++ b/drivers/pinctrl/stm32/pinctrl-stm32mp157.c @@ -2343,7 +2343,7 @@ static const struct of_device_id stm32mp157_pctrl_match[] = { }; static const struct dev_pm_ops stm32_pinctrl_dev_pm_ops = { - SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, stm32_pinctrl_resume) + SET_LATE_SYSTEM_SLEEP_PM_OPS(stm32_pinctrl_suspend, stm32_pinctrl_resume) }; static struct platform_driver stm32mp157_pinctrl_driver = { |