tty/serial: atmel: add ISO7816 support
authorNicolas Ferre <nicolas.ferre@microchip.com>
Wed, 26 Sep 2018 12:58:48 +0000 (14:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2018 20:38:55 +0000 (13:38 -0700)
commit377fedd1866ae3979e4fe36193475b8acbc82784
treef7af5d413eb92eb10d5f6c5c5d90d9dda1410a14
parentad8c0eaa0a418ae8ef3f9217638bb86439399eac
tty/serial: atmel: add ISO7816 support

When mode is set in atmel_config_iso7816() we backup last RS232 mode
for coming back to this mode if requested.
Also allow setup of T=0 and T=1 parameter and basic support in set_termios
function as well.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
[ludovic.desroches@microchip.com: rebase, add check on fidi ratio, checkpatch fixes]
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c
drivers/tty/serial/atmel_serial.h