Re: [PATCH] mfd: ezx-pcap: replace mutex_lock with spin_lock

2019-09-02 Thread Lee Jones
On Tue, 13 Aug 2019, Fuqian Huang wrote: > As mutex_lock might sleep. > Function pcap_adc_irq is an interrupt handler. > The use of mutex_lock in pcap_adc_irq may cause sleep > in IRQ context. > Replace mutex_lock with spin_lock to avoid this. No one has complained explaining why this might be a

[PATCH] mfd: ezx-pcap: replace mutex_lock with spin_lock

2019-08-13 Thread Fuqian Huang
As mutex_lock might sleep. Function pcap_adc_irq is an interrupt handler. The use of mutex_lock in pcap_adc_irq may cause sleep in IRQ context. Replace mutex_lock with spin_lock to avoid this. Signed-off-by: Fuqian Huang --- drivers/mfd/ezx-pcap.c | 53 ---