aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/commit.c
diff options
context:
space:
mode:
authorNicolas PLANEL <[email protected]>2015-03-01 18:47:22 +0000
committerJohan Hovold <[email protected]>2015-03-02 08:31:02 +0000
commitaa91def41a7bb1fd65492934ce6bea19202b6080 (patch)
tree94898862f9900edc9ce2a2bbc0490059d4408e55 /fs/ubifs/commit.c
parentUSB: serial: cp210x: Adding Seletek device id's (diff)
downloadkernel-aa91def41a7bb1fd65492934ce6bea19202b6080.tar.gz
kernel-aa91def41a7bb1fd65492934ce6bea19202b6080.zip
USB: ch341: set tty baud speed according to tty struct
The ch341_set_baudrate() function initialize the device baud speed according to the value on priv->baud_rate. By default the ch341_open() set it to a hardcoded value (DEFAULT_BAUD_RATE 9600). Unfortunately, the tty_struct is not initialized with the same default value. (usually 56700) This means that the tty_struct and the device baud rate generator are not synchronized after opening the port. Fixup is done by calling ch341_set_termios() if tty exist. Remove unnecessary variable priv->baud_rate setup as it's already done by ch341_port_probe(). Remove unnecessary call to ch341_set_{handshake,baudrate}() in ch341_open() as there already called in ch341_configure() and ch341_set_termios() Signed-off-by: Nicolas PLANEL <[email protected]> Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions