X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=ppcskel.git;a=blobdiff_plain;f=usb%2Fhost%2Fohci.c;h=d696294a04de06bad11a3a5b151cde5a2a61daf3;hp=a852be2642f0aafe3c3e537f9a15a9198bcfebd3;hb=113b79747a3b5c358f1b1f0af5c562ca5a5bd2eb;hpb=316456cf22ec6843102b39cb4a33b4bb3e484d45 diff --git a/usb/host/ohci.c b/usb/host/ohci.c index a852be2..d696294 100644 --- a/usb/host/ohci.c +++ b/usb/host/ohci.c @@ -261,10 +261,10 @@ void hcdi_fire() write32(OHCI0_HC_COMMAND_STATUS, OHCI_CLF); /* poll until edhead->headp is null */ - sync_before_read(edhead, sizeof(struct endpoint_descriptor)); - while(LE(edhead->headp)&~0xf) { + do { sync_before_read(edhead, sizeof(struct endpoint_descriptor)); - } + printf("edhead->headp: 0x%08X\n", LE(edhead->headp)); + } while(LE(edhead->headp)&~0xf); struct general_td *n = phys_to_virt(read32(OHCI0_HC_DONE_HEAD) & ~1); printf("hc_done_head: 0x%08X\n", read32(OHCI0_HC_DONE_HEAD));