]> git.baikalelectronics.ru Git - kernel.git/commit
tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode
authorNicolas Ferre <nicolas.ferre@microchip.com>
Mon, 10 Feb 2020 15:20:53 +0000 (16:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2020 20:26:44 +0000 (12:26 -0800)
commit0341fd42e2dfabf5f779143c16e87753796c1e68
tree0f1dc0bb72789c1431a42281e63b0185b0560df7
parent22503d0cde253945720decac5d87427714604b4c
tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode

In atmel_shutdown() we call atmel_stop_rx() and atmel_stop_tx() functions.
Prevent the rx restart that is implemented in RS485 or ISO7816 modes when
calling atmel_stop_tx() by using the atomic information tasklet_shutdown
that is already in place for this purpose.

Fixes: eb45550769fd ("tty/serial: atmel: enforce tasklet init and termination sequences")
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200210152053.8289-1-nicolas.ferre@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c