]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
usb: gadget: net2280: fix ep_cfg for defect7374
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Sat, 16 May 2015 20:33:30 +0000 (22:33 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 May 2015 15:39:47 +0000 (10:39 -0500)
ep_cfg.IN_EP_ENABLE is only valid in advance mode.

Tested-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/net2280.c

index 9871b90195ad8eea42f3746946d740a248ef9f2c..62bc15742e10cec199527be769eea1cb473cefee 100644 (file)
@@ -1860,8 +1860,8 @@ static void defect7374_enable_data_eps_zero(struct net2280 *dev)
        tmp = ((0 << ENDPOINT_NUMBER) | BIT(ENDPOINT_DIRECTION) |
                        (2 << OUT_ENDPOINT_TYPE) | (2 << IN_ENDPOINT_TYPE) |
                        ((dev->enhanced_mode) ?
-                        BIT(OUT_ENDPOINT_ENABLE) : BIT(ENDPOINT_ENABLE)) |
-                       BIT(IN_ENDPOINT_ENABLE));
+                        BIT(OUT_ENDPOINT_ENABLE) | BIT(IN_ENDPOINT_ENABLE) :
+                        BIT(ENDPOINT_ENABLE)));
 
        for (i = 1; i < 5; i++)
                writel(tmp, &dev->ep[i].cfg->ep_cfg);