]> git.ipfire.org Git - thirdparty/u-boot.git/commit
pinctrl: stm32: make pinctrl use hwspinlock
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 27 Nov 2018 12:49:53 +0000 (13:49 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 7 Dec 2018 04:26:33 +0000 (23:26 -0500)
commit075b0185b6e785f08391802dccd3293ce8517a93
tree333c02ed92fa0912bf2a5cfed7256e049292e5f1
parent9119f547d3e9b9f488055b90572a8ff83125b3e2
pinctrl: stm32: make pinctrl use hwspinlock

Protect configuration registers with a hardware spinlock.

If a hwspinlock is defined in the device-tree node used it
to be sure that none of the others processors on the SoC could
change the configuration at the same time.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/dts/stm32mp157c-ed1.dts
drivers/pinctrl/pinctrl_stm32.c