Hi!
I do not really know what is going on, but if I return 0 in
write_room, tty will keep trying to write 0 bytes for about minute or
so. Not pleasant. Lying about write buffer size is performance issue
at worst (and I doubt it is even performace issue), and this fixes
problem for me:
Pavel
--- clean/drivers/usb/acm.c Thu Apr 27 10:05:48 2000
+++ linux/drivers/usb/acm.c Mon May 22 23:15:24 2000
@@ -349,7 +362,7 @@
{
struct acm *acm = tty->driver_data;
if (!ACM_READY(acm)) return -EINVAL;
- return acm->writeurb.status == -EINPROGRESS ? 0 : acm->writesize;
+ return acm->writesize;
}
static int acm_tty_chars_in_buffer(struct tty_struct *tty)
--
I'm [EMAIL PROTECTED] "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents me at [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]