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/01515ea0-c6f0-479f-9da5-764d9ee79ed6@samsung.com/ Fixes: a9ff944 ("ARM: 9433/2: implement cacheinfo support") Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent a9ff944 commit f520fab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)