mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 04:56:57 +07:00
tty: serdev-ttyport: return actual baudrate from ttyport_set_baudrate
Instead of returning the requested baudrate, we better return the actual one because it isn't always the same. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
352b926645
commit
56c607b509
@ -151,7 +151,7 @@ static unsigned int ttyport_set_baudrate(struct serdev_controller *ctrl, unsigne
|
|||||||
|
|
||||||
/* tty_set_termios() return not checked as it is always 0 */
|
/* tty_set_termios() return not checked as it is always 0 */
|
||||||
tty_set_termios(tty, &ktermios);
|
tty_set_termios(tty, &ktermios);
|
||||||
return speed;
|
return ktermios.c_ospeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ttyport_set_flow_control(struct serdev_controller *ctrl, bool enable)
|
static void ttyport_set_flow_control(struct serdev_controller *ctrl, bool enable)
|
||||||
|
Loading…
Reference in New Issue
Block a user