pinctrl: stm32: use the hwspin_lock_timeout_in_atomic() API
authorFabien Dessenne <fabien.dessenne@st.com>
Mon, 15 Jun 2020 12:44:56 +0000 (14:44 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jul 2020 13:19:28 +0000 (15:19 +0200)
commit290a9f937e5a8b4eb41f7e48237816dc6ba0c783
treea06c44b8240a40d3fec823413497895c95dbce38
parent57597e150f1b589046bf0da865eeee2b58792079
pinctrl: stm32: use the hwspin_lock_timeout_in_atomic() API

Use the hwspin_lock_timeout_in_atomic() API which is the most appropriated
here. Indeed:
- hwspin_lock_() is called after spin_lock_irqsave()
- the hwspin_lock_timeout() API relies on jiffies count which won't work
  if IRQs are disabled which is the case here.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Link: https://lore.kernel.org/r/20200615124456.27328-1-alexandre.torgue@st.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c