]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41c5d5ef73101bec0c02a53b45a0c0e1098a361b
tree9fac95e32736d6a172db90ccc376043af9ef039c
parent447ccf3dbd24c930d7762516ca7ed0d8a56f7943
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