Changeset f35b294 in mainline for uspace/drv/ohci/root_hub.c


Ignore:
Timestamp:
2011-04-09T17:50:15Z (13 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a43f1d18
Parents:
1e1b1a9
Message:

codelifting

File:
1 edited

Legend:

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

    r1e1b1a9 rf35b294  
    115115
    116116static 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);
    118119
    119120
     
    586587        if (!((1 << feature) & hub_set_feature_valid_mask))
    587588                return EINVAL;
     589        if(feature == USB_HUB_FEATURE_C_HUB_LOCAL_POWER)
     590                feature = USB_HUB_FEATURE_C_HUB_LOCAL_POWER << 16;
    588591        instance->registers->rh_status =
    589592                (instance->registers->rh_status | (1 << feature))
Note: See TracChangeset for help on using the changeset viewer.