The host fails to recognize tm2(e) as gadget mode when VID is changed, even
though the matching is performed without comparing VID. This patch fixes
this issue by changing the class of MTP interface descriptor.
Change-Id: I75c1ff710c28bb7c911963bce6c8cdb328424b95
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
.bDescriptorType = USB_DT_INTERFACE,
.bInterfaceNumber = 0,
.bNumEndpoints = 3,
- .bInterfaceClass = USB_CLASS_VENDOR_SPEC,
- .bInterfaceSubClass = USB_SUBCLASS_VENDOR_SPEC,
- .bInterfaceProtocol = 0,
+ .bInterfaceClass = USB_CLASS_STILL_IMAGE,
+ .bInterfaceSubClass = 1,
+ .bInterfaceProtocol = 1,
};
static struct usb_interface_descriptor ptp_interface_desc = {