Skip to content

usb: cdns3: improve the sg use case

Peter Chen linux-usb 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 4 repliesIn review
  2. v18 patches 19 repliesSuperseded

Changes in v2 from the cover letter

- Fix some coding style and typo issues. [Patch 1, 2, 3, 5]
- Improve the comments [Patch 6,8]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8usb: cdns3: gadget: using correct sg operationsdrivers/usb/cdns3/gadget.c+15 -74 replies
2/8usb: cdns3: gadget: improve the dump TRB operation at cdns3_ep_run_transferdrivers/usb/cdns3/gadget.c+17 -20 replies
3/8usb: cdns3: gadget: calculate TDL correctlydrivers/usb/cdns3/gadget.c+12 -110 replies
4/8usb: cdns3: gadget: add CHAIN and ISP bit for sg list use casedrivers/usb/cdns3/gadget.c+7 -10 replies
5/8usb: cdns3: gadget: handle sg list use case at completion correctlydrivers/usb/cdns3/gadget.c drivers/usb/cdns3/gadget.h+65 -290 replies
6/8usb: cdns3: gadget: need to handle sg case for workaround 2 casedrivers/usb/cdns3/gadget.c+31 -130 replies
7/8usb: cdns3: gadget: sg_support is only for DEV_VER_V2 or abovedrivers/usb/cdns3/gadget.c+2 -10 replies
8/8usb: cdns3: gadget: enlarge the TRB ring lengthdrivers/usb/cdns3/gadget.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] usb: cdns3: improve the sg use case

For sg use cases, there will be serveral TRBs in TD, and the short transfer may occur during the TD, current code doesn't handle it well, improve it through this series. Tested by Android MTP and ADB use case.

Changes for v2:
- Fix some coding style and typo issues. [Patch 1, 2, 3, 5]
- Improve the comments [Patch 6,8]

Peter Chen (8):
usb: cdns3: gadget: using correct sg operations
usb: cdns3: gadget: improve the dump TRB operation at
cdns3_ep_run_transfer
usb: cdns3: gadget: calculate TDL correctly
usb: cdns3: gadget: add CHAIN and ISP bit for sg list use case
usb: cdns3: gadget: handle sg list use case at completion correctly
usb: cdns3: gadget: need to handle sg case for workaround 2 case
usb: cdns3: gadget: sg_support is only for DEV_VER_V2 or above
usb: cdns3: gadget: enlarge the TRB ring length

 drivers/usb/cdns3/gadget.c | 202 +++++++++++++++++++++++++------------
 drivers/usb/cdns3/gadget.h |  11 +-
 2 files changed, 149 insertions(+), 64 deletions(-)
Signature · 1 line
2.17.1