summaryrefslogtreecommitdiff
path: root/include/linux/btree-128.h
diff options
context:
space:
mode:
authorTim Kryger <tim.kryger@linaro.org>2013-08-16 13:50:15 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-19 17:12:21 -0700
commit33acbb82695f84e9429c1f7fbdeb4588dea12ffa (patch)
tree8e0cc00c41415e494ee23231785a7c93cd845af4 /include/linux/btree-128.h
parente438ac9ade074932383bb00d51b8ded8a0ee164b (diff)
serial: 8250_dw: Report CTS asserted for auto flow
When a serial port is configured for RTS/CTS flow control, serial core will disable the transmitter if it observes CTS is de-asserted. This is perfectly reasonable and appropriate when the UART lacks the ability to automatically perform CTS flow control. However, if the UART hardware can manage flow control automatically, it is important that software not get involved. When the DesignWare UART enables 16C750 style auto-RTS/CTS it stops generating interrupts for changes in CTS state so software mostly stays out of the way. However, it does report the true state of CTS in the MSR so software may notice it is de-asserted and respond by improperly disabling the transmitter. Once this happens the transmitter will be blocked forever. To avoid this situation, we simply lie to the 8250 and serial core by reporting that CTS is asserted whenever auto-RTS/CTS mode is enabled. Signed-off-by: Tim Kryger <tim.kryger@linaro.org> Reviewed-by: Matt Porter <matt.porter@linaro.org> Reviewed-by: Markus Mayer <markus.mayer@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/btree-128.h')
0 files changed, 0 insertions, 0 deletions