diff options
| author | David Woodhouse <[email protected]> | 2007-08-22 14:01:11 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-08-22 19:52:44 -0700 |
| commit | 20620d688ac6ff8ea01a873e46febf5a6a7909f1 (patch) | |
| tree | d96669333a906efd030016267aae93986434487a /scripts | |
| parent | 187226f57f1381cfc63216979b4375f30e593795 (diff) | |
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 <[email protected]>
Acked-by: Alan Cox <[email protected]>
Cc: Russell King <[email protected]>
Cc: Mariusz Kozlowski <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions