From: Sascha Hauer <s.hauer@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org, Jules Maselbas <jmaselbas@kalray.eu>
Subject: Re: [PATCH v2 2/2] usb: dwc2: fix multiplier handling in endpoint setup
Date: Thu, 2 Feb 2023 08:21:23 +0100 [thread overview]
Message-ID: <20230202072123.GI13319@pengutronix.de> (raw)
In-Reply-To: <47af6a80-3fec-1f05-793c-6a4a62bd219a@pengutronix.de>
On Wed, Feb 01, 2023 at 07:13:24PM +0100, Ahmad Fatoum wrote:
> On 24.01.23 21:01, Michael Grzeschik wrote:
> > If the multiplier is 0 in the descriptor bitfield the multiplier count
> > is one. For calculating the multiplier count the extra function
> > usb_endpoint_maxp_mult should be used. Rework the dwc2 driver to use it
> > and make multi packages work.
> >
> > While at it, we also remove the USB_EP_MAXP_MULT and
> > USB_ENDPOINT_MAXP_MASK macros that would stay left unused and are
> > defined in include/usb/ch9.ch anyway.
> >
> > Tested-by: Jules Maselbas <jmaselbas@kalray.eu>
> > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
>
> This induces the same breakage as in v1, even a simple ACM gadget
> fails:
>
> barebox@Linux Automation Test Automation Controller (TAC):/ usbgadget -a
> udc0: registering UDC driver [g_multi]
> multi_bind: creating ACM function
> g_multi usbgadget: Multifunction Composite Gadget
> g_multi usbgadget: g_multi ready
> dwc2 49000000.usb-otg@49000000.of: bound driver g_multi
> dwc2 49000000.usb-otg@49000000.of: new address 3
> g_multi usbgadget: high-speed config #1: Multifunction Composite Gadget
> ERROR: dwc2 49000000.usb-otg@49000000.of: dwc2_ep_enable: No suitable fifo found
>
>
> The other patch while maybe applicable to the kernel, doesn't do anything
> for barebox. Please test barebox patches in barebox for v3.
>
> @Sascha, can you drop this series from next?
Did that.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2023-02-02 7:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-24 20:01 [PATCH v2 1/2] ARM: dts: stm32mp15x: adjust USB OTG gadget tx fifo sizes Michael Grzeschik
2023-01-24 20:01 ` [PATCH v2 2/2] usb: dwc2: fix multiplier handling in endpoint setup Michael Grzeschik
2023-02-01 18:13 ` Ahmad Fatoum
2023-02-02 7:21 ` Sascha Hauer [this message]
2023-01-31 8:42 ` [PATCH v2 1/2] ARM: dts: stm32mp15x: adjust USB OTG gadget tx fifo sizes Sascha Hauer
2023-02-01 18:09 ` Ahmad Fatoum
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=20230202072123.GI13319@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jmaselbas@kalray.eu \
/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