USB: serial: ftdi_sio: fix FTX sub-integer prescaler
authorJohan Hovold <johan@kernel.org>
Tue, 26 Jan 2021 13:59:17 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:24 +0000 (11:38 +0100)
commitb006da9e3efd96a632c72d52c0ec1c09c3cc0446
treea66f7599698aa3e77cfbf50f3f135ab6493339c6
parent5b4cd967876269bfce36b0ec22a846882224b7e9
USB: serial: ftdi_sio: fix FTX sub-integer prescaler

commit 528222d0c8ce93e435a95cd1e476b60409dd5381 upstream.

The most-significant bit of the sub-integer-prescaler index is set in
the high byte of the baudrate request wIndex also for FTX devices.

This fixes rates like 1152000 which got mapped to 1.2 MBd.

Reported-by: Vladimir <svv75@mail.ru>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=210351
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ftdi_sio.c