8e8dce0650
When do_output_char() attempts to write a carriage return/line feed sequence, it first checks to see how much buffer room is available. If there are at least two characters free, it will write the carriage return/line feed with two calls to tty_put_char(). It calls the tty_operation functions write() for devices that don't support the tty_operations function put_char(). If the USB generic serial device's write URB is not in use, it will return the buffer size when asked how much room is available. The write() of the carriage return will cause it to mark the write URB busy, so the subsequent write() of the line feed will be ignored. This patch uses the kfifo infrastructure to implement a write FIFO that accurately returns the amount of space available in the buffer. Signed-off-by: David VomLehn <dvomlehn@cisco.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
||
---|---|---|
.. | ||
association.h | ||
atmel_usba_udc.h | ||
audio.h | ||
c67x00.h | ||
cdc.h | ||
ch9.h | ||
composite.h | ||
ehci_def.h | ||
g_printer.h | ||
gadget.h | ||
gadgetfs.h | ||
gpio_vbus.h | ||
input.h | ||
iowarrior.h | ||
irda.h | ||
isp116x.h | ||
isp1362.h | ||
isp1760.h | ||
Kbuild | ||
langwell_udc.h | ||
m66592.h | ||
midi.h | ||
musb.h | ||
net2280.h | ||
otg.h | ||
quirks.h | ||
r8a66597.h | ||
rndis_host.h | ||
serial.h | ||
sl811.h | ||
tmc.h | ||
usbnet.h | ||
video.h | ||
vstusb.h | ||
wusb-wa.h | ||
wusb.h |