* [PATCH] ARM: i.MX: ele: fix forward_lifecycle
@ 2024-10-31 11:12 Sascha Hauer
2024-11-04 12:01 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2024-10-31 11:12 UTC (permalink / raw)
To: Barebox List
enum ele_lifecycle describes the current lifecycle values as read from
the fuses. The ELE_FWD_LIFECYCLE_UP_REQ command takes different values
though. Use 0x8 to go to OEM closed status. The value is taken from
U-Boot-2025.01-rc1.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/mach-imx/ele.c | 2 +-
drivers/hab/hab.c | 2 +-
include/mach/imx/ele.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-imx/ele.c b/arch/arm/mach-imx/ele.c
index 48e8749b31..c209f53de4 100644
--- a/arch/arm/mach-imx/ele.c
+++ b/arch/arm/mach-imx/ele.c
@@ -370,7 +370,7 @@ int ele_write_shadow_fuse(u16 fuse_id, u32 fuse_val, u32 *response)
*
* Return: 0 when the ELE call succeeds, negative error code otherwise
*/
-int ele_forward_lifecycle(enum ele_lifecycle lc, u32 *response)
+int ele_forward_lifecycle(u32 lc, u32 *response)
{
struct ele_msg msg;
int ret;
diff --git a/drivers/hab/hab.c b/drivers/hab/hab.c
index 800f26f26c..f684e9f1cc 100644
--- a/drivers/hab/hab.c
+++ b/drivers/hab/hab.c
@@ -331,7 +331,7 @@ static int imx_ahab_lockdown_device(unsigned flags)
return -EPERM;
}
- ret = ele_forward_lifecycle(ELE_LIFECYCLE_OEM_CLOSED, NULL);
+ ret = ele_forward_lifecycle(0x8, NULL);
if (ret) {
pr_err("failed to forward lifecycle to OEM closed: %pe\n", ERR_PTR(ret));
return ret;
diff --git a/include/mach/imx/ele.h b/include/mach/imx/ele.h
index 7ba8afde20..e7226e6576 100644
--- a/include/mach/imx/ele.h
+++ b/include/mach/imx/ele.h
@@ -158,7 +158,7 @@ int ele_get_info(struct ele_get_info_data *info);
int ele_write_fuse(u16 fuse_id, u32 fuse_val, bool lock, u32 *response);
int ele_authenticate_container(unsigned long addr, u32 *response);
int ele_release_container(u32 *response);
-int ele_forward_lifecycle(enum ele_lifecycle lc, u32 *response);
+int ele_forward_lifecycle(u32 lc, u32 *response);
int ele_print_events(void);
int imx93_ele_load_fw(void *bl33);
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: i.MX: ele: fix forward_lifecycle
2024-10-31 11:12 [PATCH] ARM: i.MX: ele: fix forward_lifecycle Sascha Hauer
@ 2024-11-04 12:01 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-11-04 12:01 UTC (permalink / raw)
To: Barebox List, Sascha Hauer
On Thu, 31 Oct 2024 12:12:34 +0100, Sascha Hauer wrote:
> enum ele_lifecycle describes the current lifecycle values as read from
> the fuses. The ELE_FWD_LIFECYCLE_UP_REQ command takes different values
> though. Use 0x8 to go to OEM closed status. The value is taken from
> U-Boot-2025.01-rc1.
>
>
Applied, thanks!
[1/1] ARM: i.MX: ele: fix forward_lifecycle
https://git.pengutronix.de/cgit/barebox/commit/?id=822f814ffd12 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-04 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-31 11:12 [PATCH] ARM: i.MX: ele: fix forward_lifecycle Sascha Hauer
2024-11-04 12:01 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox