aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_buffer.c
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2022-06-28 10:09:22 +0000
committerGreg Kroah-Hartman <[email protected]>2022-06-30 15:17:31 +0000
commit4f532c1e25319e42996ec18a1f473fd50c8e575d (patch)
treeb5ba77cf5a79937b4dff33667665521878c2ade3 /drivers/tty/tty_buffer.c
parentserial: 8250: Fix PM usage_count for console handover (diff)
downloadkernel-4f532c1e25319e42996ec18a1f473fd50c8e575d.tar.gz
kernel-4f532c1e25319e42996ec18a1f473fd50c8e575d.zip
serial: mvebu-uart: correctly report configured baudrate value
Functions tty_termios_encode_baud_rate() and uart_update_timeout() should be called with the baudrate value which was set to hardware. Linux then report exact values via ioctl(TCGETS2) to userspace. Change mvebu_uart_baud_rate_set() function to return baudrate value which was set to hardware and propagate this value to above mentioned functions. With this change userspace would see precise value in termios c_ospeed field. Fixes: 68a0db1d7da2 ("serial: mvebu-uart: add function to change baudrate") Cc: stable <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Pali Rohár <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/tty_buffer.c')
0 files changed, 0 insertions, 0 deletions