Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751342Ab0AZALc (ORCPT ); Mon, 25 Jan 2010 19:11:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750846Ab0AZALb (ORCPT ); Mon, 25 Jan 2010 19:11:31 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:56263 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750833Ab0AZALa (ORCPT ); Mon, 25 Jan 2010 19:11:30 -0500 Date: Mon, 25 Jan 2010 16:11:20 -0800 From: Andrew Morton To: Mike Frysinger Cc: linux-serial@vger.kernel.org, Alan Cox , linux-kernel@vger.kernel.org, Sonic Zhang Subject: Re: [PATCH 3/4] serial: bfin_5xx: kgdboc should accept gdb break only when it is active Message-Id: <20100125161120.74cea0d4.akpm@linux-foundation.org> In-Reply-To: <1263899593-12178-3-git-send-email-vapier@gentoo.org> References: <1263899593-12178-1-git-send-email-vapier@gentoo.org> <1263899593-12178-3-git-send-email-vapier@gentoo.org> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1640 Lines: 46 On Tue, 19 Jan 2010 06:13:12 -0500 Mike Frysinger wrote: > From: Sonic Zhang > > 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 > Signed-off-by: Mike Frysinger > --- > 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? -- 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/