From: Alan Stern <stern@rowland.harvard.edu>
To: Igor Skalkin <igor.skalkin@oss.qualcomm.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Felipe Balbi <balbi@ti.com>,
Tatyana Brokhman <tlinder@codeaurora.org>,
Kees Cook <kees@kernel.org>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Sebastian Urban <surban@surban.net>,
Seungjin Bae <eeodqql09@gmail.com>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Trilok Soni <trilok.soni@oss.qualcomm.com>
Subject: Re: [PATCH 1/4] usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket
Date: Fri, 7 Aug 2026 17:15:08 -0400 [thread overview]
Message-ID: <8a7c3921-3881-41be-96be-7ac28c065ca2@rowland.harvard.edu> (raw)
In-Reply-To: <20260807075438.5566-2-igor.skalkin@oss.qualcomm.com>
On Fri, Aug 07, 2026 at 09:54:35AM +0200, Igor Skalkin wrote:
> For USB_SPEED_SUPER, dummy_hcd sets ep0 maxpacket to 9.
> That is incorrect for SuperSpeed ep0 and breaks short packet handling
> in control transfer tests.
>
> Set ep0 maxpacket to 512 for SuperSpeed.
>
> Fixes: 1cd8fd2887e1 ("usb: gadget: dummy_hcd: add SuperSpeed support")
> Signed-off-by: Igor Skalkin <igor.skalkin@oss.qualcomm.com>
> ---
Acked-by: Alan Stern <stern@rowland.harvard.edu>
> drivers/usb/gadget/udc/dummy_hcd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c
> index f47903461ed5..29f671c7b319 100644
> --- a/drivers/usb/gadget/udc/dummy_hcd.c
> +++ b/drivers/usb/gadget/udc/dummy_hcd.c
> @@ -896,7 +896,7 @@ static int dummy_set_selfpowered(struct usb_gadget *_gadget, int value)
> static void dummy_udc_update_ep0(struct dummy *dum)
> {
> if (dum->gadget.speed == USB_SPEED_SUPER)
> - dum->ep[0].ep.maxpacket = 9;
> + dum->ep[0].ep.maxpacket = 512;
> else
> dum->ep[0].ep.maxpacket = 64;
> }
> --
> 2.49.0
>
next prev parent reply other threads:[~2026-08-07 21:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-07 7:54 [PATCH 0/4] usb: gadget: dummy_hcd: fixes found while testing virtio-usb Igor Skalkin
2026-08-07 7:54 ` [PATCH 1/4] usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket Igor Skalkin
2026-08-07 21:15 ` Alan Stern [this message]
2026-08-07 7:54 ` [PATCH 2/4] usb: gadget: dummy_hcd: fix false overflow on bounded IN Igor Skalkin
2026-08-07 21:19 ` Alan Stern
2026-08-07 7:54 ` [PATCH 3/4] usb: gadget: dummy_hcd: fix SG transfer handling across chunks Igor Skalkin
2026-08-07 21:31 ` Alan Stern
2026-08-07 7:54 ` [PATCH 4/4] usb: gadget: dummy_hcd: set no_sg_constraint on the host controller Igor Skalkin
2026-08-07 21:23 ` Alan Stern
2026-08-12 8:19 ` [PATCH v2 0/2] usb: gadget: dummy_hcd: fixes found while testing virtio-usb Igor Skalkin
2026-08-12 8:19 ` [PATCH v2 1/2] usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket Igor Skalkin
2026-08-12 8:19 ` [PATCH v2 2/2] usb: gadget: dummy_hcd: set no_sg_constraint only on the SuperSpeed bus Igor Skalkin
2026-08-12 14:03 ` Alan Stern
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=8a7c3921-3881-41be-96be-7ac28c065ca2@rowland.harvard.edu \
--to=stern@rowland.harvard.edu \
--cc=balbi@ti.com \
--cc=bigeasy@linutronix.de \
--cc=eeodqql09@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=igor.skalkin@oss.qualcomm.com \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=surban@surban.net \
--cc=tlinder@codeaurora.org \
--cc=trilok.soni@oss.qualcomm.com \
/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
all inboxes | Powered by JetHome®