Changeset 954ea70 in mainline for uspace/lib/usbvirt/stdreq.c


Ignore:
Timestamp:
2010-10-22T14:55:33Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b8a3cda
Parents:
a498728
Message:

usbvirt: standard requests handled better

Also, SET_ADDRESS works according to specification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/stdreq.c

    ra498728 r954ea70  
    117117        }
    118118       
    119         /*
    120          * TODO: handle when this request is invalid (e.g.
    121          * setting address when in configured state).
    122          */
    123         if (new_address == 0) {
    124                 device->state = USBVIRT_STATE_DEFAULT;
    125         } else {
    126                 device->state = USBVIRT_STATE_ADDRESS;
    127         }
    128        
    129         device->address = new_address;
     119        dev_new_address = new_address;
    130120       
    131121        return EOK;
Note: See TracChangeset for help on using the changeset viewer.