Re: [PATCH 2/3] serial: stm32: fix threaded interrupt handling

2021-04-16 Thread Johan Hovold
On Fri, Apr 16, 2021 at 10:35:25PM +0800, dillon min wrote: > Hi Johan > > Thanks for share your patch. > > Johan Hovold 于2021年4月16日 周五22:11写道: > > > When DMA is enabled the receive handler runs in a threaded handler, but > > the primary handler up until very recently neither disabled interrupts

Re: [PATCH 2/3] serial: stm32: fix threaded interrupt handling

2021-04-16 Thread Johan Hovold
On Fri, Apr 16, 2021 at 04:05:56PM +0200, Johan Hovold wrote: > When DMA is enabled the receive handler runs in a threaded handler, but > the primary handler up until very recently neither disabled interrupts Scratch the "up until very recently" bit here since the driver still doesn't disable inte

[PATCH 2/3] serial: stm32: fix threaded interrupt handling

2021-04-16 Thread Johan Hovold
When DMA is enabled the receive handler runs in a threaded handler, but the primary handler up until very recently neither disabled interrupts in the device or used IRQF_ONESHOT. This would lead to a deadlock if an interrupt comes in while the threaded receive handler is running under the port lock