]> git.karo-electronics.de Git - linux-beck.git/commit
USB: pl2303: use divisors for unsupported baud rates
authorLauri Hintsala <lauri.hintsala@bluegiga.com>
Wed, 13 Aug 2014 12:02:53 +0000 (15:02 +0300)
committerJohan Hovold <johan@kernel.org>
Mon, 1 Sep 2014 10:04:17 +0000 (12:04 +0200)
commit399aa9a75ad372b301e5050f3653a297a767fdc4
tree9738bb249a31ba13cba86866cf641bdc915d7f7a
parent69e273c0b0a3c337a521d083374c918dc52c666f
USB: pl2303: use divisors for unsupported baud rates

Use direct method for supported baud rates, otherwise use divisors.
Limit baud rate to 12 Mbaud with HX type.

This change has been tested to work with PL-2303HX at 115200, 500000,
1000000200000025000003000000 and 4000000 baud rates.

Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/pl2303.c