All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/1] common: fdt_support: Check mtdparts cell size
Date: Wed, 22 May 2019 07:21:28 -0600	[thread overview]
Message-ID: <CAPnjgZ3pO_F6hgWBE=SiO68G93j5B_xb-hBK8dL+hjFa4E8Xeg@mail.gmail.com> (raw)
In-Reply-To: <CAPnjgZ2ai8ps=UqhzJHpJM7eQXOS1nSs4+A46sJQCK7D-ByXow@mail.gmail.com>

On Wed, 24 Apr 2019 at 09:18, Simon Glass <sjg@chromium.org> wrote:
>
> On Tue, 23 Apr 2019 at 23:32, Stefan Mavrodiev <stefan@olimex.com> wrote:
> >
> > When using fdt_fixup_mtdparts() offset and length cell sizes
> > are limited to 4 bytes (1 cell). However if the mtd device is
> > bigger then 4GiB, then #address-cells and #size-cells are
> > 8 bytes (2 cells) [1].
> >
> > This patch read #size-cells and uses either fdt32_t or
> > fdt64_t cell size. The default is fdt32_t.
> >
> > [1] Documentation/devicetree/bindings/mtd/partition.txt
> >
> > Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
> > ---
> > Changes for v2:
> >     - Use fdt_setprop_u64() and ..._u32() instead of fdt_setprop()
> >     - Add size value using fdt_appendprop_u64() and ..._u32()
> >
> >  common/fdt_support.c | 31 ++++++++++++++++++++++---------
> >  1 file changed, 22 insertions(+), 9 deletions(-)
> >
>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!

      reply	other threads:[~2019-05-22 13:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-24  5:31 [U-Boot] [PATCH v2 1/1] common: fdt_support: Check mtdparts cell size Stefan Mavrodiev
2019-04-24 15:18 ` Simon Glass
2019-05-22 13:21   ` Simon Glass [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='CAPnjgZ3pO_F6hgWBE=SiO68G93j5B_xb-hBK8dL+hjFa4E8Xeg@mail.gmail.com' \
    --to=sjg@chromium.org \
    --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 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.