Skip to content

Commit 6cafbf0

Browse files
committed
mstorage.c: fix bug in device descriptor that MAC OS enumeration failed.
1 parent 9d374f8 commit 6cafbf0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/drivers/usb/usbdevice/class/mstorage.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ static struct udevice_descriptor dev_desc =
7878
USB_DESC_LENGTH_DEVICE, //bLength;
7979
USB_DESC_TYPE_DEVICE, //type;
8080
USB_BCD_VERSION, //bcdUSB;
81-
USB_CLASS_MASS_STORAGE, //bDeviceClass;
82-
0x06, //bDeviceSubClass;
83-
0x50, //bDeviceProtocol;
81+
0x00, //bDeviceClass;
82+
0x00, //bDeviceSubClass;
83+
0x00, //bDeviceProtocol;
8484
0x40, //bMaxPacketSize0;
8585
_VENDOR_ID, //idVendor;
8686
_PRODUCT_ID, //idProduct;
@@ -98,9 +98,9 @@ static struct usb_qualifier_descriptor dev_qualifier =
9898
sizeof(dev_qualifier), //bLength
9999
USB_DESC_TYPE_DEVICEQUALIFIER, //bDescriptorType
100100
0x0200, //bcdUSB
101-
USB_CLASS_MASS_STORAGE, //bDeviceClass
102-
0x06, //bDeviceSubClass
103-
0x50, //bDeviceProtocol
101+
0x00, //bDeviceClass
102+
0x00, //bDeviceSubClass
103+
0x00, //bDeviceProtocol
104104
64, //bMaxPacketSize0
105105
0x01, //bNumConfigurations
106106
0,

0 commit comments

Comments
 (0)