]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 19:20:20 +0000 (12:20 -0700)
commit0b5bb3d4945477b3fb03496536f4b6d28b020642
tree6cfaa19aa7470639e3d5ab54694200d93c4b4005
parent47199fa16f3c01899a4feb68935ceb3d25761081
pmac_zilog,kdb: Fix console poll hook to return instead of loop

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>
drivers/tty/serial/pmac_zilog.c