* [PATCH] at91: xload: Fix MCI instance selection for SAMA5D3
@ 2025-05-23 7:44 Alexander Shiyan
2025-05-26 13:46 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2025-05-23 7:44 UTC (permalink / raw)
To: barebox; +Cc: Alexander Shiyan
Use the result of sama5_bootsource_instance(r4) instead of raw r4
to determine the MCI instance index.
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
arch/arm/mach-at91/xload.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-at91/xload.c b/arch/arm/mach-at91/xload.c
index 709bf05487..fd3878269e 100644
--- a/arch/arm/mach-at91/xload.c
+++ b/arch/arm/mach-at91/xload.c
@@ -218,7 +218,7 @@ void __noreturn sama5d3_atmci_start_image(u32 r4, unsigned int clock,
if (ret > ARRAY_SIZE(sama5d3_mci_instances) - 1)
panic("Couldn't determine boot MCI instance\n");
- instance = &sama5d3_mci_instances[r4];
+ instance = &sama5d3_mci_instances[ret];
sama5d3_pmc_enable_periph_clock(SAMA5D3_ID_PIOD);
for (pin = instance->pins; *pin >= 0; pin++) {
--
2.39.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] at91: xload: Fix MCI instance selection for SAMA5D3
2025-05-23 7:44 [PATCH] at91: xload: Fix MCI instance selection for SAMA5D3 Alexander Shiyan
@ 2025-05-26 13:46 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-05-26 13:46 UTC (permalink / raw)
To: barebox, Alexander Shiyan
On Fri, 23 May 2025 10:44:19 +0300, Alexander Shiyan wrote:
> Use the result of sama5_bootsource_instance(r4) instead of raw r4
> to determine the MCI instance index.
>
>
Applied, thanks!
[1/1] at91: xload: Fix MCI instance selection for SAMA5D3
https://git.pengutronix.de/cgit/barebox/commit/?id=50f879245235 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-26 13:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-23 7:44 [PATCH] at91: xload: Fix MCI instance selection for SAMA5D3 Alexander Shiyan
2025-05-26 13:46 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox