public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Max Krummenacher <max.oss.09@gmail.com>
To: Peng Fan <peng.fan@nxp.com>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	Max Krummenacher <max.krummenacher@toradex.com>,
	Fabio Estevam <festevam@gmail.com>,
	Igor Opaniuk <igor.opaniuk@foundries.io>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	dl-uboot-imx <uboot-imx@nxp.com>, Simon Glass <sjg@chromium.org>,
	Stefano Babic <sbabic@denx.de>, Tom Rini <trini@konsulko.com>,
	Ye Li <ye.li@nxp.com>
Subject: Re: [PATCH] imx: imx8: fix build when CONFIG_IMX_BOOTAUX is set
Date: Thu, 8 Aug 2024 12:02:10 +0200	[thread overview]
Message-ID: <ZrSXoq7CEEtFMu5G@toolbox> (raw)
In-Reply-To: <PAXPR04MB8459DAB001E8D22E23873CB488B92@PAXPR04MB8459.eurprd04.prod.outlook.com>

Hello Peng Fan
On Thu, Aug 08, 2024 at 03:16:54AM +0000, Peng Fan wrote:
> > Subject: [PATCH] imx: imx8: fix build when CONFIG_IMX_BOOTAUX is
> > set
> > 
> > From: Max Krummenacher <max.krummenacher@toradex.com>
> > 
> > Use correct function name.
> > 
> > Fixes: e8cd1f60d964 ("imx: imx8: bootaux: Add i.MX8 M4 boot
> > support")
> > Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
> > ---
> > 
> >  arch/arm/mach-imx/imx8/cpu.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-
> > imx/imx8/cpu.c index accba502e492..834aca82bcfd 100644
> > --- a/arch/arm/mach-imx/imx8/cpu.c
> > +++ b/arch/arm/mach-imx/imx8/cpu.c
> > @@ -258,14 +258,14 @@ int arch_auxiliary_core_up(u32 core_id,
> > ulong boot_private_data)
> >  			return -EIO;
> >  		}
> > 
> > -		if (!power_domain_lookup_name("audio_sai0", &pd))
> > {
> > +		if (!imx8_power_domain_lookup_name("audio_sai0",
> > &pd)) {
> 
> I think need to find a proper fix to this. This API is legacy API.

The current code does call a function which does not exist. Thus the
compile fails if enabling CONFIG_IMX_BOOTAUX for a i.MX 8X and likely
always did.
I think that would merrit fixing it now rather than waiting until the
more modern API is ported into U-Boot and the code using it changed to
the new API.

Alternatively I could remove the handling of the HiFi auxiliary core
from arch_auxiliary_core_up() and returning EINVAL if someone tried to
set that core up.

Regards
Max

> 
> Thanks
> Peng
> 
> 

  reply	other threads:[~2024-08-08 10:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07 13:39 [PATCH] imx: imx8: fix build when CONFIG_IMX_BOOTAUX is set max.oss.09
2024-08-08  3:16 ` Peng Fan
2024-08-08 10:02   ` Max Krummenacher [this message]
2024-08-13 16:26     ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZrSXoq7CEEtFMu5G@toolbox \
    --to=max.oss.09@gmail.com \
    --cc=festevam@gmail.com \
    --cc=igor.opaniuk@foundries.io \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=max.krummenacher@toradex.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    --cc=ye.li@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox