1. 17 10月, 2016 1 次提交
  2. 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
  3. 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
  4. 05 9月, 2016 1 次提交
  5. 25 8月, 2016 7 次提交
  6. 22 8月, 2016 7 次提交
  7. 11 8月, 2016 2 次提交
  8. 10 8月, 2016 3 次提交
  9. 21 6月, 2016 8 次提交
  10. 20 6月, 2016 9 次提交