hvc_vio: Improve registration of udbg backend
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 23 Jul 2012 21:47:38 +0000 (21:47 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Sep 2012 05:19:35 +0000 (15:19 +1000)
commitd1cfc0ce5d3196ccd88b9d868bb7cbcab61e0a31
tree9fd474a14beb679b2e50776e33aeecae8a8740ff
parent92057a493af4bb56928a762ad0423200b835d995
hvc_vio: Improve registration of udbg backend

The pseries hvterm driver only registers a udbg backend (for xmon and
other low level debugging mechanisms) when hvc0 is recognized as the
firmware console at boot time, not if it's detected later on, for
example because the firmware is using a graphics card.

This can make debugging challenging especially under X11, and there's
really no good reason for that limitation, so let's hookup udbg
whenever hvc0 is detected instead.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/tty/hvc/hvc_vio.c