Skip to content
Commit 85bc2d91 authored by Johanna Abrahamsson's avatar Johanna Abrahamsson Committed by Johan Hovold
Browse files

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: default avatarJohanna 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: default avatarJohan Hovold <johan@kernel.org>
parent 15fb84b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment