TTY: hvc_dcc: probe for a JTAG connection before registering
authorRob Herring <rob.herring@calxeda.com>
Wed, 25 Sep 2013 02:05:58 +0000 (21:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 01:10:56 +0000 (18:10 -0700)
commitf377775dc083506e2fd7739d8615971c46b5246e
tree9fac95e32736d6a172db90ccc376043af9ef039c
parent469d6d0631386e6865a30c9ded87a5cc0fdf8e2e
TTY: hvc_dcc: probe for a JTAG connection before registering

Enabling the ARM DCC console and using without a JTAG connection will
simply hang the system. Since distros like to turn on all options, this
is a reoccurring problem to debug. We can do better by checking if
anything is attached and handling characters. There is no way to probe
this, so send a newline and check that it is handled.

Cc: Paolo Pisati <paolo.pisati@canonical.com>
Cc: Tim Gardner <tim.gardner@canonical.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_dcc.c