RE: [PATCH v11 7/7] ele_common.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ran "b4 send --reflect"
But it sent to all.
Please ignore.

-----Original Message-----
From: Pankaj Gupta
Sent: Monday, January 20, 2025 2:46 PM
To: Jonathan Corbet <corbet@xxxxxxx>; Rob Herring <robh@xxxxxxxxxx>; Krzysztof 
Kozlowski <krzk+dt@xxxxxxxxxx>; Conor Dooley <conor+dt@xxxxxxxxxx>; Shawn Guo 
<shawnguo@xxxxxxxxxx>; Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>; Pengutronix 
Kernel Team <kernel@xxxxxxxxxxxxxx>; Fabio Estevam <festevam@xxxxxxxxx>; 
Pankaj Gupta <pankaj.gupta@xxxxxxx>
Cc: linux-doc@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; 
devicetree@xxxxxxxxxxxxxxx; imx@xxxxxxxxxxxxxxx; 
linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
Subject: [PATCH v11 7/7] ele_common.c

Signed-off-by: Pankaj Gupta <pankaj.gupta@xxxxxxx>
---
 drivers/firmware/imx/ele_common.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/firmware/imx/ele_common.c 
b/drivers/firmware/imx/ele_common.c
index acabbccf3e36..2e14aec3f2e7 100644
--- a/drivers/firmware/imx/ele_common.c
+++ b/drivers/firmware/imx/ele_common.c
@@ -6,6 +6,8 @@
 #include "ele_base_msg.h"
 #include "ele_common.h"

+#define SE_RCV_MSG_TIMEOUT	120000
+
 u32 se_add_msg_crc(u32 *msg, u32 msg_len)  {
 	u32 nb_words = msg_len / (u32)sizeof(u32); @@ -43,7 +45,7 @@ int 
ele_msg_rcv(struct se_if_device_ctx *dev_ctx,
 			/* FW must send the message response to application in a finite
 			 * time.
 			 */
-			wait = msecs_to_jiffies(10000);
+			wait = msecs_to_jiffies(SE_RCV_MSG_TIMEOUT);
 			err = wait_for_completion_interruptible_timeout(&se_clbk_hdl->done, wait);
 		}
 		if (err == -ERESTARTSYS) {
@@ -304,7 +306,8 @@ int se_save_imem_state(struct se_if_priv *priv, struct 
se_imem_buf *imem)
 			 "Exported %d bytes of encrypted IMEM\n",
 			 ret);

-	return ret;
+	imem->size = ret;
+	return ret > 0 ? 0 : -1;
 }

 int se_restore_imem_state(struct se_if_priv *priv, struct se_imem_buf *imem)

--
2.34.1

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux