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)
committerJohan Hovold <johan@kernel.org>
Mon, 1 Feb 2021 13:06:11 +0000 (14:06 +0100)
commit528222d0c8ce93e435a95cd1e476b60409dd5381
tree700ed84bdb82775aa14ea1607df00989fb60fc31
parente2f2dea34cf16e67b347ea7e9805864f03d16dcc
USB: serial: ftdi_sio: fix FTX sub-integer prescaler

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>
drivers/usb/serial/ftdi_sio.c