aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2019-01-25 16:03:32 -0800
committerJohn Stultz <john.stultz@linaro.org>2019-05-06 12:26:15 -0700
commitdcdadaaec9db7a7b78ea9b838dd1453359a2f388 (patch)
treec0e881157679acddd2c6659fccec47ada70690a5
parent11881fef8f1b2fbd74660ce9df1e5896d70911dd (diff)
downloadandroid-dev-dcdadaaec9db7a7b78ea9b838dd1453359a2f388.tar.gz
HACK: usb: dwc3: Disable sg_supported in order to avoid USB transfer errors
Since the commit "usb: gadget: f_fs: Allow scatter-gather buffers" landed, I've been seeing USB trouble w/ HiKey960 dwc3 based patch set. So disable scatter-gather to get things working better. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I5909809da815503a497fc1cbf9951f060da10007
-rw-r--r--drivers/usb/dwc3/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 9cefb579e161..6157f3715dd8 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -3298,7 +3298,7 @@ int dwc3_gadget_init(struct dwc3 *dwc)
dwc->gadget.ops = &dwc3_gadget_ops;
dwc->gadget.speed = USB_SPEED_UNKNOWN;
- dwc->gadget.sg_supported = true;
+// dwc->gadget.sg_supported = true;
dwc->gadget.name = "dwc3-gadget";
dwc->gadget.is_otg = dwc->dr_mode == USB_DR_MODE_OTG;