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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Aug 2012 02:31:45 +0000 (19:31 -0700)
commit09e0ef11ee0328f1f3c9c47c15347c867994dd9b
treef735f761fa2b728e94568b791233918190d5d9aa
parentb398aa3174cdfd4d85964fa84004e53ce6a13cab
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.

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