Re: sysrq on serial console

From: Russell King (rmk@arm.linux.org.uk)
Date: Sat Sep 28 2002 - 03:06:17 EST


On Fri, Sep 27, 2002 at 04:45:12PM -0700, Dave Hansen wrote:
> It looks like the UART_LSR_BI bit needs to be set in the status
> variable for the break character to be interpreted as a break in the
> driver.

That is correct; that is how the UART reports a break character.

> I doubt that it is actually broken, but it isn't immediately obvious
> how that bit gets set. Is there something that I should have set when
> the device was initialized to make sure that UART_LSR_BI is asserted
> in "status" when the interrupt occurs?

Now. Its a status bit from the UART LSR register itself, read from
serial8250_handle_port() and receive_chars(). It will cause an
interrupt any time that the receive interrupt is enabled, ie when
the port is open by user space.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

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



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:35 EST