All of lore.kernel.org
 help / color / mirror / Atom feed
From: matthias.bgg at kernel.org <matthias.bgg@kernel.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/4] dm: Fix default address cells return value
Date: Thu,  5 Sep 2019 10:48:49 +0200	[thread overview]
Message-ID: <20190905084849.20596-5-matthias.bgg@kernel.org> (raw)
In-Reply-To: <20190905084849.20596-1-matthias.bgg@kernel.org>

From: Matthias Brugger <mbrugger@suse.com>

Default address cells value on the livetree access function
returns the wrong value. Fix this so that the value returned
corresponds to the device tree specification.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
---

 include/dm/of.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/dm/of.h b/include/dm/of.h
index 461e25aa19..6bef73b441 100644
--- a/include/dm/of.h
+++ b/include/dm/of.h
@@ -111,7 +111,7 @@ static inline const char *of_node_full_name(const struct device_node *np)
 
 /* Default #address and #size cells */
 #if !defined(OF_ROOT_NODE_ADDR_CELLS_DEFAULT)
-#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1
+#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 2
 #define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1
 #endif
 
-- 
2.22.0

  parent reply	other threads:[~2019-09-05  8:48 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-05  8:48 [U-Boot] [PATCH v2 0/4] Fix default values for address and size cells matthias.bgg at kernel.org
2019-09-05  8:48 ` [U-Boot] [PATCH v2 1/4] libfdt: fdt_address_cells() and fdt_size_cells() matthias.bgg at kernel.org
2019-09-05  8:48 ` [U-Boot] [PATCH v2 2/4] libfdt: return correct value if #size-cells property is not present matthias.bgg at kernel.org
2019-09-17  5:48   ` Simon Glass
2019-09-17  7:28     ` Matthias Brugger
2019-09-17 16:52       ` Simon Glass
2019-09-27  1:48         ` Simon Glass
2019-09-27 11:37           ` Matthias Brugger
2019-09-27 23:28           ` sjg at google.com
2019-09-05  8:48 ` [U-Boot] [PATCH v2 3/4] libfdt: Allow #size-cells of 0 matthias.bgg at kernel.org
2019-09-17  5:48   ` Simon Glass
2019-09-27  1:49     ` Simon Glass
2019-09-27 23:28     ` sjg at google.com
2019-09-05  8:48 ` matthias.bgg at kernel.org [this message]
2019-09-27  1:49   ` [U-Boot] [PATCH v2 4/4] dm: Fix default address cells return value Simon Glass
2019-09-27 23:28   ` sjg at google.com
2019-09-25  9:57 ` [U-Boot] [PATCH v2 0/4] Fix default values for address and size cells Matthias Brugger
2019-10-21 23:47   ` Simon Glass
2019-10-22 11:14     ` Matthias Brugger
2019-09-27 23:28 ` [U-Boot] [PATCH v2 1/4] libfdt: fdt_address_cells() and fdt_size_cells() sjg at google.com
2019-10-07 13:31   ` Matthias Brugger
2019-10-11 18:28     ` Simon Glass
2019-10-11 18:50       ` Matthias Brugger

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=20190905084849.20596-5-matthias.bgg@kernel.org \
    --to=matthias.bgg@kernel.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.