WSL2-Linux-Kernel/drivers/pinctrl/samsung
Krzysztof Kozlowski fa0c10a5f3 pinctrl: samsung: use 'int' for register masks in Exynos
The Special Function Registers on all Exynos SoC, including ARM64, are
32-bit wide, so entire driver uses matching functions like readl() or
writel().  On 64-bit ARM using unsigned long for register masks:
1. makes little sense as immediately after bitwise operation it will be
   cast to 32-bit value when calling writel(),
2. is actually error-prone because it might promote other operands to
   64-bit.

Addresses-Coverity: Unintentional integer overflow
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Link: https://lore.kernel.org/r/20210408195029.69974-1-krzysztof.kozlowski@canonical.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2021-04-10 02:06:36 +02:00
..
Kconfig
Makefile
pinctrl-exynos-arm.c
pinctrl-exynos-arm64.c
pinctrl-exynos.c pinctrl: samsung: use 'int' for register masks in Exynos 2021-04-10 02:06:36 +02:00
pinctrl-exynos.h
pinctrl-s3c24xx.c
pinctrl-s3c64xx.c pinctrl: samsung: use raw_spinlock for s3c64xx 2021-01-27 09:12:12 +01:00
pinctrl-samsung.c
pinctrl-samsung.h