Changeset f1fae414 in mainline for uspace/drv/bus/usb/ohci/hc.c


Ignore:
Timestamp:
2011-06-22T01:34:53Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d7e82c1, cac458f
Parents:
72ec8cc (diff), bf172825 (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.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/hc.c

    r72ec8cc rf1fae414  
    6565            device_keeper_get_free_address(&instance->manager, USB_SPEED_FULL);
    6666        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));
    6969                return hub_address;
    7070        }
     
    357357                    instance->registers->periodic_current);
    358358
    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) {
    361361                        link_t *next = current->next;
    362362                        usb_transfer_batch_t *batch =
     
    367367                                usb_transfer_batch_finish(batch);
    368368                        }
     369
    369370                        current = next;
    370371                }
     
    445446        /* HC is in reset (hw startup) => no other driver
    446447         * 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");
    448449        async_usleep(50000);
    449450}
     
    516517
    517518        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",
    519520            instance->registers->control);
    520521}
Note: See TracChangeset for help on using the changeset viewer.