1. 03 11月, 2016 1 次提交
    • F
      usb: dwc3: gadget: offset Start Transfer latency for bulk EPs · a97ea994
      Felipe Balbi 提交于
      We can offset the latency of a full Start Transfer
      command - where we _must_ poll for its completion -
      to usb_ep_enable() time. This means that once
      requests start showing up from the gadget driver, we
      can rely on No Response Update Transfer command -
      where we don't need to poll for completion.
      
      This patch, starts implementing this method for Bulk
      endpoints, even though, technically, we could extend
      it to all other endpoints in future commits.
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      a97ea994
  2. 31 10月, 2016 7 次提交
  3. 17 10月, 2016 3 次提交
  4. 12 9月, 2016 1 次提交
    • L
      usb: dwc3: fix Clear Stall EP command failure · 5e6c88d2
      Lu Baolu 提交于
      Commit 50c763f8 ("usb: dwc3: Set the ClearPendIN bit on Clear
      Stall EP command") sets ClearPendIN bit for all IN endpoints of
      v2.60a+ cores. This causes ClearStall command fails on 2.60+ cores
      operating in HighSpeed mode.
      
      In page 539 of 2.60a specification:
      
      "When issuing Clear Stall command for IN endpoints in SuperSpeed
      mode, the software must set the "ClearPendIN" bit to '1' to
      clear any pending IN transcations, so that the device does not
      expect any ACK TP from the host for the data sent earlier."
      
      It's obvious that we only need to apply this rule to those IN
      endpoints that currently operating in SuperSpeed mode.
      
      Fixes: 50c763f8 ("usb: dwc3: Set the ClearPendIN bit on Clear Stall EP command")
      Cc: <stable@vger.kernel.org> # v4.7+
      Signed-off-by: NLu Baolu <baolu.lu@linux.intel.com>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      5e6c88d2
  5. 09 9月, 2016 1 次提交
    • A
      usb: dwc3: avoid -Wmaybe-uninitialized warning · d6e10bf2
      Arnd Bergmann 提交于
      Cleaning up the loop in dwc3_cleanup_done_reqs() introduced a
      gcc warning if built with "-Wmaybe-uninitialized":
      
      drivers/usb/dwc3/gadget.c: In function 'dwc3_endpoint_transfer_complete':
      drivers/usb/dwc3/gadget.c:2015:9: 'trb' may be used uninitialized in this function [-Wmaybe-uninitialized]
      
      I believe it is a false positive and we always have a valid 'trb'
      pointer at the end of the function, but neither I nor the compiler
      are able to prove that.
      
      This works around the warning by computing a flag earlier in the function
      when it's guaranteed to be valid, which tells the compiler that it's
      safe and makes it easier to understand to me.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 31162af4 ("usb: dwc3: gadget: avoid while (1) loop on completion")
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      d6e10bf2
  6. 05 9月, 2016 1 次提交
  7. 25 8月, 2016 7 次提交
  8. 22 8月, 2016 7 次提交
  9. 11 8月, 2016 2 次提交
  10. 10 8月, 2016 3 次提交
  11. 21 6月, 2016 7 次提交