Re: [PATCH] pinctrl: stm32: use the hwspin_lock_timeout_in_atomic() API

2020-07-23 Thread Alexandre Torgue
On 7/23/20 3:20 PM, Linus Walleij wrote: On Mon, Jun 15, 2020 at 2:44 PM Alexandre Torgue wrote: From: Fabien Dessenne 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()

Re: [PATCH] pinctrl: stm32: use the hwspin_lock_timeout_in_atomic() API

2020-07-23 Thread Linus Walleij
On Mon, Jun 15, 2020 at 2:44 PM Alexandre Torgue wrote: > From: Fabien Dessenne > > 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 wo

[PATCH] pinctrl: stm32: use the hwspin_lock_timeout_in_atomic() API

2020-06-15 Thread Alexandre Torgue
From: Fabien Dessenne 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-b