Changeset f35b294 in mainline for uspace/drv/ohci/root_hub.c
- Timestamp:
- 2011-04-09T17:50:15Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a43f1d18
- Parents:
- 1e1b1a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/root_hub.c
r1e1b1a9 rf35b294 115 115 116 116 static const uint32_t hub_set_feature_valid_mask = 117 (1 << USB_HUB_FEATURE_C_HUB_OVER_CURRENT); 117 (1 << USB_HUB_FEATURE_C_HUB_OVER_CURRENT) | 118 (1 << USB_HUB_FEATURE_C_HUB_LOCAL_POWER); 118 119 119 120 … … 586 587 if (!((1 << feature) & hub_set_feature_valid_mask)) 587 588 return EINVAL; 589 if(feature == USB_HUB_FEATURE_C_HUB_LOCAL_POWER) 590 feature = USB_HUB_FEATURE_C_HUB_LOCAL_POWER << 16; 588 591 instance->registers->rh_status = 589 592 (instance->registers->rh_status | (1 << feature))
Note:
See TracChangeset
for help on using the changeset viewer.