]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99721d2294e01d0a8527fea06d7685b03e8de527
tree9fd474a14beb679b2e50776e33aeecae8a8740ff
parent13c8adb22030b44a37514952c54dcce8c76ce401
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