From: srini@kernel.org
To: gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org,
Zhengping Zhang <zhengping.zhang@airoha.com>,
stable@vger.kernel.org, Srinivas Kandagatla <srini@kernel.org>
Subject: [PATCH 07/10] nvmem: airoha-smc-efuses: Fix the SMC function ID for eFuse read
Date: Tue, 1 Dec 2026 23:26:54 +0000 [thread overview]
Message-ID: <20261201232657.537736-8-srini@kernel.org> (raw)
In-Reply-To: <20261201232657.537736-1-srini@kernel.org>
From: Zhengping Zhang <zhengping.zhang@airoha.com>
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>
Cc: stable@vger.kernel.org
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
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 f43c8c4c30ce..7ee8123490d0 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.53.0
next prev parent reply other threads:[~2026-12-01 23:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 23:26 [PATCH 00/10] nvmem: fixes for v7.4 srini
2026-12-01 23:26 ` [PATCH 01/10] nvmem: layouts: onie-tlv: check both field header and value bounds srini
2026-12-01 23:26 ` [PATCH 02/10] nvmem: core: validate DT cell bits before allocating the name srini
2026-12-01 23:26 ` [PATCH 03/10] nvmem: retain the provider node until device release srini
2026-12-01 23:26 ` [PATCH 04/10] nvmem: drain keepout and cell post-processing accesses srini
2026-12-01 23:26 ` [PATCH 05/10] nvmem: exclude disconnected providers from callback admission srini
2026-12-01 23:26 ` [PATCH 06/10] nvmem: release write protection when the provider disconnects srini
2026-12-01 23:26 ` srini [this message]
2026-12-01 23:26 ` [PATCH 08/10] nvmem: imx-ocotp-scu: assign nvmem_cell_info::raw_len srini
2026-12-01 23:26 ` [PATCH 09/10] nvmem: core: reject reads and writes beyond the device size srini
2026-12-01 23:26 ` [PATCH 10/10] nvmem: sprd: fix out-of-bounds read in sprd_efuse_read() srini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201232657.537736-8-srini@kernel.org \
--to=srini@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=zhengping.zhang@airoha.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.