Re: [PATCH] mailbox: stm32_ipcc: add spinlock to fix channels concurrent access

2019-05-22 Thread Fabien DESSENNE
Hi Arnaud, Thank you for the patch. On 22/05/2019 10:25 AM, Arnaud Pouliquen wrote: > Add spinlock protection on IPCC register update to avoid race condition. > Without this fix, stm32_ipcc_set_bits and stm32_ipcc_clr_bits can be > called in parallel for different channels. This results in regi

[PATCH] mailbox: stm32_ipcc: add spinlock to fix channels concurrent access

2019-05-22 Thread Arnaud Pouliquen
Add spinlock protection on IPCC register update to avoid race condition. Without this fix, stm32_ipcc_set_bits and stm32_ipcc_clr_bits can be called in parallel for different channels. This results in register corruptions. Signed-off-by: Arnaud Pouliquen --- drivers/mailbox/stm32-ipcc.c | 37 +++