linux/drivers/soc/aspeed
Potin Lai 537e79b726 soc: aspeed: socinfo: Mask table entries for accurate SoC ID matching
[ Upstream commit 7ec1bd3d9b ]

The siliconid_to_name() function currently masks the input silicon ID
with 0xff00ffff, but compares it against unmasked table entries. This
causes matching to fail if the table entries contain non-zero values in
the bits covered by the mask (bits 16-23).

Update the logic to apply the 0xff00ffff mask to the table entries
during comparison. This ensures that only the relevant model and
revision bits are considered, providing a consistent match across
different manufacturing batches.

[arj: Add Fixes: tag, fix 'soninfo' typo, clarify function reference]

Fixes: e0218dca57 ("soc: aspeed: Add soc info driver")
Signed-off-by: Potin Lai <potin.lai.pt@gmail.com>
Link: https://patch.msgid.link/20260122-soc_aspeed_name_fix-v1-1-33a847f2581c@gmail.com
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-06-01 17:35:01 +02:00
..
aspeed-lpc-ctrl.c soc: aspeed: lpc-ctrl: Block error printing on probe defer cases 2022-02-23 12:03:19 +01:00
aspeed-lpc-snoop.c soc: aspeed: lpc-snoop: Don't disable channels that aren't enabled 2025-08-28 16:24:00 +02:00
aspeed-p2a-ctrl.c soc: aspeed: p2a-ctrl: Fix boundary check for mmap 2021-08-17 18:00:44 +09:30
aspeed-socinfo.c soc: aspeed: socinfo: Mask table entries for accurate SoC ID matching 2026-06-01 17:35:01 +02:00
Kconfig soc: aspeed: Enable drivers with ARCH_ASPEED 2020-11-19 23:01:36 +10:30
Makefile soc: aspeed: Add soc info driver 2020-09-25 10:14:06 +09:30