Changeset 01bbbb2 in mainline for uspace/drv/bus/usb/ohci/root_hub.c


Ignore:
Timestamp:
2011-07-11T12:21:31Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dbb9663
Parents:
062b25f
Message:

OHCI: Root hub: create descriptors after device setup.

Fix some comments and fixes.

File:
1 edited

Legend:

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

    r062b25f r01bbbb2  
    7474        .interface_count = 1,
    7575        .length = sizeof (usb_standard_configuration_descriptor_t),
    76         .max_power = 100,
     76        .max_power = 0, /* root hubs don't need no power */
    7777        .str_configuration = 0,
    7878};
     
    238238        }
    239239
    240         int ret = rh_init_descriptors(instance);
    241         if (ret != EOK) {
    242                 return ret;
    243         }
    244240        /* Don't forget the hub status bit and round up */
    245241        instance->interrupt_mask_size = (instance->port_count + 1 + 8) / 8;
     
    248244        instance->unfinished_interrupt_transfer = NULL;
    249245
    250         /* Set port power mode to no-power-switching. */
     246        /* Set port power mode to no power-switching. (always on) */
    251247        instance->registers->rh_desc_a |= RHDA_NPS_FLAG;
     248
     249        int ret = rh_init_descriptors(instance);
     250        if (ret != EOK) {
     251                return ret;
     252        }
    252253
    253254        usb_log_info("Root hub (%zu ports) initialized.\n",
Note: See TracChangeset for help on using the changeset viewer.