From: Siddharth Vadapalli <s-vadapalli@ti.com>
To: Roger Quadros <rogerq@kernel.org>
Cc: Siddharth Vadapalli <s-vadapalli@ti.com>, <trini@konsulko.com>,
<lukma@denx.de>, <mkorpershoek@baylibre.com>, <marex@denx.de>,
<vigneshr@ti.com>, <u-boot@lists.denx.de>, <srk@ti.com>
Subject: Re: [PATCH] usb: gadget: cdns3: Fix cdns3_ep_config() by setting ep.maxpacket
Date: Mon, 7 Oct 2024 17:51:34 +0530 [thread overview]
Message-ID: <cb413e93-94a4-4fa0-82df-0074efa13d96@ti.com> (raw)
In-Reply-To: <fcebed5a-e191-4e5c-befe-217a9040dbe7@ti.com>
On Mon, Oct 07, 2024 at 05:37:52PM +0530, Siddharth Vadapalli wrote:
> On Mon, Oct 07, 2024 at 03:02:34PM +0300, Roger Quadros wrote:
>
> Hello Roger,
[...]
> > from include/linux/usb/gadget.h
> >
> > * struct usb_ep - device side representation of USB endpoint
> > ...
> > * @maxpacket:The maximum packet size used on this endpoint. The initial
> > * value can sometimes be reduced (hardware allowing), according to
> > * the endpoint descriptor used to configure the endpoint.
> > * @maxpacket_limit:The maximum packet size value which can be handled by this
> > * endpoint. It's set once by UDC driver when endpoint is initialized, and
> > * should not be changed. Should not be confused with maxpacket.
> >
> > What you want to change is ep->maxpacket and not ep->maxpacket_limit as that is
> > fixed for a particular UDC.
> >
> > how about?
> > priv-ep->endpoint.maxpacket = max_packet_size;
>
> Yes, this is accurate. I will post the v2 patch with this change. Thank
> you for reviewing the patch.
I have implemented your feedback and have posted the v2 patch at:
https://patchwork.ozlabs.org/project/uboot/patch/20241007121927.1680039-1-s-vadapalli@ti.com
Regards,
Siddharth.
prev parent reply other threads:[~2024-10-07 12:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-07 10:42 [PATCH] usb: gadget: cdns3: Fix cdns3_ep_config() by setting ep.maxpacket Siddharth Vadapalli
2024-10-07 12:02 ` Roger Quadros
2024-10-07 12:07 ` Siddharth Vadapalli
2024-10-07 12:21 ` Siddharth Vadapalli [this message]
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=cb413e93-94a4-4fa0-82df-0074efa13d96@ti.com \
--to=s-vadapalli@ti.com \
--cc=lukma@denx.de \
--cc=marex@denx.de \
--cc=mkorpershoek@baylibre.com \
--cc=rogerq@kernel.org \
--cc=srk@ti.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.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