Changeset fb4d788 in mainline for uspace/lib/usbdev/src/hub.c


Ignore:
Timestamp:
2015-07-28T11:28:14Z (9 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6accc5cf
Parents:
df2bce3 (diff), 47726b5e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from the mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/hub.c

    rdf2bce3 rfb4d788  
    151151 * @retval EADDRNOTAVAIL Failed retrieving free address from host controller.
    152152 * @retval EBUSY Failed reserving default USB address.
    153  * @retval ENOTCONN Problem connecting to the host controller via USB pipe.
     153 * @retval ENXIO Problem connecting to the host controller via USB pipe.
    154154 * @retval ESTALL Problem communication with device (either SET_ADDRESS
    155155 *      request or requests for descriptors when creating match ids).
     
    184184            &dev_conn, hc_conn, USB_ADDRESS_DEFAULT);
    185185        if (rc != EOK) {
    186                 rc = ENOTCONN;
     186                rc = ENXIO;
    187187                goto leave_release_free_address;
    188188        }
     
    192192        rc = usb_pipe_initialize_default_control(&ctrl_pipe, &dev_conn);
    193193        if (rc != EOK) {
    194                 rc = ENOTCONN;
     194                rc = ENXIO;
    195195                goto leave_release_free_address;
    196196        }
     
    217217        rc = usb_pipe_register(&ctrl_pipe, 0);
    218218        if (rc != EOK) {
    219                 rc = ENOTCONN;
     219                rc = ENXIO;
    220220                goto leave_release_default_address;
    221221        }
     
    278278        if (rc != EOK) {
    279279                /* The child function is already created. */
    280                 rc = EDESTADDRREQ;
     280                rc = EIO;
    281281                goto leave_release_free_address;
    282282        }
Note: See TracChangeset for help on using the changeset viewer.