]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 5 Mar 2020 09:37:01 +0000 (10:37 +0100)
commit7de04195cbdc82266e9a67e0ef2ec47e236eeab9
treee09c292ba5bc62f215407db24778a488c2fb7f2f
parentb8c66ecb0402150d0b7fa08fe54c295fcfc23bae
tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode

BugLink: https://bugs.launchpad.net/bugs/1866165
commit 04b5bfe3dc94e64d0590c54045815cb5183fb095 upstream.

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: 98f2082c3ac4 ("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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/tty/serial/atmel_serial.c