From: Matthias Brugger <mbrugger@suse.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>, u-boot@lists.denx.de
Cc: Nicolas Saenz Julienne <nsaenz@kernel.org>,
Jaehoon Chung <jh80.chung@samsung.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Subject: Re: [PATCH] arm: rpi: perform XHCI firmware upload only once
Date: Fri, 17 Sep 2021 10:44:24 +0200 [thread overview]
Message-ID: <e30e2c3b-6724-d024-e2f2-3b31bf99fc19@suse.com> (raw)
In-Reply-To: <1848d18e-c73c-c19f-0a1b-03c89e1ad725@suse.com>
On 17/09/2021 10:42, Matthias Brugger wrote:
>
>
> On 17/09/2021 10:19, Marek Szyprowski wrote:
>> XHCI firmware upload must be performed only once after initializing the
>> PCI bridge. This fixes USB stack initialization after calling "usb stop;
>> usb start" on Raspberry Pi 4B.
>>
>> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
>
> Looks good to me. I'll wait a bit more to see if Nicolas can do a review as well
> before queuing it.
>
There was a race condition, I'll queque it now :)
> Regards,
> Matthias
>
>> ---
>> arch/arm/mach-bcm283x/msg.c | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/arch/arm/mach-bcm283x/msg.c b/arch/arm/mach-bcm283x/msg.c
>> index 347aece3cd..345f7fe2b7 100644
>> --- a/arch/arm/mach-bcm283x/msg.c
>> +++ b/arch/arm/mach-bcm283x/msg.c
>> @@ -170,6 +170,12 @@ int bcm2711_notify_vl805_reset(void)
>> ALLOC_CACHE_ALIGN_BUFFER(struct msg_notify_vl805_reset,
>> msg_notify_vl805_reset, 1);
>> int ret;
>> + static int done = false;
>> +
>> + if (done)
>> + return 0;
>> +
>> + done = true;
>> BCM2835_MBOX_INIT_HDR(msg_notify_vl805_reset);
>> BCM2835_MBOX_INIT_TAG(&msg_notify_vl805_reset->dev_addr,
>>
prev parent reply other threads:[~2021-09-17 8:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20210917081954eucas1p21f21f427d33607535b34389885a85fbc@eucas1p2.samsung.com>
2021-09-17 8:19 ` [PATCH] arm: rpi: perform XHCI firmware upload only once Marek Szyprowski
2021-09-17 8:40 ` nicolas saenz julienne
2021-09-17 8:42 ` Matthias Brugger
2021-09-17 8:44 ` Matthias Brugger [this message]
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=e30e2c3b-6724-d024-e2f2-3b31bf99fc19@suse.com \
--to=mbrugger@suse.com \
--cc=b.zolnierkie@samsung.com \
--cc=jh80.chung@samsung.com \
--cc=m.szyprowski@samsung.com \
--cc=nsaenz@kernel.org \
--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