]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: es1 endpoint descriptor: minor fixes to get the config right
authorGreg Kroah-Hartman <greg@kroah.com>
Sat, 13 Sep 2014 23:15:07 +0000 (16:15 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Sat, 13 Sep 2014 23:15:07 +0000 (16:15 -0700)
drivers/staging/greybus/es1_ap_desc.c

index 8c558a4755a30ddc134494236701ac96240730c1..1502089ec29c37b10be9bc771fe1300557795864 100644 (file)
@@ -40,7 +40,7 @@ static const u8 es1_config_descriptor[] = {
        0x04,           /*  __u8  if_bDescriptorType; Interface */
        0x00,           /*  __u8  if_bInterfaceNumber; */
        0x00,           /*  __u8  if_bAlternateSetting; */
-       0x02,           /*  __u8  if_bNumEndpoints; */
+       0x03,           /*  __u8  if_bNumEndpoints; */
        0xff,           /*  __u8  if_bInterfaceClass; Vendor-specific */
        0xff,           /*  __u8  if_bInterfaceSubClass; Vendor-specific */
        0xff,           /*  __u8  if_bInterfaceProtocol; Vendor-specific */
@@ -50,21 +50,21 @@ static const u8 es1_config_descriptor[] = {
        0x07,           /*  __u8   ep_bLength; */
        0x05,           /*  __u8   ep_bDescriptorType; Endpoint */
        0x81,           /*  __u8   ep_bEndpointAddress; IN Endpoint 1 */
-       0x03,           /*  __u8   ep_bmAttributes; Bulk */
+       0x03,           /*  __u8   ep_bmAttributes; Interrupt */
        0x00, 0x04,     /*  __le16 ep_wMaxPacketSize; 1024 */
-       0x00            /*  __u8   ep_bInterval; */
+       0x40,           /*  __u8   ep_bInterval; 64ms */
 
        0x07,           /*  __u8   ep_bLength; */
        0x05,           /*  __u8   ep_bDescriptorType; Endpoint */
        0x82,           /*  __u8   ep_bEndpointAddress; IN Endpoint 2 */
        0x02,           /*  __u8   ep_bmAttributes; Bulk */
        0x00, 0x04,     /*  __le16 ep_wMaxPacketSize; 1024 */
-       0x00            /*  __u8   ep_bInterval; */
+       0x40            /*  __u8   ep_bInterval; */
 
        0x07,           /*  __u8   ep_bLength; */
        0x05,           /*  __u8   ep_bDescriptorType; Endpoint */
        0x02,           /*  __u8   ep_bEndpointAddress; Out Endpoint 2 */
        0x02,           /*  __u8   ep_bmAttributes; Bulk */
        0x00, 0x04,     /*  __le16 ep_wMaxPacketSize; 1024 */
-       0x00            /*  __u8   ep_bInterval; */
+       0x40            /*  __u8   ep_bInterval; */
 };