Skip to content

tty/serial: atmel: rework tasklets and shutdown sequence

Nicolas Ferre linux-arm-kernel linux-serial lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tty/serial: atmel: re-integrate status check in irq handlerdrivers/tty/serial/atmel_serial.c+17 -260 replies
2/4tty/serial: atmel: split tx and rx pathsdrivers/tty/serial/atmel_serial.c+34 -190 replies
3/4tty/serial: atmel: add comment for the ring buffer size macrodrivers/tty/serial/atmel_serial.c+6 -00 replies
4/4tty/serial: atmel: enforce tasklet init and termination sequencesdrivers/tty/serial/atmel_serial.c+38 -232 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] tty/serial: atmel: rework tasklets and shutdown sequence

We experienced some issues with how the atmel_serial driver was dealing with tasklets.
First, a single tasklet was used for both RX and TX paths which was leading to calling DMA residue checking routines frequently without reason. So I split the RX and TX paths with one tasklet for each.
Secondly, as we experienced some deadlocks, I reinforced the shutdown function of this driver by following the recommended sequence that is described here:
https://lwn.net/Articles/588457/

The first 3 patches have already been posted on May 12th. The 4th patch is built on top of them, this is why make a series with them...

Bye,

Ludovic Desroches (1):
tty/serial: atmel: add comment for the ring buffer size macro

Nicolas Ferre (3):
tty/serial: atmel: re-integrate status check in irq handler tty/serial: atmel: split tx and rx paths
tty/serial: atmel: enforce tasklet init and termination sequences

 drivers/tty/serial/atmel_serial.c | 129 +++++++++++++++++++++++---------------
 1 file changed, 78 insertions(+), 51 deletions(-)
Signature · 1 line
2.9.0