summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJohn Tobias <john.tobias.ph@gmail.com>2016-04-07 16:49:03 -0700
committerMarek Vasut <marex@denx.de>2016-04-20 11:43:27 +0200
commit5b718407ed937fdcd1beeab9f62e42158dee9fa6 (patch)
tree99d89ac25fa1c0c88275a0a9c78bcd7b26e40fa4 /drivers
parent108f8418597350bd98357f25acaa8ab8a0435779 (diff)
downloadu-boot-imx-5b718407ed937fdcd1beeab9f62e42158dee9fa6.zip
u-boot-imx-5b718407ed937fdcd1beeab9f62e42158dee9fa6.tar.gz
u-boot-imx-5b718407ed937fdcd1beeab9f62e42158dee9fa6.tar.bz2
USB: g_dnl: Change device class
The USB Mass Storage (ums) works in Windows, Linux and OS X (EL Capitan). But, not in OS X (Yosemite). By applying the said patch, it extends the ums support. Signed-off-by: John Tobias <john.tobias.ph@gmail.com> Tested-by: Lukasz Majewski <l.majewski@samsung.com> Test HW: Odroid XU3 (./test/py UMS + DFU tests) Tested-by: John Tobias <john.tobias.ph@gmail.com> Linux: - Run ums to expose all my eMMC partition - shows all correctly - Run ums to expose only 1 partition of my eMMC - show correctly Windows: - Run ums to expose all my eMMC partition - it detects but it prompts, if I want to format it (due to a non windows partition) - Run ums to expose only the FAT32 partition - it show the partition correctly.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/g_dnl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c
index 2fa6da4..bd3aad9 100644
--- a/drivers/usb/gadget/g_dnl.c
+++ b/drivers/usb/gadget/g_dnl.c
@@ -58,8 +58,8 @@ static struct usb_device_descriptor device_desc = {
.bDescriptorType = USB_DT_DEVICE,
.bcdUSB = __constant_cpu_to_le16(0x0200),
- .bDeviceClass = USB_CLASS_COMM,
- .bDeviceSubClass = 0x02, /*0x02:CDC-modem , 0x00:CDC-serial*/
+ .bDeviceClass = USB_CLASS_PER_INTERFACE,
+ .bDeviceSubClass = 0, /*0x02:CDC-modem , 0x00:CDC-serial*/
.idVendor = __constant_cpu_to_le16(CONFIG_G_DNL_VENDOR_NUM),
.idProduct = __constant_cpu_to_le16(CONFIG_G_DNL_PRODUCT_NUM),