On Fri, 17 Dec 2010 16:34:23 +0100
Libor Pechacek <lpechacek@suse.cz> wrote:
(catching up after Christmas break)
It might be worth making tty_port_open know how to handle such devices as
I'd bet there will be others out there somewhere. Perhaps add a dcd_poll
field that holds the poll time in ms then in the tty_port_block_til_ready
code change from
tty_unlock();
schedule();
tty_lock();
to
tty_unlock();
if (port->dcd_poll)
schedule_timeout(port->dcd_poll);
else
schedule();
tty_lock
??
I don't - Greg may have info or of course you could cheat and wake the
queue whenever you see an unknown message format, then ask the device 8)
This looks good except that port->tty isn't necessarily a safe
de-reference so it would be better to pass the tty into the function so
the caller must think about that problem (and all the calling points
appear to have a tty reference held ready)
Looks good
Alan
--