tty: moxa: Add support for CMSPAR
authorLars Kanis <kanis@comcard.de>
Tue, 28 Nov 2017 10:55:17 +0000 (11:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 14:32:33 +0000 (15:32 +0100)
commitd8dcbdd08c653d9a6754b3c775f13cb987fa91ec
treef7c4afc1fe43cc9f1520641ac5c5b6e2db656137
parente73be92d82e6a842eda6adac339963a3560ca0e4
tty: moxa: Add support for CMSPAR

The mode constants are taken from the GPL-2.0+ driver available
in the driver section of the Moxa homepage.

It is tested on a C320Turbo PCI card per logic analyzer and
per a device which requires 9 bit character communication.

The vendors driver supports CMSPAR unconditionally, so that all
other available firmware versions seems to support mark/space
parity modes as well.

Signed-off-by: Lars Kanis <kanis@comcard.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/moxa.c
drivers/tty/moxa.h