mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: i.MX8MP: skov: fix variant detection on boards without state
@ 2024-05-15 11:20 Ahmad Fatoum
  2024-05-15 11:20 ` [PATCH 2/2] ARM: i.MX8MP: skov: update timing parameters for Samsung RAM Ahmad Fatoum
  2024-05-16  6:07 ` [PATCH 1/2] ARM: i.MX8MP: skov: fix variant detection on boards without state Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2024-05-15 11:20 UTC (permalink / raw)
  To: barebox; +Cc: san, Oleksij Rempel, Ahmad Fatoum

From: Soren Andersen <san@skov.com>

If barebox booted a board without state partition on the eMMC it did not set a
refined compatible at all resulting in a failure to boot into Linux userspace.

Instead just default to the LVDS flavor of the board variant which at least
leads to a working Linux userspace.

Signed-off-by: Soren Andersen <san@skov.com>
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/boards/skov-imx8mp/board.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/arm/boards/skov-imx8mp/board.c b/arch/arm/boards/skov-imx8mp/board.c
index 3cb7a8752a27..ce8d154a7355 100644
--- a/arch/arm/boards/skov-imx8mp/board.c
+++ b/arch/arm/boards/skov-imx8mp/board.c
@@ -186,10 +186,7 @@ static int skov_imx8mp_init_variant(struct skov_imx8mp_priv *priv)
 
 	if (variant->flags & SKOV_IMX8MP_HAS_HDMI) {
 		ret = skov_imx8mp_get_hdmi(dev);
-		if (ret < 0)
-			return ret;
-
-		if (ret)
+		if (ret == 1)
 			compatible = variant->dts_compatible_hdmi;
 		else
 			compatible = variant->dts_compatible;
-- 
2.39.2




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-16  6:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-15 11:20 [PATCH 1/2] ARM: i.MX8MP: skov: fix variant detection on boards without state Ahmad Fatoum
2024-05-15 11:20 ` [PATCH 2/2] ARM: i.MX8MP: skov: update timing parameters for Samsung RAM Ahmad Fatoum
2024-05-16  6:07 ` [PATCH 1/2] ARM: i.MX8MP: skov: fix variant detection on boards without state Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox