From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
To: Prashanth K <prashanth.k@oss.qualcomm.com>
Cc: Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Kees Bakker <kees@ijzerbout.nl>,
William McVicker <willmcvicker@google.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"stable@kernel.org" <stable@kernel.org>
Subject: Re: [PATCH v1 2/3] usb: gadget: Use get_status callback to set remote wakeup capability
Date: Fri, 11 Apr 2025 01:00:24 +0000 [thread overview]
Message-ID: <20250411010016.dhy45itnjzly5xpg@synopsys.com> (raw)
In-Reply-To: <2cc61d5d-656b-49d6-9d09-98c4368b1fc8@oss.qualcomm.com>
On Thu, Apr 10, 2025, Prashanth K wrote:
>
>
> On 10-04-25 03:42 am, Thinh Nguyen wrote:
> > 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.
>
> Currently function wakeup is implemented only on f_ecm and others don't
> have the capability, so the expectation is functions should add add the
> get_status callbacks while implementing remote/func wakeup and mark
> itself and RW/FW capable. And if get_status callback is not there, then
> func is not FW capable.
>
> Current implementation sets RW/FW capability to all interfaces if
> USB_CONFIG_ATT_WAKEUP is set (which is not right). I have provided an
> example in the commit text where we incorrectly set FW capability.
> >>
> >> 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.
> >>
> I seriously think we can take it out of this series and do that
> separately. The intention of this series was to fix the wakeup
> operations. And enable/disable func_wakeup from function driver would be
> a new implementation. Ill take it up after this.
>
Fair enough. Thanks for the work!
BR,
Thinh
next prev parent reply other threads:[~2025-04-11 1:01 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-03 11:08 [PATCH v1 0/3] Fixes for USB3 CV Chapter 9.15 tests Prashanth K
2025-04-03 11:08 ` [PATCH v1 1/3] usb: gadget: f_ecm: Add get_status callback Prashanth K
2025-04-08 1:08 ` Thinh Nguyen
2025-04-08 5:05 ` Prashanth K
2025-04-09 0:56 ` Thinh Nguyen
2025-04-03 11:08 ` [PATCH v1 2/3] usb: gadget: Use get_status callback to set remote wakeup capability Prashanth K
2025-04-08 1:18 ` Thinh Nguyen
2025-04-08 5:06 ` Prashanth K
2025-04-09 0:55 ` Thinh Nguyen
2025-04-09 4:22 ` Prashanth K
2025-04-09 22:05 ` Thinh Nguyen
2025-04-09 22:12 ` Thinh Nguyen
2025-04-10 6:08 ` Prashanth K
2025-04-11 1:00 ` Thinh Nguyen [this message]
2025-04-03 11:08 ` [PATCH v1 3/3] usb: dwc3: gadget: Make gadget_wakeup asynchronous Prashanth K
2025-04-07 23:38 ` Thinh Nguyen
2025-04-08 5:34 ` Prashanth K
2025-04-09 0:43 ` Thinh Nguyen
2025-04-09 4:15 ` Prashanth K
2025-04-09 21:51 ` Thinh Nguyen
2025-04-10 5:48 ` Prashanth K
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=20250411010016.dhy45itnjzly5xpg@synopsys.com \
--to=thinh.nguyen@synopsys.com \
--cc=gregkh@linuxfoundation.org \
--cc=kees@ijzerbout.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=prashanth.k@oss.qualcomm.com \
--cc=stable@kernel.org \
--cc=willmcvicker@google.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