diff mbox series

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

Message ID aa0e6927-e35c-48b7-b3fb-785059f48910@siemens.com
State Accepted
Commit b362ceb4896faf37130686357df7e821fe96421d
Delegated to: Tom Rini
Headers show
Series board: siemens: iot2050: Fix logical bug in PG1/PG2 detection | expand

Commit Message

Jan Kiszka Oct. 5, 2023, 4:37 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

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")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 board/siemens/iot2050/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Oct. 11, 2023, 6:36 p.m. UTC | #1
On Thu, Oct 05, 2023 at 06:37:25AM +0200, Jan Kiszka wrote:

> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> 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")
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/board/siemens/iot2050/board.c b/board/siemens/iot2050/board.c
index 15f5310c7bf..e35e55fb5de 100644
--- a/board/siemens/iot2050/board.c
+++ b/board/siemens/iot2050/board.c
@@ -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)