Messages in this thread | | | Date | Wed, 9 Jan 2008 01:29:47 +0000 | From | Alan Cox <> | Subject | Re: [PATCH: 2/2] [SERIAL] avoid stalling suspend if serial port won't drain |
| |
> > Give a port 30ms to drain; this is an arbitary value chosen to avoid > > long delays if there are many such ports in the system, while giving a > > reasonable chance for a single port to drain. Should a port not drain > > within this timeout, issue a warning.
30mS is a bit short at low baud rates - could we set the timeout based on baud + fifo size ?
ACK anyway - its clearly better than hanging if hardware flow control has halted the uart!
| |