From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
To: Felipe Balbi <balbi@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
linux-usb@vger.kernel.org
Cc: John Youn <John.Youn@synopsys.com>
Subject: [PATCH 0/5] usb: dwc3: gadget: Handle streams
Date: Mon, 27 Apr 2020 15:27:34 -0700 [thread overview]
Message-ID: <cover.1588025916.git.thinhn@synopsys.com> (raw)
The dwc3 driver wasn't implemented to handle streams. This series provide a few
updates to dwc3 and usb request for that:
* Introduce usb_request->is_last field
* Handle dwc3 transfer completion
* Handle dwc3 stream events
To use stream, the dwc3 driver must know which request is the last request of a
transfer. The controller uses this information to reallocate its resources for
different streams as transfers are completed. Function drivers that support
stream must indicate this via usb_request->is_last field.
Please note, I also included the patch
"usb: dwc3: gadget: Continue to process pending requests" in this series to
avoid dependency issue when applying to your git tree.
https://patchwork.kernel.org/patch/11466967/
Prerequisite
------------
This series requires DWC_usb32 patch series:
https://patchwork.kernel.org/project/linux-usb/list/?series=269641
[PATCH 1/2] usb: dwc3: Add support for DWC_usb32 IP
[PATCH 2/2] usb: dwc3: Get MDWIDTH for DWC_usb32
Thinh Nguyen (5):
usb: gadget: Introduce usb_request->is_last field
usb: gadget: f_tcm: Inform last transfer request
usb: dwc3: gadget: Continue to process pending requests
usb: dwc3: gadget: Handle transfer completion
usb: dwc3: gadget: Handle stream transfers
drivers/usb/dwc3/core.h | 12 ++
drivers/usb/dwc3/debug.h | 2 +
drivers/usb/dwc3/gadget.c | 225 ++++++++++++++++++++++++++++++------
drivers/usb/gadget/function/f_tcm.c | 3 +
include/linux/usb/gadget.h | 2 +
5 files changed, 211 insertions(+), 33 deletions(-)
--
2.11.0
next reply other threads:[~2020-04-27 22:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-27 22:27 Thinh Nguyen [this message]
2020-04-27 22:27 ` [PATCH 1/5] usb: gadget: Introduce usb_request->is_last field Thinh Nguyen
2020-04-29 3:15 ` Peter Chen
2020-04-30 1:00 ` Thinh Nguyen
2020-04-30 3:57 ` Peter Chen
2020-04-30 4:54 ` Thinh Nguyen
2020-04-30 14:21 ` Alan Stern
2020-04-30 17:17 ` Thinh Nguyen
2020-04-30 18:22 ` Alan Stern
2020-04-30 18:36 ` Thinh Nguyen
2020-04-27 22:27 ` [PATCH 2/5] usb: gadget: f_tcm: Inform last transfer request Thinh Nguyen
2020-04-27 22:27 ` [PATCH 3/5] usb: dwc3: gadget: Continue to process pending requests Thinh Nguyen
2020-04-27 22:27 ` [PATCH 4/5] usb: dwc3: gadget: Handle transfer completion Thinh Nguyen
2020-04-29 7:48 ` Felipe Balbi
2020-04-30 1:16 ` Thinh Nguyen
2020-05-14 10:38 ` Felipe Balbi
2020-05-15 1:23 ` Thinh Nguyen
2020-04-27 22:28 ` [PATCH 5/5] usb: dwc3: gadget: Handle stream transfers Thinh Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1588025916.git.thinhn@synopsys.com \
--to=thinh.nguyen@synopsys.com \
--cc=John.Youn@synopsys.com \
--cc=balbi@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).