Re: calling context when writing to tty_driver

Martin Diehl
2002-10-01T11:19:54Z

On Tue, 1 Oct 2002, David McIlwraith wrote:

> Semaphores may sleep - therefore, they cannot be used from a 'non-sleep'
> context.

Yes, sure. Sorry if I wasn't clear enough - the point is whether those
tty_driver write/write_room() calls are allowed to sleep or not. If yes,
the usbserial implementation is right and it is impossible to do further
writing directly from write_wakeup() callback (which would be really bad
IMHO) - if not, usbserial needs to avoid the down() somehow.

Martin