summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorhphuang <[email protected]>2020-06-22 15:25:29 +0800
committerhphuang <[email protected]>2020-06-22 15:25:29 +0800
commit6cafbf07ce76d55e67c64341e8f88c6ecf3af8ab (patch)
treed78a897df9ed41358ba4ceac19f2cbf2f48bd2d2 /components
parent9d374f873cc9d3f0ee1af5f463fcaeee75d5f6e8 (diff)
mstorage.c: fix bug in device descriptor that MAC OS enumeration failed.
Diffstat (limited to 'components')
-rw-r--r--components/drivers/usb/usbdevice/class/mstorage.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/drivers/usb/usbdevice/class/mstorage.c b/components/drivers/usb/usbdevice/class/mstorage.c
index a681b8212f..f0cd0b20fb 100644
--- a/components/drivers/usb/usbdevice/class/mstorage.c
+++ b/components/drivers/usb/usbdevice/class/mstorage.c
@@ -78,9 +78,9 @@ static struct udevice_descriptor dev_desc =
USB_DESC_LENGTH_DEVICE, //bLength;
USB_DESC_TYPE_DEVICE, //type;
USB_BCD_VERSION, //bcdUSB;
- USB_CLASS_MASS_STORAGE, //bDeviceClass;
- 0x06, //bDeviceSubClass;
- 0x50, //bDeviceProtocol;
+ 0x00, //bDeviceClass;
+ 0x00, //bDeviceSubClass;
+ 0x00, //bDeviceProtocol;
0x40, //bMaxPacketSize0;
_VENDOR_ID, //idVendor;
_PRODUCT_ID, //idProduct;
@@ -98,9 +98,9 @@ static struct usb_qualifier_descriptor dev_qualifier =
sizeof(dev_qualifier), //bLength
USB_DESC_TYPE_DEVICEQUALIFIER, //bDescriptorType
0x0200, //bcdUSB
- USB_CLASS_MASS_STORAGE, //bDeviceClass
- 0x06, //bDeviceSubClass
- 0x50, //bDeviceProtocol
+ 0x00, //bDeviceClass
+ 0x00, //bDeviceSubClass
+ 0x00, //bDeviceProtocol
64, //bMaxPacketSize0
0x01, //bNumConfigurations
0,