[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <95ff48ae-5cdb-4e3d-aeb9-1b6cc33412dd@rowland.harvard.edu>
Date: Mon, 15 Sep 2025 10:05:15 -0400
From: Alan Stern <stern@...land.harvard.edu>
To: Xu Yang <xu.yang_2@....com>
Cc: gregkh@...uxfoundation.org, tglx@...utronix.de, mingo@...nel.org,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
imx@...ts.linux.dev, jun.li@....com
Subject: Re: [PATCH] usb: gadget: zero: add function wakeup support
On Mon, Sep 15, 2025 at 05:02:30PM +0800, Xu Yang wrote:
> When the device working at enhanced superspeed, it needs to send function
Is this also true when the device is connected at regular (not enhanced)
SuperSpeed?
> remote wakeup signal to the host instead of device remote wakeup. Add
> function wakeup support for the purpose.
>
> Signed-off-by: Xu Yang <xu.yang_2@....com>
> ---
> drivers/usb/gadget/legacy/zero.c | 27 ++++++++++++++++++---------
> 1 file changed, 18 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/usb/gadget/legacy/zero.c b/drivers/usb/gadget/legacy/zero.c
> index a05785bdeb30..fe286b597f9f 100644
> --- a/drivers/usb/gadget/legacy/zero.c
> +++ b/drivers/usb/gadget/legacy/zero.c
> @@ -147,6 +147,12 @@ static struct usb_gadget_strings *dev_strings[] = {
> NULL,
> };
>
> +static struct usb_function *func_lb;
> +static struct usb_function_instance *func_inst_lb;
> +
> +static struct usb_function *func_ss;
> +static struct usb_function_instance *func_inst_ss;
> +
> /*-------------------------------------------------------------------------*/
>
> static struct timer_list autoresume_timer;
> @@ -156,6 +162,7 @@ static void zero_autoresume(struct timer_list *unused)
> {
> struct usb_composite_dev *cdev = autoresume_cdev;
> struct usb_gadget *g = cdev->gadget;
> + int status;
Please use the same style for your new code as for the existing code.
In this case, use tabs to align "status" with "*g" and "*cdev".
Alan Stern
Powered by blists - more mailing lists