• Johan Hovold's avatar
    USB: serial: pl2303: fix line-speed handling on newer chips · 979d9cbe
    Johan Hovold authored
    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: ebd09f1c ("USB: serial: pl2303: add support for PL2303HXN")
    Cc: stable@vger.kernel.org      # 5.5
    Cc: Charles Yeh <charlesyeh522@gmail.com>
    Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
    979d9cbe
pl2303.c 30.9 KB