Changeset 01bbbb2 in mainline for uspace/drv/bus/usb/ohci/root_hub.c
- Timestamp:
- 2011-07-11T12:21:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dbb9663
- Parents:
- 062b25f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/root_hub.c
r062b25f r01bbbb2 74 74 .interface_count = 1, 75 75 .length = sizeof (usb_standard_configuration_descriptor_t), 76 .max_power = 100,76 .max_power = 0, /* root hubs don't need no power */ 77 77 .str_configuration = 0, 78 78 }; … … 238 238 } 239 239 240 int ret = rh_init_descriptors(instance);241 if (ret != EOK) {242 return ret;243 }244 240 /* Don't forget the hub status bit and round up */ 245 241 instance->interrupt_mask_size = (instance->port_count + 1 + 8) / 8; … … 248 244 instance->unfinished_interrupt_transfer = NULL; 249 245 250 /* Set port power mode to no -power-switching.*/246 /* Set port power mode to no power-switching. (always on) */ 251 247 instance->registers->rh_desc_a |= RHDA_NPS_FLAG; 248 249 int ret = rh_init_descriptors(instance); 250 if (ret != EOK) { 251 return ret; 252 } 252 253 253 254 usb_log_info("Root hub (%zu ports) initialized.\n",
Note:
See TracChangeset
for help on using the changeset viewer.