From: Sean Anderson <seanga2@gmail.com>
To: qianfanguijin@qq.com, u-boot@lists.denx.de
Cc: lukma@denx.de, qianfan Zhao <qianfanguijin@163.com>
Subject: Re: [PATCH] drivers: musb_gadget: Save endpoint desc to usb_ep->desc
Date: Mon, 15 Nov 2021 19:43:49 -0500 [thread overview]
Message-ID: <a3b85f0b-7157-9afd-cb9b-3612ec72dddc@gmail.com> (raw)
In-Reply-To: <tencent_FA52BBA9DDF23155BF682E585745FB18AB0A@qq.com>
On 11/15/21 7:30 PM, qianfanguijin@qq.com wrote:
> From: qianfan Zhao <qianfanguijin@163.com>
>
> Fix fastboot flash bug.
>
> If the downloading file size is equal to the partition size, "fastboot
> flash" can't work, at least in sunxi platform, because used an
> uninitalized point: ep->desc.
>
> This patch also fixed 'data abort' bug in am335x platform.
>
> Reproduce: fastboot flash loader1 spl/sunxi-spl.bin.
>
> Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
> ---
> drivers/usb/musb-new/musb_gadget.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/usb/musb-new/musb_gadget.c b/drivers/usb/musb-new/musb_gadget.c
> index 1fef00b292..7cca92b970 100644
> --- a/drivers/usb/musb-new/musb_gadget.c
> +++ b/drivers/usb/musb-new/musb_gadget.c
> @@ -1188,6 +1188,7 @@ static int musb_gadget_enable(struct usb_ep *ep,
> } else
> musb_ep->dma = NULL;
>
> + musb_ep->end_point.desc = desc;
> musb_ep->desc = desc;
> musb_ep->busy = 0;
> musb_ep->wedged = 0;
> @@ -1245,9 +1246,7 @@ static int musb_gadget_disable(struct usb_ep *ep)
> }
>
> musb_ep->desc = NULL;
> -#ifndef __UBOOT__
> musb_ep->end_point.desc = NULL;
> -#endif
>
> /* abort all pending DMA and requests */
> nuke(musb_ep, -ESHUTDOWN);
>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
next prev parent reply other threads:[~2021-11-16 0:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-16 0:30 [PATCH] drivers: musb_gadget: Save endpoint desc to usb_ep->desc qianfanguijin
2021-11-16 0:43 ` Sean Anderson [this message]
2022-01-18 17:39 ` Tom Rini
-- strict thread matches above, loose matches on Subject: below --
2021-11-08 3:04 qianfanguijin
2021-11-15 13:14 ` Sean Anderson
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=a3b85f0b-7157-9afd-cb9b-3612ec72dddc@gmail.com \
--to=seanga2@gmail.com \
--cc=lukma@denx.de \
--cc=qianfanguijin@163.com \
--cc=qianfanguijin@qq.com \
--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