All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] arm: imx9: Correct imx9_probe_mu prototype
@ 2024-04-01  1:41 Ye Li
  2024-04-01  1:41 ` [PATCH v2 2/2] arm: imx9: Call imx9_probe_mu for DM post in board_r Ye Li
  2024-04-05 16:49 ` [PATCH v2 1/2] arm: imx9: Correct imx9_probe_mu prototype Fabio Estevam
  0 siblings, 2 replies; 3+ messages in thread
From: Ye Li @ 2024-04-01  1:41 UTC (permalink / raw
  To: sbabic, u-boot, festevam, peng.fan; +Cc: uboot-imx, ye.li

Since the event callback imx9_probe_mu is re-defined, update
its prototype.

Signed-off-by: Ye Li <ye.li@nxp.com>
---
Changes in v2:
 Fix imx93_var_som and phycore_imx93 as well

 arch/arm/include/asm/arch-imx9/mu.h | 2 +-
 board/freescale/imx93_evk/spl.c     | 2 +-
 board/phytec/phycore_imx93/spl.c    | 2 +-
 board/variscite/imx93_var_som/spl.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/include/asm/arch-imx9/mu.h b/arch/arm/include/asm/arch-imx9/mu.h
index b860499..649b8a6 100644
--- a/arch/arm/include/asm/arch-imx9/mu.h
+++ b/arch/arm/include/asm/arch-imx9/mu.h
@@ -8,6 +8,6 @@
 
 #include <event.h>
 
-int imx9_probe_mu(void *ctx, struct event *event);
+int imx9_probe_mu(void);
 
 #endif
diff --git a/board/freescale/imx93_evk/spl.c b/board/freescale/imx93_evk/spl.c
index 2fd5559..7331a20 100644
--- a/board/freescale/imx93_evk/spl.c
+++ b/board/freescale/imx93_evk/spl.c
@@ -116,7 +116,7 @@ void board_init_f(ulong dummy)
 
 	preloader_console_init();
 
-	ret = imx9_probe_mu(NULL, NULL);
+	ret = imx9_probe_mu();
 	if (ret) {
 		printf("Fail to init Sentinel API\n");
 	} else {
diff --git a/board/phytec/phycore_imx93/spl.c b/board/phytec/phycore_imx93/spl.c
index 16303fc..f03bfee 100644
--- a/board/phytec/phycore_imx93/spl.c
+++ b/board/phytec/phycore_imx93/spl.c
@@ -122,7 +122,7 @@ void board_init_f(ulong dummy)
 
 	preloader_console_init();
 
-	ret = imx9_probe_mu(NULL, NULL);
+	ret = imx9_probe_mu();
 	if (ret) {
 		printf("Fail to init ELE API\n");
 	} else {
diff --git a/board/variscite/imx93_var_som/spl.c b/board/variscite/imx93_var_som/spl.c
index 36e1721..71f346c 100644
--- a/board/variscite/imx93_var_som/spl.c
+++ b/board/variscite/imx93_var_som/spl.c
@@ -121,7 +121,7 @@ void board_init_f(ulong dummy)
 
 	preloader_console_init();
 
-	ret = imx9_probe_mu(NULL, NULL);
+	ret = imx9_probe_mu();
 	if (ret) {
 		printf("Fail to init ELE API\n");
 	} else {
-- 
2.7.4


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

* [PATCH v2 2/2] arm: imx9: Call imx9_probe_mu for DM post in board_r
  2024-04-01  1:41 [PATCH v2 1/2] arm: imx9: Correct imx9_probe_mu prototype Ye Li
@ 2024-04-01  1:41 ` Ye Li
  2024-04-05 16:49 ` [PATCH v2 1/2] arm: imx9: Correct imx9_probe_mu prototype Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: Ye Li @ 2024-04-01  1:41 UTC (permalink / raw
  To: sbabic, u-boot, festevam, peng.fan; +Cc: uboot-imx, ye.li

This event callback imx9_probe_mu needs to be called in board_r
as well, because many ELE APIs depending on this MU probed

Signed-off-by: Ye Li <ye.li@nxp.com>
---
No changes in v2

 arch/arm/mach-imx/imx9/soc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c
index f06339f..15e87b8 100644
--- a/arch/arm/mach-imx/imx9/soc.c
+++ b/arch/arm/mach-imx/imx9/soc.c
@@ -622,6 +622,7 @@ int imx9_probe_mu(void)
 	return 0;
 }
 EVENT_SPY_SIMPLE(EVT_DM_POST_INIT_F, imx9_probe_mu);
+EVENT_SPY_SIMPLE(EVT_DM_POST_INIT_R, imx9_probe_mu);
 
 int timer_init(void)
 {
-- 
2.7.4


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

* Re: [PATCH v2 1/2] arm: imx9: Correct imx9_probe_mu prototype
  2024-04-01  1:41 [PATCH v2 1/2] arm: imx9: Correct imx9_probe_mu prototype Ye Li
  2024-04-01  1:41 ` [PATCH v2 2/2] arm: imx9: Call imx9_probe_mu for DM post in board_r Ye Li
@ 2024-04-05 16:49 ` Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2024-04-05 16:49 UTC (permalink / raw
  To: Ye Li; +Cc: sbabic, u-boot, peng.fan, uboot-imx, ye.li

On Sun, Mar 31, 2024 at 10:41 PM Ye Li <ye.li@nxp.com> wrote:
>
> Since the event callback imx9_probe_mu is re-defined, update
> its prototype.
>
> Signed-off-by: Ye Li <ye.li@nxp.com>
> ---
> Changes in v2:
>  Fix imx93_var_som and phycore_imx93 as well

Applied both, thanks.

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

end of thread, other threads:[~2024-04-05 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01  1:41 [PATCH v2 1/2] arm: imx9: Correct imx9_probe_mu prototype Ye Li
2024-04-01  1:41 ` [PATCH v2 2/2] arm: imx9: Call imx9_probe_mu for DM post in board_r Ye Li
2024-04-05 16:49 ` [PATCH v2 1/2] arm: imx9: Correct imx9_probe_mu prototype Fabio Estevam

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.