Staging: quatech_usb2: Improvements to set_termios method
authorRichard Ash <richard@audacityteam.org>
Thu, 20 Aug 2009 10:25:12 +0000 (11:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:36 +0000 (12:01 -0700)
commit560a9be8320ab632c7d1dac058662f6c82e5676a
tree9330bb85e9f943fc33edb571da319430e08e9ba0
parenteba1aaddc0fd427d62f51747c6ec5f965ef5dc56
Staging: quatech_usb2: Improvements to set_termios method

This patch implements several improvements to the set_termios method
suggested by Alan Cox:
* Correct check for whether any changes are being requested.
* Inform callers that mark/space parity isn't supported by always
clearing the bit.
* Pass back the actual used baud rate in case it doesn't match what was
requested.

Remaining known issues are that IXANY flow control is not supported, but
we don't tell the caller that, and input and output XON/XOFF flow
control are either both on or both off, but we don't indicate that back
to the caller either.

Signed-off-by: Richard Ash <richard@audacityteam.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/quatech_usb2/TODO [new file with mode: 0644]
drivers/staging/quatech_usb2/quatech_usb2.c