1. 02 10月, 2020 2 次提交
  2. 24 9月, 2020 1 次提交
    • T
      usb: dwc3: gadget: END_TRANSFER before CLEAR_STALL command · d97c78a1
      Thinh Nguyen 提交于
      According the programming guide (for all DWC3 IPs), when the driver
      handles ClearFeature(halt) request, it should issue CLEAR_STALL command
      _after_ the END_TRANSFER command completes. The END_TRANSFER command may
      take some time to complete. So, delay the ClearFeature(halt) request
      control status stage and wait for END_TRANSFER command completion
      interrupt. Only after END_TRANSFER command completes that the driver
      may issue CLEAR_STALL command.
      
      Cc: stable@vger.kernel.org
      Fixes: cb11ea56 ("usb: dwc3: gadget: Properly handle ClearFeature(halt)")
      Signed-off-by: NThinh Nguyen <thinhn@synopsys.com>
      Signed-off-by: NFelipe Balbi <balbi@kernel.org>
      d97c78a1
  3. 15 7月, 2020 1 次提交
  4. 24 6月, 2020 1 次提交
  5. 15 1月, 2020 1 次提交
  6. 10 12月, 2019 1 次提交
  7. 18 6月, 2019 1 次提交
    • A
      usb: dwc3: gadget: Add support for disabling U1 and U2 entries · 729dcffd
      Anurag Kumar Vulisha 提交于
      Gadget applications may have a requirement to disable the U1 and U2
      entry based on the usecase. Below are few usecases where the disabling
      U1/U2 entries may be possible.
      
      Usecase 1:
      When combining dwc3 with an redriver for a USB Type-C device solution, it
      sometimes have problems with leaving U1/U2 for certain hosts, resulting in
      link training errors and reconnects. For this U1/U2 state entries may be
      avoided.
      
      Usecase 2:
      When performing performance benchmarking on mass storage gadget the
      U1 and U2 entries can be disabled.
      
      Usecase 3:
      When periodic transfers like ISOC transfers are used with bInterval
      of 1 which doesn't require the link to enter into U1 or U2 state entry
      (since ping is issued from host for every uframe interval). In this
      case the U1 and U2 entry can be disabled.
      
      Disablement of U1/U2 can be done by setting U1DevExitLat and U2DevExitLat
      values to 0 in the BOS descriptor. Host on seeing 0 value for U1DevExitLat
      and U2DevExitLat, it doesn't send SET_SEL requests to the gadget. There
      may be some hosts which may send SET_SEL requests even after seeing 0 in
      the UxDevExitLat of BOS descriptor. To aviod U1/U2 entries for these type
      of hosts, dwc3 controller can be programmed to reject those U1/U2 requests
      by not enabling ACCEPTUxENA bits in DCTL register.
      
      This patch updates the same.
      Signed-off-by: NAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
      Signed-off-by: NClaus H. Stovgaard <cst@phaseone.com>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      729dcffd
  8. 17 7月, 2018 1 次提交
  9. 13 7月, 2018 1 次提交
  10. 21 5月, 2018 3 次提交
  11. 19 3月, 2018 1 次提交
  12. 12 2月, 2018 1 次提交
  13. 11 12月, 2017 1 次提交
  14. 07 11月, 2017 1 次提交
    • G
      USB: dwc3: Remove redundant license text · b5ea4757
      Greg Kroah-Hartman 提交于
      Now that the SPDX tag is in all USB files, that identifies the license
      in a specific and legally-defined manner.  So the extra GPL text wording
      can be removed as it is no longer needed at all.
      
      This is done on a quest to remove the 700+ different ways that files in
      the kernel describe the GPL license text.  And there's unneeded stuff
      like the address (sometimes incorrect) for the FSF which is never
      needed.
      
      No copyright headers or other non-license-description text was removed.
      
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: Krzysztof Kozlowski <krzk@kernel.org>
      Cc: Patrice Chotard <patrice.chotard@st.com>
      Acked-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b5ea4757
  15. 04 11月, 2017 1 次提交
  16. 19 10月, 2017 1 次提交
  17. 18 9月, 2017 1 次提交
  18. 13 6月, 2017 1 次提交
  19. 02 6月, 2017 1 次提交
  20. 11 4月, 2017 4 次提交
  21. 24 1月, 2017 1 次提交
    • B
      usb: dwc3: ep0: Fix the possible missed request for handling delay STATUS phase · 53896798
      Baolin Wang 提交于
      When handing the SETUP packet by composite_setup(), we will release the
      dwc->lock. If we get the 'USB_GADGET_DELAYED_STATUS' result from setup
      function, which means we need to delay handling the STATUS phase.
      
      But during the lock release period, maybe the request for handling delay
      STATUS phase has been queued into list before we set 'dwc->delayed_status'
      flag or entering 'EP0_STATUS_PHASE' phase, then we will miss the chance
      to handle the STATUS phase. Thus we should check if the request for delay
      STATUS phase has been enqueued when entering 'EP0_STATUS_PHASE' phase in
      dwc3_ep0_xfernotready(), if so, we should handle it.
      Signed-off-by: NBaolin Wang <baolin.wang@linaro.org>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      53896798
  22. 02 1月, 2017 2 次提交
  23. 18 11月, 2016 2 次提交
  24. 08 11月, 2016 1 次提交
  25. 03 11月, 2016 2 次提交
  26. 31 10月, 2016 3 次提交
  27. 20 6月, 2016 3 次提交