USB: serial: pl2303: fix line-speed handling on newer chips
authorJohan Hovold <johan@kernel.org>
Mon, 11 Jan 2021 17:00:19 +0000 (18:00 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 18 Jan 2021 11:25:47 +0000 (12:25 +0100)
commit979d9cbe75b922ab1695b8ad5576115774f72e62
tree50f0b76a20542ba5361156314bb60581c5e1e9b9
parent161a582bd1d8681095f158d11bc679a58f1d026b
USB: serial: pl2303: fix line-speed handling on newer chips

The latest chip family (HXN) apparently does not support setting the
line speed using divisors and instead needs to use the direct encoding
scheme for all rates.

This specifically enables 50, 110, 134, 200 bps and other rates not
supported by the original chip type.

Fixes: ebd09f1cd417 ("USB: serial: pl2303: add support for PL2303HXN")
Cc: stable@vger.kernel.org # 5.5
Cc: Charles Yeh <charlesyeh522@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/pl2303.c