summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2012-05-21 14:38:08 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2012-06-01 12:24:17 +0200
commit14f61424d04b881c2b03c84b3098c8a35611dd78 (patch)
tree70417c9ed0732ac0443393300f1b93d4b9b4c4e9
parente28a61550c5f33d7636ee8f03f6bb7307475fb3e (diff)
downloadcoreboot-14f61424d04b881c2b03c84b3098c8a35611dd78.tar.xz
libpayload: Disable some buggy debugging code
This disables some debugging code in the OHCI USB driver which causes reboots under rare circumstances. Change-Id: Ic274c162846137ee00638ffbc59ccf1d8130586f Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: http://review.coreboot.org/1074 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
-rw-r--r--payloads/libpayload/drivers/usb/ohci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/payloads/libpayload/drivers/usb/ohci.c b/payloads/libpayload/drivers/usb/ohci.c
index 2c14b9fed6..1e2386e588 100644
--- a/payloads/libpayload/drivers/usb/ohci.c
+++ b/payloads/libpayload/drivers/usb/ohci.c
@@ -214,6 +214,11 @@ wait_for_ed(usbdev_t *dev, ed_t *head)
mdelay(1);
}
mdelay(5);
+#if 0
+ /* XXX: The following debugging code may follow invalid lists and
+ * cause a reboot.
+ */
+#ifdef USB_DEBUG
if (OHCI_INST(dev->controller)->opreg->HcInterruptStatus & WritebackDoneHead) {
debug("done queue:\n");
debug("%x, %x\n", OHCI_INST(dev->controller)->hcca->HccaDoneHead, phys_to_virt(OHCI_INST(dev->controller)->hcca->HccaDoneHead));
@@ -236,6 +241,8 @@ wait_for_ed(usbdev_t *dev, ed_t *head)
}
OHCI_INST(dev->controller)->opreg->HcInterruptStatus &= ~WritebackDoneHead;
}
+#endif
+#endif
if (head->head_pointer & 1) {
debug("HALTED!\n");