From: Marek Szyprowski Date: Thu, 10 Sep 2020 08:31:09 +0000 (+0200) Subject: arm: rpi: perform XHCI firmware upload only once X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9c86dc74a3824d2e5fc6f71e32fe84b9e5509f3;p=platform%2Fkernel%2Fu-boot.git arm: rpi: perform XHCI firmware upload only once 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 Change-Id: I05e40e3f7e3701da06d0e3c334fb9862409a3f9a --- 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,