mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: Sascha Hauer <sha@pengutronix.de>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: Re: [RFC 1/8] ARM: OMAP: Rearranging EMIF4 definitions
Date: Tue, 7 Jun 2022 10:47:21 +0300	[thread overview]
Message-ID: <CAP1tNvQTD5QjJf18ChCBOJBc_FKG3TavyL_9ayXuJmfvY5HHxA@mail.gmail.com> (raw)
In-Reply-To: <20220607073841.GO1615@pengutronix.de>

вт, 7 июн. 2022 г. в 10:38, Sascha Hauer <sha@pengutronix.de>
> On Fri, Jun 03, 2022 at 02:25:33PM +0300, Alexander Shiyan wrote:
> > Currently we have three different definitions for EMIF management:
> > - Offsets
> > - Offsets relative to the base address
> > - Offsets in the structure
> >
> > The patch represents the first attempt to unify this.
> >
> > Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
> > ---
> >  arch/arm/boards/afi-gf/lowlevel.c             | 39 +++++++++---------
> >  arch/arm/mach-omap/am33xx_generic.c           | 41 +++++++++----------
> >  .../mach-omap/include/mach/am33xx-silicon.h   | 10 +----
> >  3 files changed, 42 insertions(+), 48 deletions(-)
>
> Looks all good and is a nice cleanup, so applied despite its RFC status.
>
> One thing I found in the context of this patch:
>
> >  static void board_config_emif_ddr(void)
> >  {
> > +     const void __iomem *emif4 = IOMEM(AM33XX_EMIF4_BASE);
> >       u32 i;
>
> [...]
>
> >
> >       for (i = 0; i < 5000; i++) {
> >
> >       }
>
> I wonder if this works. I made the experience that the compiler
> optimizes such loops away when the counter isn't declared as volatile.

Hello.

I did not touch the logic of the procedures, this is a topic for other patches,
although yes, I think this empty loop can be removed.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2022-06-07  7:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-03 11:25 Alexander Shiyan
2022-06-03 11:25 ` [RFC 2/8] ARM: OMAP: Move EMIF4 definitions to appropriate header Alexander Shiyan
2022-06-03 11:25 ` [RFC 3/8] ARM: OMAP: Adopt am35xx_emif4_init() to use fixed offset definitions Alexander Shiyan
2022-06-03 11:25 ` [RFC 4/8] ARM: OMAP: Move locally used definitions from emif4 header to am35xx_emif4 Alexander Shiyan
2022-06-03 11:25 ` [RFC 5/8] ARM: OMAP: emif: Abstract am35xx_emif4 from any CPU-specific includes Alexander Shiyan
2022-06-03 11:25 ` [RFC 6/8] ARM: OMAP: emif: Rename am35xx_emif4 unit Alexander Shiyan
2022-06-03 11:25 ` [RFC 7/8] ARM: OMAP: Use EMIF4 registers for get SDRAM size Alexander Shiyan
2022-06-03 11:25 ` [RFC 8/8] ARM: OMAP: Move am33xx_sdram_size() into EMIF module and make it generic Alexander Shiyan
2022-06-07  7:38 ` [RFC 1/8] ARM: OMAP: Rearranging EMIF4 definitions Sascha Hauer
2022-06-07  7:47   ` Alexander Shiyan [this message]

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=CAP1tNvQTD5QjJf18ChCBOJBc_FKG3TavyL_9ayXuJmfvY5HHxA@mail.gmail.com \
    --to=eagle.alexander923@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=sha@pengutronix.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