Changeset 8f74140c in mainline


Ignore:
Timestamp:
2011-03-03T12:52:17Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9445aad, 9a422574, d3594362
Parents:
2c22f1f7
Message:

USB MID sets device configuration

A forgotten piece of code. Sorry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbmid/explore.c

    r2c22f1f7 r8f74140c  
    159159        }
    160160
     161        /* Select the first configuration */
     162        rc = usb_request_set_configuration(&dev->ctrl_pipe,
     163            config_descriptor->configuration_number);
     164        if (rc != EOK) {
     165                usb_log_error("Failed to set device configuration: %s.\n",
     166                    str_error(rc));
     167                free(config_descriptor_raw);
     168                free(interface_descriptors);
     169                return false;
     170        }
     171
     172
     173        /* Create control function */
    161174        ddf_fun_t *ctl_fun = ddf_fun_create(dev->dev, fun_exposed, "ctl");
    162175        if (ctl_fun == NULL) {
     
    175188        }
    176189
     190        /* Spawn interface children */
    177191        size_t i;
    178192        for (i = 0; i < interface_descriptors_count; i++) {
Note: See TracChangeset for help on using the changeset viewer.