Re: [PATCH 1/3] serial: sh-sci: Postpone DMA release when falling back to PIO

2018-06-29 Thread Geert Uytterhoeven
On Fri, Jun 29, 2018 at 4:26 PM Geert Uytterhoeven wrote: > When the sh-sci driver detects an issue with DMA during operation, it > falls backs to PIO, and releases all DMA resources. > > As releasing DMA resources immediately has no advantages, but > complicates the code, and is susceptible to

[PATCH 1/3] serial: sh-sci: Postpone DMA release when falling back to PIO

2018-06-29 Thread Geert Uytterhoeven
When the sh-sci driver detects an issue with DMA during operation, it falls backs to PIO, and releases all DMA resources. As releasing DMA resources immediately has no advantages, but complicates the code, and is susceptible to races, it is better to postpone this to port shutdown. This allows