pinctrl: stm32: improve bank clocks management
authorFabien Dessenne <fabien.dessenne@foss.st.com>
Fri, 22 Apr 2022 14:36:08 +0000 (16:36 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 1 May 2022 21:25:58 +0000 (23:25 +0200)
commitc954531bc5d84fc13e035204750c3761c5fc93b0
tree19e45e32a09b914a73de0e5c8fdc06c2e8ab68fe
parentf930b69a8944ab3f018e2a175ddbd16e71348df9
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>
drivers/pinctrl/stm32/pinctrl-stm32.c
drivers/pinctrl/stm32/pinctrl-stm32.h
drivers/pinctrl/stm32/pinctrl-stm32mp135.c
drivers/pinctrl/stm32/pinctrl-stm32mp157.c