Skip to contentSkip to conversation

board: siemens: iot2050: Fix logical bug in PG1/PG2 detection

PATCH In review Jan Kiszka 2 participants 2 messages Oct 5, 2023 – Oct 11, 2023

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 board: siemens: iot2050: Fix logical bug in PG1/PG2 detection

From: Jan Kiszka <[email protected]>

This caused the wrong fdtfile to be set and was failing to apply M.2 settings.

Fixes badaa1f6a7a9 ("boards: siemens: iot2050: Unify PG1 and PG2/M.2 configurations again")
---
 board/siemens/iot2050/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/siemens/iot2050/board.c +1 -1
index 15f5310c7bf..e35e55fb5de 100644
@@ -160,7 +160,7 @@ static bool board_is_sr1(void)
 	struct iot2050_info *info = IOT2050_INFO_DATA;
 
 	return info->magic == IOT2050_INFO_MAGIC &&
-		strstr((char *)info->name, "-PG2") != NULL;
+		strstr((char *)info->name, "-PG2") == NULL;
 }
 
 static bool board_is_m2(void)
Signature · 1 line
2.35.3
#1 lore raw
Quoted 7 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

This caused the wrong fdtfile to be set and was failing to apply M.2 settings.

Fixes badaa1f6a7a9 ("boards: siemens: iot2050: Unify PG1 and PG2/M.2 configurations again")

Applied to u-boot/master, thanks!

Signature · 1 line
Tom