From: Jack Pham <jackp@codeaurora.org>
To: Bin Liu <b-liu@ti.com>,
linux-usb@vger.kernel.org, Felipe Balbi <balbi@kernel.org>
Subject: Re: configfs on dwc3: msc enum failed if three functions defined
Date: Thu, 25 Apr 2019 15:44:57 -0700 [thread overview]
Message-ID: <20190425224456.GA27553@jackp-linux.qualcomm.com> (raw)
In-Reply-To: <20190422134357.GA2071@uda0271908>
Hi Bin,
On Mon, Apr 22, 2019 at 08:43:57AM -0500, Bin Liu wrote:
> Hi Felipe,
>
> I am having an issue with dwc3 on TI AM57x device, and would like to ask
> for your comments.
>
> I use configfs to create a multi-function gadget on dwc3, mass_storage
> is the last function, it seems if I create 3 functions, the mass_storage
> enumeration will fail on the host. It works fine if only create 2
> functions.
>
> The dwc3 tracepoints log shows after all the ep0 transfers for
> mass_storage, the very first epXin transfer is not complete - dwc3
> programmed the urb, but never generates RX completion event. This also
> matches the bus analyzer trace - dwc3 NAKs the very first IN token for
> ever.
>
> I use the attached script to create the gadget, The macro FUNCS in the
> beginning of the script defines the functions to be created.
>
> Any comments are appreciated.
A stab in the dark here but what is the value of GTXFIFOSIZ(X)[15:0]
for epXin on your device? Is it at least wMaxPacketSize? Depending on
the default hardware values it might be deficient as compared to the
working endpoint that gets assigned in your 2-function config.
Jack
--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2019-04-25 22:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-22 13:43 configfs on dwc3: msc enum failed if three functions defined Bin Liu
2019-04-25 22:44 ` Jack Pham [this message]
2019-07-02 14:48 ` Bin Liu
2019-07-02 16:51 ` Jack Pham
2019-07-02 17:50 ` Bin Liu
2019-07-02 18:20 ` Bin Liu
2019-07-03 6:12 ` Felipe Balbi
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=20190425224456.GA27553@jackp-linux.qualcomm.com \
--to=jackp@codeaurora.org \
--cc=b-liu@ti.com \
--cc=balbi@kernel.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).