diff mbox series

[1/3] firmware: psci: enable DM_FLAG_PRE_RELOC

Message ID 20230406102319.17898-1-peng.fan@oss.nxp.com
State Accepted
Commit 1bd790bc4bb025423ca2edac8f7694787d0a2a81
Delegated to: Tom Rini
Headers show
Series [1/3] firmware: psci: enable DM_FLAG_PRE_RELOC | expand

Commit Message

Peng Fan (OSS) April 6, 2023, 10:23 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>

It is possible that cpu core may reset before relocation with PSCI reset

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/firmware/psci.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Peng Fan April 10, 2023, 12:39 p.m. UTC | #1
Tom, Simon,

Sorry for ping early, I have other patches pending on this patchset, just
wonder whether you are fine with this patchset.

Thanks,
Peng.
> Subject: [PATCH 1/3] firmware: psci: enable DM_FLAG_PRE_RELOC
> 
> From: Peng Fan <peng.fan@nxp.com>
> 
> It is possible that cpu core may reset before relocation with PSCI reset
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  drivers/firmware/psci.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index
> ef3e9836461..c6b9efab41c 100644
> --- a/drivers/firmware/psci.c
> +++ b/drivers/firmware/psci.c
> @@ -319,4 +319,5 @@ U_BOOT_DRIVER(psci) = {  #ifdef
> CONFIG_ARM_SMCCC_FEATURES
>  	.plat_auto = sizeof(struct psci_plat_data),  #endif
> +	.flags = DM_FLAG_PRE_RELOC,
>  };
> --
> 2.36.0
Tom Rini April 10, 2023, 2:24 p.m. UTC | #2
On Mon, Apr 10, 2023 at 12:39:07PM +0000, Peng Fan wrote:
> Tom, Simon,
> 
> Sorry for ping early, I have other patches pending on this patchset, just
> wonder whether you are fine with this patchset.

This is fine I think.

> 
> Thanks,
> Peng.
> > Subject: [PATCH 1/3] firmware: psci: enable DM_FLAG_PRE_RELOC
> > 
> > From: Peng Fan <peng.fan@nxp.com>
> > 
> > It is possible that cpu core may reset before relocation with PSCI reset
> > 
> > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > ---
> >  drivers/firmware/psci.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index
> > ef3e9836461..c6b9efab41c 100644
> > --- a/drivers/firmware/psci.c
> > +++ b/drivers/firmware/psci.c
> > @@ -319,4 +319,5 @@ U_BOOT_DRIVER(psci) = {  #ifdef
> > CONFIG_ARM_SMCCC_FEATURES
> >  	.plat_auto = sizeof(struct psci_plat_data),  #endif
> > +	.flags = DM_FLAG_PRE_RELOC,
> >  };
> > --
> > 2.36.0
>
Tom Rini April 26, 2023, 12:31 p.m. UTC | #3
On Thu, Apr 06, 2023 at 06:23:17PM +0800, Peng Fan (OSS) wrote:

> From: Peng Fan <peng.fan@nxp.com>
> 
> It is possible that cpu core may reset before relocation with PSCI reset
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
index ef3e9836461..c6b9efab41c 100644
--- a/drivers/firmware/psci.c
+++ b/drivers/firmware/psci.c
@@ -319,4 +319,5 @@  U_BOOT_DRIVER(psci) = {
 #ifdef CONFIG_ARM_SMCCC_FEATURES
 	.plat_auto = sizeof(struct psci_plat_data),
 #endif
+	.flags = DM_FLAG_PRE_RELOC,
 };