Johanna Abrahamsson 85bc2d91e9 USB: serial: cp210x: add minimum baud rate for CP2105 SCI
Add minimum baud rate to the cp210x driver.

According to the datasheet for CP2105, the SCI supports 2400 as the
lowest baud rate. As this is not heeded in the current code, an error
message 'failed set req 0x1e size 4 status: -32' when trying to set a
lower baud rate such as 300.
The other cp210x models to date supports a minimum baud rate of 300.

Signed-off-by: Johanna Abrahamsson <johanna.abrahamsson@afconsult.com>
[ johan: simplify min_speed init, move clamp after comment, and drop
         unused serial-data pointer from cp210x_get_actual_rate() ]
Signed-off-by: Johan Hovold <johan@kernel.org>
2019-02-07 15:13:12 +01:00
..
2018-10-13 00:50:35 -04:00
2017-11-04 11:58:00 +01:00
2018-10-13 00:50:35 -04:00
2018-10-13 00:50:38 -04:00
2018-10-13 00:50:38 -04:00
2018-10-13 00:50:39 -04:00
2017-11-04 11:58:00 +01:00
2018-10-13 00:50:41 -04:00