mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] nvmem: airoha-smc-efuses: Fix the SMC function ID for eFuse read
@ 2026-10-30  2:46 Zhengping Zhang
  2026-11-27 11:29 ` Srinivas Kandagatla
  0 siblings, 1 reply; 2+ messages in thread
From: Zhengping Zhang @ 2026-10-30  2:46 UTC (permalink / raw)
  To: srini; +Cc: gregkh, ansuelsmth, linux-kernel, lei.dong, Zhengping Zhang

The Airoha firmware uses SMC function ID 0x82000005 for the eFuse
word-read service. The driver currently uses 0x82000001, which does
not select this service and prevents eFuse read from working
correctly.

Use the correct function ID and rename the constant to
AIROHA_SMC_EFUSE_READ_WORD_FID to make the selected operation explicit.

Fixes: b7846af2e6ca ("nvmem: airoha: Add support for SMC eFUSE")

Signed-off-by: Zhengping Zhang <zhengping.zhang@airoha.com>
---
 drivers/nvmem/airoha-smc-efuses.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/nvmem/airoha-smc-efuses.c b/drivers/nvmem/airoha-smc-efuses.c
index e56a99f4aa1f9..7988b2520ffd0 100644
--- a/drivers/nvmem/airoha-smc-efuses.c
+++ b/drivers/nvmem/airoha-smc-efuses.c
@@ -11,7 +11,7 @@
 #include <linux/of.h>
 #include <linux/regmap.h>
 
-#define AIROHA_SMC_EFUSE_FID		0x82000001
+#define AIROHA_SMC_EFUSE_READ_WORD_FID	0x82000005
 #define AIROHA_SMC_EFUSE_SUB_ID_READ	0x44414552
 
 #define AIROHA_EFUSE_CELLS		64
@@ -35,7 +35,7 @@ static int airoha_efuse_reg_read(void *context, unsigned int offset,
 	struct airoha_efuse_bank_priv *priv = context;
 	struct arm_smccc_res res;
 
-	arm_smccc_1_1_invoke(AIROHA_SMC_EFUSE_FID,
+	arm_smccc_1_1_invoke(AIROHA_SMC_EFUSE_READ_WORD_FID,
 			     AIROHA_SMC_EFUSE_SUB_ID_READ,
 			     priv->bank_index, offset, 0, 0, 0, 0, &res);
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-27 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30  2:46 [PATCH] nvmem: airoha-smc-efuses: Fix the SMC function ID for eFuse read Zhengping Zhang
2026-11-27 11:29 ` Srinivas Kandagatla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®