[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250409221158.n5duanv2gmctrr64@synopsys.com>
Date: Wed, 9 Apr 2025 22:12:01 +0000
From: Thinh Nguyen <Thinh.Nguyen@...opsys.com>
To: Prashanth K <prashanth.k@....qualcomm.com>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Kees Bakker
<kees@...erbout.nl>,
William McVicker <willmcvicker@...gle.com>,
Marek
Szyprowski <m.szyprowski@...sung.com>,
"linux-usb@...r.kernel.org"
<linux-usb@...r.kernel.org>,
"linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>,
"stable@...nel.org" <stable@...nel.org>
Subject: Re: [PATCH v1 2/3] usb: gadget: Use get_status callback to set remote
wakeup capability
On Wed, Apr 09, 2025, Thinh Nguyen wrote:
> On Wed, Apr 09, 2025, Prashanth K wrote:
> >
> >
> > On 09-04-25 06:25 am, Thinh Nguyen wrote:
> > >
> > > Not at the gadget level, I mean to create a configfs attribute common
> > > across different functions to allow the user to enable/disable the
> > > function wakeup capability via the configfs when you setup the function.
> > >
> > > What do you think?
> > >
> > > Thanks,
> > > Thinh
> >
> > Thats a good idea, in fact I had the same thought. But thought of doing
> > it later since its beyond the scope of this patch/series.
>
> The way you have it done now forces a usb3x function driver to implement
> f->get_status to be able to respond with function wakeup capable.
> Previously, we automatically enable function wakeup capability for all
> functions if the USB_CONFIG_ATT_WAKEUP is set.
>
> Arguably, this can cause a regression for remote capable devices to
> operate in usb3 speeds.
Sorry typos: I mean arguably, this can cause a regression for remote
wake capable devices to perform remote wakeup in usb3 speed.
BR,
Thinh
>
> >
> > We can add a configfs attribute to enable/disable FUNC_RW_CAP, and
> > functions can return get_status() based on the attribute.
> >
>
> That would be great! This would fit this series perfectly. Let me know
> if there's an issue.
>
> Thanks,
> Thinh
Powered by blists - more mailing lists