Revert "UPSTREAM: usb: dwc3: gadget: disable XFER_NOT_READY"
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc3 / gadget.c
index 4842f934e9d52836b72a6692008e87d9bcc4ab42..776de55028f6d3efa442943a8169ff3ee0768ab8 100644 (file)
@@ -490,10 +490,8 @@ static int dwc3_gadget_set_ep_config(struct dwc3 *dwc, struct dwc3_ep *dep,
                params.param0 |= DWC3_DEPCFG_ACTION_INIT;
        }
 
-       params.param1 = DWC3_DEPCFG_XFER_COMPLETE_EN;
-
-       if (dep->number <= 1 || usb_endpoint_xfer_isoc(desc))
-               params.param1 |= DWC3_DEPCFG_XFER_NOT_READY_EN;
+       params.param1 = DWC3_DEPCFG_XFER_COMPLETE_EN
+               | DWC3_DEPCFG_XFER_NOT_READY_EN;
 
        if (usb_ss_max_streams(comp_desc) && usb_endpoint_xfer_bulk(desc)) {
                params.param1 |= DWC3_DEPCFG_STREAM_CAPABLE