From: David Woodhouse Date: Wed, 22 Aug 2007 21:01:11 +0000 (-0700) Subject: serial: don't optimise away baud rate changes when BOTHER is used X-Git-Tag: v2.6.23-rc4~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20620d688ac6ff8ea01a873e46febf5a6a7909f1;p=pandora-kernel.git 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 Acked-by: Alan Cox Cc: Russell King Cc: Mariusz Kozlowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed