diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-08-30 13:21:27 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-13 10:25:44 +0100 |
commit | 1de14d43e29b8f1fff8bcbf18f300adeb3eabc1d (patch) | |
tree | 206e160d56c1380a4cbb71e3e2f93854ab7fb87e /hw/usb-msd.c | |
parent | 65360511a2eeab8b671722df6634dd674cc4a5d6 (diff) |
usb: track altsetting in USBDevice
Also handle {GET,SET}_INTERFACE in common code (usb-desc.c).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-msd.c')
-rw-r--r-- | hw/usb-msd.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/hw/usb-msd.c b/hw/usb-msd.c index e42729699d..186831d71b 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -306,19 +306,9 @@ static int usb_msd_handle_control(USBDevice *dev, USBPacket *p, ret = 0; switch (request) { - case DeviceRequest | USB_REQ_GET_INTERFACE: - data[0] = 0; - ret = 1; - break; - case DeviceOutRequest | USB_REQ_SET_INTERFACE: - ret = 0; - break; case EndpointOutRequest | USB_REQ_CLEAR_FEATURE: ret = 0; break; - case InterfaceOutRequest | USB_REQ_SET_INTERFACE: - ret = 0; - break; /* Class specific requests. */ case ClassInterfaceOutRequest | MassStorageReset: /* Reset state ready for the next CBW. */ |