lkml.org 
[lkml]   [2010]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] serial: bfin_5xx: kgdboc should accept gdb break only when it is active
On Tue, 19 Jan 2010 06:13:12 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> From: Sonic Zhang <sonic.zhang@analog.com>
>
> If we always check for gdb breaks even when it isn't active, we get false
> positives on normal code and the system panics.
>
> URL: http://blackfin.uclinux.org/gf/tracker/5277
> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> drivers/serial/bfin_5xx.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
> index b5a9b37..6b87955 100644
> --- a/drivers/serial/bfin_5xx.c
> +++ b/drivers/serial/bfin_5xx.c
> @@ -237,7 +237,8 @@ static void bfin_serial_rx_chars(struct bfin_serial_port *uart)
>
> #if defined(CONFIG_KGDB_SERIAL_CONSOLE) || \
> defined(CONFIG_KGDB_SERIAL_CONSOLE_MODULE)
> - if (kgdb_connected && kgdboc_port_line == uart->port.line)
> + if (kgdb_connected && kgdboc_port_line == uart->port.line
> + && kgdboc_break_enabled)
> if (ch == 0x3) {/* Ctrl + C */
> kgdb_breakpoint();
> return;

I expect that we want

[PATCH 2/4] serial: bfin_5xx: need to disable DMA TX interrupt too
and
[PATCH 3/4] serial: bfin_5xx: kgdboc should accept gdb break only when it is active

in 2.6.33 and the other two in 2.6.34?

If so then should either of the above two also be backported into
-stable?



\
 
 \ /
  Last update: 2010-01-26 01:13    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site