All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] firmware: stratix10-svc: fix FCS SMC call kernel-doc
@ 2026-06-23  9:10 genevieve.chan
  2026-06-29 14:02 ` Dinh Nguyen
  0 siblings, 1 reply; 3+ messages in thread
From: genevieve.chan @ 2026-06-23  9:10 UTC (permalink / raw)
  To: Dinh Nguyen, linux-kernel; +Cc: Tze Yee Ng, Adrian Ng Ho Yin, Nazim Amirul

From: Genevieve Chan <genevieve.chan@altera.com>

Correct the kernel-doc for INTEL_SIP_SMC_FCS_SEND_CERTIFICATE to
describe an async call instead of sync, and fix incorrect return
status macro names
(INTEL_SIP_SMC_FCS_REJECTED -> INTEL_SIP_SMC_REJECTED).

For INTEL_SIP_SMC_FCS_GET_PROVISION_DATA, align the documented
return status macros with the standard values
(INTEL_SIP_SMC_STATUS_ERROR and INTEL_SIP_SMC_STATUS_REJECTED)
and document the full async return register usage in a1-a3:
mailbox error code, physical address of the fuse/key hash structure,
and structure size.

Signed-off-by: Genevieve Chan <genevieve.chan@altera.com>
---
 include/linux/firmware/intel/stratix10-smc.h | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/include/linux/firmware/intel/stratix10-smc.h b/include/linux/firmware/intel/stratix10-smc.h
index 9116512169dc..2c603a24967f 100644
--- a/include/linux/firmware/intel/stratix10-smc.h
+++ b/include/linux/firmware/intel/stratix10-smc.h
@@ -606,7 +606,7 @@ INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_FPGA_CONFIG_COMPLETED_WRITE)
 
 /**
  * Request INTEL_SIP_SMC_FUNCID_FCS_SEND_CERTIFICATE
- * Sync call to send a signed certificate
+ * Async call to send a signed certificate
  *
  * Call register usage:
  * a0 INTEL_SIP_SMC_FCS_SEND_CERTIFICATE
@@ -615,7 +615,7 @@ INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_FPGA_CONFIG_COMPLETED_WRITE)
  * a3-a7 not used
  *
  * Return status:
- * a0 INTEL_SIP_SMC_STATUS_OK or INTEL_SIP_SMC_FCS_REJECTED
+ * a0 INTEL_SIP_SMC_STATUS_OK or INTEL_SIP_SMC_REJECTED
  * a1-a3 not used
  */
 #define INTEL_SIP_SMC_FUNCID_FCS_SEND_CERTIFICATE 93
@@ -631,9 +631,11 @@ INTEL_SIP_SMC_FAST_CALL_VAL(INTEL_SIP_SMC_FUNCID_FPGA_CONFIG_COMPLETED_WRITE)
  * a1-a7 not used
  *
  * Return status:
- * a0 INTEL_SIP_SMC_STATUS_OK, INTEL_SIP_SMC_FCS_ERROR or
- *      INTEL_SIP_SMC_FCS_REJECTED
- * a1-a3 not used
+ * a0 INTEL_SIP_SMC_STATUS_OK, INTEL_SIP_SMC_STATUS_ERROR or
+ *	INTEL_SIP_SMC_STATUS_REJECTED
+ * a1 mailbox error if a0 is INTEL_SIP_SMC_STATUS_ERROR
+ * a2 physical address for the structure of fuse and key hashes
+ * a3 the size of structure
  *
  */
 #define INTEL_SIP_SMC_FUNCID_FCS_GET_PROVISION_DATA 94
-- 
2.43.7


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

end of thread, other threads:[~2026-07-02  8:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23  9:10 [PATCH] firmware: stratix10-svc: fix FCS SMC call kernel-doc genevieve.chan
2026-06-29 14:02 ` Dinh Nguyen
2026-07-02  8:31   ` Chan, Genevieve

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.