mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: has@pengutronix.de, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 1/2] ARM: i.MX8MP: tqma8mpxl: fix eMMC barebox update handler
Date: Mon, 29 Jul 2024 16:33:46 +0200	[thread overview]
Message-ID: <20240729143347.1566660-1-a.fatoum@pengutronix.de> (raw)

While the eMMC is indeed uSDHC3, the board's device tree aliases shuffle
around the order, so the eMMC is at mmc0 and the SD is at mmc1.

We thus need to follow suit in the board code as to register the correct
device with the eMMC barebox update handler.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/boards/tqma8mpxl/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boards/tqma8mpxl/board.c b/arch/arm/boards/tqma8mpxl/board.c
index 39d1bd24d497..16ba1eb1c61c 100644
--- a/arch/arm/boards/tqma8mpxl/board.c
+++ b/arch/arm/boards/tqma8mpxl/board.c
@@ -29,7 +29,7 @@ static int tqma8mpxl_probe(struct device *dev)
 	}
 
 	imx8m_bbu_internal_mmc_register_handler("SD", "/dev/mmc1.barebox", sd_bbu_flag);
-	imx8m_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc2", emmc_bbu_flag);
+	imx8m_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc0", emmc_bbu_flag);
 
 	return 0;
 }
-- 
2.39.2




             reply	other threads:[~2024-07-29 14:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-29 14:33 Ahmad Fatoum [this message]
2024-07-29 14:33 ` [PATCH 2/2] ARM: i.MX8MP: tqma8mpxl: match board code against SoM compatible Ahmad Fatoum
2024-07-30  7:53   ` (subset) " Sascha Hauer
2024-07-30  7:53 ` (subset) [PATCH 1/2] ARM: i.MX8MP: tqma8mpxl: fix eMMC barebox update handler Sascha Hauer

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=20240729143347.1566660-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=has@pengutronix.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