Re: [PATCH] AT91 Serial: update the powersave handler to matchserial core

From: Haavard Skinnemoen
Date: Fri Sep 19 2008 - 11:13:20 EST


Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
> > Maybe the tty layer ensures that the buffer is empty before
> > suspending...would be interesting to know. In any case, any such bug
>
> It doesn't - but calling tty_wait_until_sent(tty, some_timeout) will do
> that for you providing you call it in a sleep capable context.

Looks like it doesn't matter -- the serial core shuts the port down
completely, which will among other things disable the DMA controller.

Haavard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/