]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pmac_zilog,kdb: Fix console poll hook to return instead of loop
authorJason Wessel <jason.wessel@windriver.com>
Sun, 12 Aug 2012 12:16:43 +0000 (07:16 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 12 Sep 2012 02:37:34 +0000 (03:37 +0100)
commit4422e6fe13eff3fc4337dedc76f6830e1a3b4e1a
tree5b1a8ca5c4819203c6e21cc3d053b2794ce93933
parent7a42c228a86c720bced4f0a651ad86f89a8d01b3
pmac_zilog,kdb: Fix console poll hook to return instead of loop

commit 38f8eefccf3a23c4058a570fa2938a4f553cf8e0 upstream.

kdb <-> kgdb transitioning does not work properly with this UART
driver because the get character routine loops indefinitely as opposed
to returning NO_POLL_CHAR per the expectation of the KDB I/O driver
API.

The symptom is a kernel hang when trying to switch debug modes.

Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/tty/serial/pmac_zilog.c