]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ftdi_sio: added CS5 quirk for broken smartcard readers
authorColin Leitner <colin.leitner@googlemail.com>
Mon, 6 Jan 2014 20:33:54 +0000 (21:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 00:28:43 +0000 (16:28 -0800)
commited3ceda6e0ee354fe9f3e6c0128fa6b9cc7e56f2
tree95af331f275796dc541045fae1ef00757bd40503
parent0ce18b6e73db83cc1487fd58451e4557c94ed415
USB: ftdi_sio: added CS5 quirk for broken smartcard readers

Genuine FTDI chips support only CS7/8. A previous fix in commit
e052c2b37d15 ("USB: ftdi_sio: fixed handling of unsupported CSIZE
setting") enforced this limitation and reported it back to userspace.

However, certain types of smartcard readers depend on specific
driver behaviour that requests 0 data bits (not 5) to change into a
different operating mode if CS5 has been set.

This patch reenables this behaviour for all FTDI devices.

Tagged to be added to stable, because it affects a lot of users of
embedded systems which rely on these readers to work properly.

Cc: stable <stable@vger.kernel.org>
Reported-by: Heinrich Siebmanns <H.Siebmanns@t-online.de>
Tested-by: Heinrich Siebmanns <H.Siebmanns@t-online.de>
Signed-off-by: Colin Leitner <colin.leitner@gmail.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ftdi_sio.c