Changeset 3ae93a8 in mainline for uspace/lib/usb/src/recognise.c


Ignore:
Timestamp:
2011-02-20T12:51:53Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
357a302
Parents:
540e2d2
Message:

Add USB multi interface device driver

Incomplete implementation of a pseudo-bus driver that spawns children
devices for each interface in multi interface device.

WARNING: does not work as the child device does not learn its USB address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/recognise.c

    r540e2d2 r3ae93a8  
    231231        /*
    232232         * If the device class points to interface we skip adding
    233          * class directly.
     233         * class directly but we add a multi interface device.
    234234         */
    235235        if (device_descriptor->device_class != USB_CLASS_USE_INTERFACE) {
    236236                rc = usb_add_match_id(matches, 50, "usb&class=%s",
    237237                    usb_str_class(device_descriptor->device_class));
     238                if (rc != EOK) {
     239                        return rc;
     240                }
     241        } else {
     242                rc = usb_add_match_id(matches, 50, "usb&mid");
    238243                if (rc != EOK) {
    239244                        return rc;
Note: See TracChangeset for help on using the changeset viewer.