]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: samsung: exynos-pmu: add support for PMU_ALIVE non atomic registers
authorPeter Griffin <peter.griffin@linaro.org>
Tue, 2 Jul 2024 06:35:09 +0000 (08:35 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 9 Jul 2024 09:16:42 +0000 (11:16 +0200)
commit97c4264f62a73664a2934203346a3e04c109b8ec
tree3fa3d0e7c3cfb3202d801000c7896173dac3bc42
parent0b07feb910520b1391e2b7959156ee289a5909f2
soc: samsung: exynos-pmu: add support for PMU_ALIVE non atomic registers

Not all registers in PMU_ALIVE block support atomic set/clear operations.
GS101_SYSIP_DAT0 and GS101_SYSTEM_CONFIGURATION registers are two regs
where attempting atomic access fails.

As documentation on exactly which registers support atomic operations is
not forthcoming. We default to atomic access, unless the register is
explicitly added to the tensor_is_atomic() function. Update the comment
to reflect this as well.

Reviewed-by: Will McVicker <willmcvicker@google.com>
Tested-by: Will McVicker <willmcvicker@google.com>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20240628223506.1237523-4-peter.griffin@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240702063514.6215-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/samsung/exynos-pmu.c
include/linux/soc/samsung/exynos-regs-pmu.h