arm: armv8: remove redundant definition of mmu_status
authorAnshul Dalal <anshuld@ti.com>
Tue, 16 Sep 2025 11:22:05 +0000 (16:52 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 3 Oct 2025 21:13:58 +0000 (15:13 -0600)
commit8fd3768ca1683b45aeb5662094de6bcffdb7735b
tree940211ff77ca44e7cb9c0261c15d63ce22ed7313
parente589d5822cac10915ec04e8d9044d2460aec8924
arm: armv8: remove redundant definition of mmu_status

mmu_status is used in io memcpy functions to prevent accesses to non
8-byte aligned addresses when the mmu is disabled. Though there is a
redundant definition enabled when icaches is turned off by setting
SYS_ICACHE_OFF.

This patch removes the redundant definition, allowing mmu_status to
properly report the status regardless of config settings. This shouldn't
be a problem since access to non 8-byte aligned data can be done
irrespective of icache state.

Fixes: 268f6ac1f95c ("arm64: Update memcpy_{from, to}io() helpers")

Signed-off-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
arch/arm/cpu/armv8/cache_v8.c