Skip to content

Commit f520fab

Browse files
lumagRussell King (Oracle)
authored andcommitted
ARM: 9440/1: cacheinfo fix format field mask
Fix C&P error left unnoticed during the reviews. The FORMAT field spans over bits 29-31, not 24-27 of the CTR register. Closes: https://lore.kernel.org/linux-arm-msm/[email protected]/ Fixes: a9ff944 ("ARM: 9433/2: implement cacheinfo support") Reported-by: Marek Szyprowski <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent a9ff944 commit f520fab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/kernel/cacheinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#define MAX_CACHE_LEVEL 7 /* Max 7 level supported */
2525

26-
#define CTR_FORMAT_MASK GENMASK(27, 24)
26+
#define CTR_FORMAT_MASK GENMASK(31, 29)
2727
#define CTR_FORMAT_ARMV6 0
2828
#define CTR_FORMAT_ARMV7 4
2929
#define CTR_CWG_MASK GENMASK(27, 24)

0 commit comments

Comments
 (0)