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>
This commit is contained in:
parent
e28a61550c
commit
14f61424d0
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue