Re: [PATCH] nvmem: airoha: add ARM64 dependency

From: Christian Marangi

Date: Fri Jun 12 2026 - 04:14:04 EST


On Thu, Jun 11, 2026 at 02:58:00PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The driver already depends on HAVE_ARM_SMCCC and ARCH_AIROHA, but both
> are available for 32-bit and 64-bit targets. However, the smccc invocation
> fails on thumb2 builds with clang:
>
> drivers/nvmem/airoha-smc-efuses.c:38:2: error: write to reserved register 'R7'
> 38 | arm_smccc_1_1_invoke(AIROHA_SMC_EFUSE_FID,
> | ^
> note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
> arch/arm/include/asm/opcodes.h:215:2: note: expanded from macro '__inst_arm_thumb32'
> 215 | __inst_thumb32(thumb_opcode)
> | ^
>
> Since the driver is only used on the 64-bit an7581 soc, avoid this
> problem with a stricter dependency.
>
> Fixes: 25e001fcc1e6 ("nvmem: airoha: Add support for SMC eFUSE")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Reviewed-by: Christian Marangi <ansuelsmth@xxxxxxxxx>

--
Ansuel