Re: [PATCH] [net/irda]: new Blackfin on-chip SIR IrDA driver

From: Mike Frysinger
Date: Tue Mar 10 2009 - 07:53:18 EST


On Tue, Mar 10, 2009 at 07:48, gyang wrote:
> On Tue, 2009-03-10 at 19:25 +0800, graff yang wrote:
>> On Tue, Mar 10, 2009 at 4:03 PM, Mike Frysinger wrote:
>>> On Tue, Mar 10, 2009 at 03:29, Â<graff.yang@xxxxxxxxx> wrote:
>>>> + Â Â Â Â Â Â Â do {
>>>> + Â Â Â Â Â Â Â Â Â Â Â lsr = SIR_UART_GET_LSR(port);
>>>> + Â Â Â Â Â Â Â } while (!(lsr & TEMT));
>>
>>
>>> i'm pretty sure we determined that it is not the job of the
>>> kernel to
>>> make sure the line is clear before we go changing speeds.
>
> But we should prevent changing speed when the byte is sending out.

no we shouldnt. if the user changes speeds while things are being
transmitted, then they screwed up. this is why tcdrain/tcflush exist
on the tty side of things.
-mike
--
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/