u-boot-amlogic.groups.io archive mirror
 help / color / mirror / Atom feed
From: "Neil Armstrong" <narmstrong@baylibre.com>
To: Gary Bisson <gary.bisson@boundarydevices.com>, u-boot@lists.denx.de
Cc: lukma@denx.de, marex@denx.de, peter.chen@nxp.com, jun.li@nxp.com,
	peng.fan@nxp.com, u-boot-amlogic@groups.io
Subject: Re: [PATCH] usb: gadget: dwc2_udc_otg: set ep's desc during enable/disable
Date: Thu, 6 Jan 2022 16:21:12 +0100	[thread overview]
Message-ID: <8a9ab2a9-a4fe-0b06-de58-4e225fbe13e8@baylibre.com> (raw)
In-Reply-To: <20220106150208.1316946-1-gary.bisson@boundarydevices.com>

Hi,

On 06/01/2022 16:02, Gary Bisson wrote:
> Fastboot support has been broken on platforms using dwc2 controller
> since the gadget gets its max packet size from it.
> This patch is the equivalent of 723fd5668ff which fixed the same issue
> but for the chipidea controller.
> 
> Fixes: 27c9141b111 ("usb: gadget: fastboot: use correct max packet size")
> 
> Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
> ---
>  drivers/usb/gadget/dwc2_udc_otg.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c
> index 2f318144421..fb10884755b 100644
> --- a/drivers/usb/gadget/dwc2_udc_otg.c
> +++ b/drivers/usb/gadget/dwc2_udc_otg.c
> @@ -655,6 +655,7 @@ static int dwc2_ep_enable(struct usb_ep *_ep,
>  		return -ESHUTDOWN;
>  	}
>  
> +	_ep->desc = desc;
>  	ep->stopped = 0;
>  	ep->desc = desc;

Indeed the _ep and ep was confusing when looking code

>  	ep->pio_irqs = 0;
> @@ -695,6 +696,7 @@ static int dwc2_ep_disable(struct usb_ep *_ep)
>  	/* Nuke all pending requests */
>  	nuke(ep, -ESHUTDOWN);
>  
> +	_ep->desc = NULL;
>  	ep->desc = 0;
>  	ep->stopped = 1;
>  
> 

An off-tree patch removed from our Yukawa backlog, thanks !

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>

Neil

       reply	other threads:[~2022-01-06 15:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220106150208.1316946-1-gary.bisson@boundarydevices.com>
2022-01-06 15:21 ` Neil Armstrong [this message]
2022-01-06 19:55   ` [PATCH] usb: gadget: dwc2_udc_otg: set ep's desc during enable/disable Marek Vasut
2022-01-07 15:25     ` Mattijs Korpershoek

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=8a9ab2a9-a4fe-0b06-de58-4e225fbe13e8@baylibre.com \
    --to=narmstrong@baylibre.com \
    --cc=gary.bisson@boundarydevices.com \
    --cc=jun.li@nxp.com \
    --cc=lukma@denx.de \
    --cc=marex@denx.de \
    --cc=peng.fan@nxp.com \
    --cc=peter.chen@nxp.com \
    --cc=u-boot-amlogic@groups.io \
    --cc=u-boot@lists.denx.de \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).