[linux-yocto] [PATCH 60/87] kgdboc, acp serial: rx polling hook for the acp_serial driver

Bruce Ashfield bruce.ashfield at windriver.com
Mon May 27 12:20:17 PDT 2013


On 13-05-27 12:56 PM, Paul Butler wrote:
> From: Jiang Lu <lu.jiang at windriver.com>
>
> The patch is base upon Jason's commit

This commit header isn't appropriate for Linux yocto. The commit
header should just introduce the change, without referencing some
other commit we don't have in our tree.

Bruce

> [
> kgdboc, amba-pl011: rx polling hook for the amba-pl011 driver
>
> The RX polling hook allows the debugger to hook character input so as
> to allow entry to the kernel debugger with a control-c as an example.
> ]
>
> Signed-off-by: Wei Yang <Wei.Yang at windriver.com>
> ---
>   drivers/tty/serial/lsi_acp_serial.c | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/drivers/tty/serial/lsi_acp_serial.c b/drivers/tty/serial/lsi_acp_serial.c
> index 49ffd30..96adf00 100644
> --- a/drivers/tty/serial/lsi_acp_serial.c
> +++ b/drivers/tty/serial/lsi_acp_serial.c
> @@ -333,6 +333,10 @@ acp_serial_rx_chars(struct uart_acp_port *uap)
>   				flag = TTY_FRAME;
>   		}
>
> +#ifdef CONFIG_CONSOLE_POLL
> +		if (uap->port.poll_rx_cb && uap->port.poll_rx_cb(ch))
> +			goto ignore_char;
> +#endif
>   		if (uart_handle_sysrq_char(&uap->port, ch & 255))
>   			goto ignore_char;
>
>




More information about the linux-yocto mailing list