[PATCH] board: siemens: iot2050: Fix M.2 detection

Tom Rini trini at konsulko.com
Sat Oct 28 15:26:58 CEST 2023


On Tue, Oct 17, 2023 at 07:20:14AM +0200, Jan Kiszka wrote:

> From: Jan Kiszka <jan.kiszka at siemens.com>
> 
> The "simpler" the logic, the higher the probability to not test and get
> things wrong, again: The absence of a "-PG2" suffix is not sufficient to
> derive that we are on PG1. There is also "IOT2050-ADVANCED-M2".
> 
> Finally fix that by exactly matching against the two PG1 device names.
> 
> While changing this, we can also drop the not really needed check for
> !board_is_sr1 in board_is_m2 and call the boards by their names
> ("board_is_pg1").
> 
> Reported-and-tested-by: Bao Cheng Su <baocheng.su at siemens.com>
> Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231028/7ac45c58/attachment.sig>


More information about the U-Boot mailing list