]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
ARM: 9440/1: cacheinfo fix format field mask
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 17 Jan 2025 07:09:09 +0000 (08:09 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 22 Jan 2025 20:55:01 +0000 (20:55 +0000)
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: a9ff94477836 ("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>
arch/arm/kernel/cacheinfo.c

index a8eabcaa18d8941ce31ad267ce0d369b8d53886a..e1469b6417804d2802e847031950cb99b7b4e1d2 100644 (file)
@@ -23,7 +23,7 @@
 
 #define MAX_CACHE_LEVEL                        7       /* Max 7 level supported */
 
-#define CTR_FORMAT_MASK        GENMASK(27, 24)
+#define CTR_FORMAT_MASK        GENMASK(31, 29)
 #define CTR_FORMAT_ARMV6 0
 #define CTR_FORMAT_ARMV7 4
 #define CTR_CWG_MASK   GENMASK(27, 24)