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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:24 +0000 (11:38 +0100)
commit11fd58946e03ecea28a42af7acfca3f0b1c1a4fe
tree575ba823d8463422111c694d3335c46428e48001
parentb006da9e3efd96a632c72d52c0ec1c09c3cc0446
USB: serial: pl2303: fix line-speed handling on newer chips

commit 979d9cbe75b922ab1695b8ad5576115774f72e62 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/pl2303.c