RE: [PATCH 2/3] usb: gadget: f_sourcesink support for maxburst for bulk transfers

From: Chary Chennoju, Srikanth
Date: Mon Aug 11 2025 - 12:01:53 EST


[AMD Official Use Only - AMD Internal Distribution Only]

Hi Stern,

Please let me know if there are any further comments for this patch.

Thanks & Regards,
Srikanth

> -----Original Message-----
> From: Chary Chennoju, Srikanth
> Sent: Monday, July 7, 2025 7:31 PM
> To: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> Cc: gregkh@xxxxxxxxxxxxxxxxxxx; Thinh.Nguyen@xxxxxxxxxxxx;
> m.grzeschik@xxxxxxxxxxxxxx; Chris.Wulff@xxxxxxxxx; tiwai@xxxxxxx; linux-
> usb@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Kalluri, Punnaiah
> Choudary <punnaiah.choudary.kalluri@xxxxxxx>
> Subject: RE: [PATCH 2/3] usb: gadget: f_sourcesink support for maxburst for
> bulk transfers
>
> Hi Stern,
>
> Agreed. I can remove the comment as I have added the check for the value
> based on user input.
>
> Regards,
> Srikanth
>
> > -----Original Message-----
> > From: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> > Sent: Monday, July 7, 2025 7:15 PM
> > To: Chary Chennoju, Srikanth <srikanth.chary-chennoju@xxxxxxx>
> > Cc: gregkh@xxxxxxxxxxxxxxxxxxx; Thinh.Nguyen@xxxxxxxxxxxx;
> > m.grzeschik@xxxxxxxxxxxxxx; Chris.Wulff@xxxxxxxxx; tiwai@xxxxxxx;
> > linux- usb@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Kalluri,
> > Punnaiah Choudary <punnaiah.choudary.kalluri@xxxxxxx>
> > Subject: Re: [PATCH 2/3] usb: gadget: f_sourcesink support for
> > maxburst for bulk transfers
> >
> > Caution: This message originated from an External Source. Use proper
> > caution when opening attachments, clicking links, or responding.
> >
> >
> > On Mon, Jul 07, 2025 at 10:49:26AM +0000, Chary Chennoju, Srikanth
> wrote:
> > > [AMD Official Use Only - AMD Internal Distribution Only]
> > >
> > > Hi Stern,
> > >
> > > Thanks for your comments. If you are mentioning to have a check for
> > > the
> > value which user is providing, then there is a check which is carried
> > out(#34 to #37 in the patch). It limits to max burst value if user
> > exceeds the supported value.
> >
> > > > > + /*
> > > > > + * Fill in the SS bulk descriptors from the module parameters.
> > > > > + * We assume that the user knows what they are doing and won't
> > > > > + * give parameters that their UDC doesn't support.
> > > > > + */
> >
> > In that case this comment is wrong, isn't it? You don't assume that
> > the user knows what they are doing; you do check and limit the value
> > to maxburst if the user's value is too big.
> >
> > Alan Stern