From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Vorontsov Subject: Re: [PATCH 10/14] tty/serial: Add kgdb_nmi driver Date: Mon, 10 Sep 2012 10:54:37 -0700 Message-ID: <20120910175437.GA16781@lizard> References: <20120910040802.GA1261@lizard> <20120910041412.GJ29537@lizard> <20120910121105.724f982f@pyramind.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from mail-pz0-f46.google.com ([209.85.210.46]:58858 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752195Ab2IJR5L (ORCPT ); Mon, 10 Sep 2012 13:57:11 -0400 Received: by dady13 with SMTP id y13so1532789dad.19 for ; Mon, 10 Sep 2012 10:57:11 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20120910121105.724f982f@pyramind.ukuu.org.uk> Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: Alan Cox Cc: Andrew Morton , Russell King , Jason Wessel , Greg Kroah-Hartman , Alan Cox , Arve =?utf-8?B?SGrDuG5uZXbDpWc=?= , Colin Cross , Brian Swetland , John Stultz , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com, kgdb-bugreport@lists.sourceforge.net, linux-serial@vger.kernel.org On Mon, Sep 10, 2012 at 12:11:05PM +0100, Alan Cox wrote: > On Sun, 9 Sep 2012 21:14:12 -0700 > Anton Vorontsov wrote: > > > This special driver makes it possible to temporary use NMI debugger port > > as a normal console by issuing 'nmi_console' command (assuming that the > > port is attached to KGDB). > > No ref counting, no tty port, no compliance with the tty behaviour. > Concept looks fine but it needs porting to reflect a kernel newer than > about 2.6.18 8) :-) I'll look into tty_port helpers, much thanks for the review! > I would take a quick look at the tty_port helpers and also check v -next > which makes the tty_port mandatory. That'll pretty much cover your needs > for locking, semantics and the like.