public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Sean Anderson <seanga2@gmail.com>
To: Ming Liu <liu.ming50@gmail.com>
Cc: u-boot@lists.denx.de, Sergio Prado <sergio.prado@toradex.com>,
	Max Krummenacher <max.krummenacher@toradex.com>,
	Marcel Ziswiler <marcel.ziswiler@toradex.com>
Subject: Re: [[PATCH] colibri_imx6: add board_fit_config_name_match to support FIT in SPL
Date: Tue, 1 Jun 2021 23:03:37 -0400	[thread overview]
Message-ID: <eb5458d4-c2ce-b0d2-80f5-779506f4a79c@gmail.com> (raw)
In-Reply-To: <CALatG=6KfHmbv8iNSmznEDc69f7vm0v=mH__i=yALUMOPBR53g@mail.gmail.com>

On 6/1/21 11:58 AM, Ming Liu wrote:
> Hi, Sean:
> 
> Thanks for the comments, please see my answers as follows:
> 
>  > Please use an errno.
> 
> Seems all other board are using '0' and '-1' as return value of board_fit_config_name_match, shouldn't we keep consistent with them?

*shrug*

We return an int, so why not use an error code? Otherwise, we might as
well return bool.

> 
>  > Do you need to match "imx6-colibri", or could you use the default config?
> 
> I think so since imx6-colibri.its is the only present DTS file for this board.
> 
> //Ming Liu
> 

So does this FIT only contain one config? I ask because if you just
need the default config you can use the weak definition in
common/common_fit.c.

--Sean

> 
> 
> Sean Anderson <seanga2@gmail.com <mailto:seanga2@gmail.com>> 於 2021年5月31日 週一 下午4:36寫道:
> 
>     On 5/31/21 3:06 AM, liu.ming50@gmail.com <mailto:liu.ming50@gmail.com> wrote:
>      > From: Ming Liu <liu.ming50@gmail.com <mailto:liu.ming50@gmail.com>>
>      >
>      > Only one dtb is currently supported, so match with imx6-colibri.
>      >
>      > Signed-off-by: Ming Liu <liu.ming50@gmail.com <mailto:liu.ming50@gmail.com>>
>      > ---
>      >   board/toradex/colibri_imx6/colibri_imx6.c | 10 ++++++++++
>      >   1 file changed, 10 insertions(+)
>      >
>      > diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c
>      > index c0e7754469..587d92a8e9 100644
>      > --- a/board/toradex/colibri_imx6/colibri_imx6.c
>      > +++ b/board/toradex/colibri_imx6/colibri_imx6.c
>      > @@ -1081,6 +1081,16 @@ void board_init_f(ulong dummy)
>      >       board_init_r(NULL, 0);
>      >   }
>      >
>      > +#ifdef CONFIG_SPL_LOAD_FIT
>      > +int board_fit_config_name_match(const char *name)
>      > +{
>      > +     if (!strcmp(name, "imx6-colibri"))
>      > +             return 0;
>      > +
>      > +     return -1;
> 
>     Please use an errno.
> 
>      > +}
>      > +#endif
>      > +
>      >   void reset_cpu(void)
>      >   {
>      >   }
>      >
> 
>     Do you need to match "imx6-colibri", or could you use the default config?
> 
>     --Sean
> 



  reply	other threads:[~2021-06-02  3:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31  7:06 [[PATCH] colibri_imx6: add board_fit_config_name_match to support FIT in SPL liu.ming50
2021-05-31 14:09 ` Marcel Ziswiler
2021-05-31 14:36 ` Sean Anderson
2021-06-01 15:58   ` Ming Liu
2021-06-02  3:03     ` Sean Anderson [this message]
2021-06-01 16:00   ` Ming Liu
  -- strict thread matches above, loose matches on Subject: below --
2021-05-30 10:45 liu.ming50

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=eb5458d4-c2ce-b0d2-80f5-779506f4a79c@gmail.com \
    --to=seanga2@gmail.com \
    --cc=liu.ming50@gmail.com \
    --cc=marcel.ziswiler@toradex.com \
    --cc=max.krummenacher@toradex.com \
    --cc=sergio.prado@toradex.com \
    --cc=u-boot@lists.denx.de \
    /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