aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/8250_pci.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-08-22 14:01:11 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-08-22 19:52:44 -0700
commit20620d688ac6ff8ea01a873e46febf5a6a7909f1 (patch)
treed96669333a906efd030016267aae93986434487a /drivers/serial/8250_pci.c
parent187226f57f1381cfc63216979b4375f30e593795 (diff)
downloadkernel_samsung_smdk4412-20620d688ac6ff8ea01a873e46febf5a6a7909f1.zip
kernel_samsung_smdk4412-20620d688ac6ff8ea01a873e46febf5a6a7909f1.tar.gz
kernel_samsung_smdk4412-20620d688ac6ff8ea01a873e46febf5a6a7909f1.tar.bz2
serial: don't optimise away baud rate changes when BOTHER is used
The uart_set_termios() function will bail out early without bothering to touch the hardware, if it decides that nothing "relevant" has changed. Unfortunately, its idea of "relevant" doesn't include c_[io]speed. So if the baud rate bits are BOTHER and you just change the speed, the change gets optimised away. This patch makes it ignore the old Bfoo bits in c_cflag and just check whether c_ispeed and c_ospeed have changed. Those integers are always set appropriately for us by set_termios(). Signed-off-by: David Woodhouse <dwmw2@infradead.org> Acked-by: Alan Cox <alan@redhat.com> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial/8250_pci.c')
0 files changed, 0 insertions, 0 deletions