USB: pl2303: fixed handling of CS5 setting
authorColin Leitner <colin.leitner@googlemail.com>
Mon, 4 Nov 2013 18:40:43 +0000 (19:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Dec 2013 06:37:55 +0000 (22:37 -0800)
commitb0e98c492680710765baf6c8b51e60883d22808c
treef3d8f5b1d9e3673c9e8727a5eecb6821c22bf1ea
parent8aa61f36bb68b7544a7c955658e29556f866bb6a
USB: pl2303: fixed handling of CS5 setting

commit a313249937820f8b1996133fc285efbd6aad2c5b upstream.

This patch fixes the CS5 setting on the PL2303 USB-to-serial devices. CS5 has a
value of 0 and the CSIZE setting has been skipped altogether by the enclosing
if. Tested on 3.11.6 and the scope shows the correct output after the fix has
been applied.

Tagged to be added to stable, because it fixes a user visible driver bug and is
simple enough to backport easily.

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/pl2303.c