From mboxrd@z Thu Jan 1 00:00:00 1970 From: anton.vorontsov@linaro.org (Anton Vorontsov) Date: Mon, 10 Sep 2012 10:54:37 -0700 Subject: [PATCH 10/14] tty/serial: Add kgdb_nmi driver In-Reply-To: <20120910121105.724f982f@pyramind.ukuu.org.uk> References: <20120910040802.GA1261@lizard> <20120910041412.GJ29537@lizard> <20120910121105.724f982f@pyramind.ukuu.org.uk> Message-ID: <20120910175437.GA16781@lizard> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.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.