Changeset e4f8c77 in mainline for uspace/drv/bus/usb/ohci/hc.c
- Timestamp:
- 2011-07-13T22:39:18Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e6910c8
- Parents:
- 5974661 (diff), 8ecef91 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r5974661 re4f8c77 65 65 device_keeper_get_free_address(&instance->manager, USB_SPEED_FULL); 66 66 if (hub_address <= 0) { 67 usb_log_error("Failed (%d) to get OHCI root hub address.\n",68 hub_address);67 usb_log_error("Failed to get OHCI root hub address: %s\n", 68 str_error(hub_address)); 69 69 return hub_address; 70 70 } … … 357 357 instance->registers->periodic_current); 358 358 359 link_t *current = instance->pending_batches. next;360 while (current != &instance->pending_batches ) {359 link_t *current = instance->pending_batches.head.next; 360 while (current != &instance->pending_batches.head) { 361 361 link_t *next = current->next; 362 362 usb_transfer_batch_t *batch = … … 367 367 usb_transfer_batch_finish(batch); 368 368 } 369 369 370 current = next; 370 371 } … … 445 446 /* HC is in reset (hw startup) => no other driver 446 447 * maintain reset for at least the time specified in USB spec (50 ms)*/ 447 usb_log_ info("HC found in reset.\n");448 usb_log_debug("Host controller found in reset state.\n"); 448 449 async_usleep(50000); 449 450 } … … 516 517 517 518 instance->registers->control &= (C_HCFS_OPERATIONAL << C_HCFS_SHIFT); 518 usb_log_ info("OHCI HC up and running(%x).\n",519 usb_log_debug("OHCI HC up and running (ctl_reg=0x%x).\n", 519 520 instance->registers->control); 520 521 }
Note:
See TracChangeset
for help on using the changeset viewer.