mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 01/11] of: make of_alias_get work on all types of DT paths
@ 2015-03-03 19:46 Lucas Stach
  2015-03-03 19:46 ` [PATCH 02/11] ARM: tegra20: add mmc aliases Lucas Stach
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

of_alias_get assumed that a DT path is always the full node path,
whic is not necessarily the case, as there are other valid path
descriptions. All of them are handled by of_find_node_by_path.

As there is already a preparsed list with all DT aliases that handles
this case properly we can simply reuse that one.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 drivers/of/base.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/of/base.c b/drivers/of/base.c
index af10fd1..b77d879 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -227,11 +227,11 @@ EXPORT_SYMBOL_GPL(of_alias_get_id);
 
 const char *of_alias_get(struct device_node *np)
 {
-	struct property *pp;
+	struct alias_prop *app;
 
-	list_for_each_entry(pp, &of_aliases->properties, list) {
-		if (!of_node_cmp(np->full_name, pp->value))
-			return pp->name;
+	list_for_each_entry(app, &aliases_lookup, link) {
+		if (np == app->np)
+			return app->alias;
 	}
 
 	return NULL;
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 02/11] ARM: tegra20: add mmc aliases
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-03 19:46 ` [PATCH 03/11] ARM: tegra30: " Lucas Stach
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 arch/arm/dts/tegra20-colibri.dtsi | 1 +
 arch/arm/dts/tegra20.dtsi         | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/tegra20-colibri.dtsi b/arch/arm/dts/tegra20-colibri.dtsi
index 96da8a4..e931c07 100644
--- a/arch/arm/dts/tegra20-colibri.dtsi
+++ b/arch/arm/dts/tegra20-colibri.dtsi
@@ -1 +1,2 @@
 #include <arm/tegra20-colibri-512.dtsi>
+#include "tegra20.dtsi"
diff --git a/arch/arm/dts/tegra20.dtsi b/arch/arm/dts/tegra20.dtsi
index ce7d322..995eee4 100644
--- a/arch/arm/dts/tegra20.dtsi
+++ b/arch/arm/dts/tegra20.dtsi
@@ -1 +1,8 @@
-#include <arm/tegra20.dtsi>
+/ {
+	aliases {
+		mmc0 = "/sdhci@c8000000/";
+		mmc1 = "/sdhci@c8000200/";
+		mmc2 = "/sdhci@c8000400/";
+		mmc3 = "/sdhci@c8000600/";
+	};
+};
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 03/11] ARM: tegra30: add mmc aliases
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
  2015-03-03 19:46 ` [PATCH 02/11] ARM: tegra20: add mmc aliases Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-03 19:46 ` [PATCH 04/11] ARM: tegra124: " Lucas Stach
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 arch/arm/dts/tegra30-beaver.dts | 1 +
 arch/arm/dts/tegra30.dtsi       | 8 ++++++++
 2 files changed, 9 insertions(+)
 create mode 100644 arch/arm/dts/tegra30.dtsi

diff --git a/arch/arm/dts/tegra30-beaver.dts b/arch/arm/dts/tegra30-beaver.dts
index 5879353..91e1354 100644
--- a/arch/arm/dts/tegra30-beaver.dts
+++ b/arch/arm/dts/tegra30-beaver.dts
@@ -1,6 +1,7 @@
 /dts-v1/;
 
 #include <arm/tegra30.dtsi>
+#include "tegra30.dtsi"
 
 / {
 	model = "NVIDIA Tegra30 Beaver evaluation board";
diff --git a/arch/arm/dts/tegra30.dtsi b/arch/arm/dts/tegra30.dtsi
new file mode 100644
index 0000000..90bd08b
--- /dev/null
+++ b/arch/arm/dts/tegra30.dtsi
@@ -0,0 +1,8 @@
+/ {
+	aliases {
+		mmc0 = "/sdhci@78000000/";
+		mmc1 = "/sdhci@78000200/";
+		mmc2 = "/sdhci@78000400/";
+		mmc3 = "/sdhci@78000600/";
+	};
+};
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 04/11] ARM: tegra124: add mmc aliases
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
  2015-03-03 19:46 ` [PATCH 02/11] ARM: tegra20: add mmc aliases Lucas Stach
  2015-03-03 19:46 ` [PATCH 03/11] ARM: tegra30: " Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-03 19:46 ` [PATCH 05/11] mci: tegra: handle " Lucas Stach
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 arch/arm/dts/tegra124.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/tegra124.dtsi b/arch/arm/dts/tegra124.dtsi
index c795811..cd515a2 100644
--- a/arch/arm/dts/tegra124.dtsi
+++ b/arch/arm/dts/tegra124.dtsi
@@ -4,5 +4,9 @@
 		serial1 = "/serial@0,70006040/";
 		serial2 = "/serial@0,70006200/";
 		serial3 = "/serial@0,70006300/";
+		mmc0 = "/sdhci@0,700b0000/";
+		mmc1 = "/sdhci@0,700b0200/";
+		mmc2 = "/sdhci@0,700b0400/";
+		mmc3 = "/sdhci@0,700b0600/";
 	};
 };
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 05/11] mci: tegra: handle mmc aliases
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
                   ` (2 preceding siblings ...)
  2015-03-03 19:46 ` [PATCH 04/11] ARM: tegra124: " Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-03 19:46 ` [PATCH 06/11] bbu: include necessary headers Lucas Stach
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

This allows to have fixed device names for the SDMMC
controllers.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 drivers/mci/tegra-sdmmc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mci/tegra-sdmmc.c b/drivers/mci/tegra-sdmmc.c
index 0e23d6f..c8924ed 100644
--- a/drivers/mci/tegra-sdmmc.c
+++ b/drivers/mci/tegra-sdmmc.c
@@ -409,7 +409,10 @@ static int tegra_sdmmc_detect(struct device_d *dev)
 static void tegra_sdmmc_parse_dt(struct tegra_sdmmc_host *host)
 {
 	struct device_node *np = host->mci.hw_dev->device_node;
+	const char *alias = of_alias_get(np);
 
+	if (alias)
+		host->mci.devname = xstrdup(alias);
 	host->gpio_cd = of_get_named_gpio(np, "cd-gpios", 0);
 	host->gpio_pwr = of_get_named_gpio(np, "power-gpios", 0);
 	mci_of_parse(&host->mci);
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 06/11] bbu: include necessary headers
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
                   ` (3 preceding siblings ...)
  2015-03-03 19:46 ` [PATCH 05/11] mci: tegra: handle " Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-03 19:46 ` [PATCH 07/11] bbu: make bbu confirm a bit more verbose Lucas Stach
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

Fixes compile errors due to undefined symbols.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 include/bbu.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/bbu.h b/include/bbu.h
index adb52b0..4a3d35e 100644
--- a/include/bbu.h
+++ b/include/bbu.h
@@ -2,6 +2,8 @@
 #define __INCLUDE_BBU_H
 
 #include <asm-generic/errno.h>
+#include <linux/list.h>
+#include <linux/types.h>
 
 struct bbu_data {
 #define BBU_FLAG_FORCE	(1 << 0)
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 07/11] bbu: make bbu confirm a bit more verbose
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
                   ` (4 preceding siblings ...)
  2015-03-03 19:46 ` [PATCH 06/11] bbu: include necessary headers Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-03 19:46 ` [PATCH 08/11] ARM: tegra: add eMMC barebox update handler Lucas Stach
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

It is a lot more user friendly if we give a bit more feedback.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 common/bbu.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/common/bbu.c b/common/bbu.c
index e31f645..7fb154a 100644
--- a/common/bbu.c
+++ b/common/bbu.c
@@ -65,8 +65,10 @@ int bbu_confirm(struct bbu_data *data)
 
 	key = read_key();
 
-	if (key == 'y')
+	if (key == 'y') {
+		printf("updating barebox...\n");
 		return 0;
+	}
 
 	return -EINTR;
 }
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 08/11] ARM: tegra: add eMMC barebox update handler
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
                   ` (5 preceding siblings ...)
  2015-03-03 19:46 ` [PATCH 07/11] bbu: make bbu confirm a bit more verbose Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-03 19:46 ` [PATCH 09/11] ARM: tegra: add barebox update handler to Beaver board Lucas Stach
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 arch/arm/mach-tegra/Makefile                 |  1 +
 arch/arm/mach-tegra/include/mach/tegra-bbu.h | 28 +++++++++++
 arch/arm/mach-tegra/tegra-bbu.c              | 74 ++++++++++++++++++++++++++++
 3 files changed, 103 insertions(+)
 create mode 100644 arch/arm/mach-tegra/include/mach/tegra-bbu.h
 create mode 100644 arch/arm/mach-tegra/tegra-bbu.c

diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile
index e68156a..7c4c1fd 100644
--- a/arch/arm/mach-tegra/Makefile
+++ b/arch/arm/mach-tegra/Makefile
@@ -13,3 +13,4 @@ lwl-y += tegra_maincomplex_init.o
 obj-y += tegra20.o
 obj-y += tegra20-pmc.o
 obj-y += tegra20-timer.o
+obj-$(CONFIG_BAREBOX_UPDATE) += tegra-bbu.o
diff --git a/arch/arm/mach-tegra/include/mach/tegra-bbu.h b/arch/arm/mach-tegra/include/mach/tegra-bbu.h
new file mode 100644
index 0000000..32e2861
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/tegra-bbu.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2015 Lucas Stach <l.stach@pengutronix.de>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <bbu.h>
+
+#ifdef CONFIG_BAREBOX_UPDATE
+int tegra_bbu_register_emmc_handler(const char *name, char *devicefile,
+				    unsigned long flags);
+#else
+static int tegra_bbu_register_emmc_handler(const char *name, char *devicefile,
+				    unsigned long flags)
+{
+	return 0;
+};
+#endif
diff --git a/arch/arm/mach-tegra/tegra-bbu.c b/arch/arm/mach-tegra/tegra-bbu.c
new file mode 100644
index 0000000..089e6c7
--- /dev/null
+++ b/arch/arm/mach-tegra/tegra-bbu.c
@@ -0,0 +1,74 @@
+/*
+ * Copyright (C) 2015 Lucas Stach <l.stach@pengutronix.de>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <common.h>
+#include <fcntl.h>
+#include <fs.h>
+#include <mach/tegra-bbu.h>
+#include <malloc.h>
+
+static int tegra_bbu_emmc_handler(struct bbu_handler *handler,
+				  struct bbu_data *data)
+{
+
+	int fd, ret;
+
+	if (file_detect_type(data->image + 0x4000, data->len) !=
+	    filetype_arm_barebox &&
+	    !bbu_force(data, "Not an ARM barebox image"))
+		return -EINVAL;
+
+	ret = bbu_confirm(data);
+	if (ret)
+		return ret;
+
+	fd = open(data->devicefile, O_WRONLY);
+	if (fd < 0)
+		return fd;
+
+	ret = write(fd, data->image, data->len);
+	if (ret < 0) {
+		pr_err("writing update to %s failed with %s\n",
+			data->devicefile, strerror(-ret));
+		goto err_close;
+	}
+
+	ret = 0;
+
+err_close:
+	close(fd);
+
+	return ret;
+}
+
+int tegra_bbu_register_emmc_handler(const char *name, char *devicefile,
+				    unsigned long flags)
+{
+	struct bbu_handler *handler;
+	int ret = 0;
+
+	handler = xzalloc(sizeof(*handler));
+	handler->name = name;
+	handler->devicefile = devicefile;
+	handler->flags = flags;
+	handler->handler = tegra_bbu_emmc_handler;
+
+	ret = bbu_register_handler(handler);
+	if (ret)
+		free(handler);
+
+	return ret;
+}
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 09/11] ARM: tegra: add barebox update handler to Beaver board
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
                   ` (6 preceding siblings ...)
  2015-03-03 19:46 ` [PATCH 08/11] ARM: tegra: add eMMC barebox update handler Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-03 19:46 ` [PATCH 10/11] ARM: tegra: add barebox update handler to Jetson board Lucas Stach
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 arch/arm/boards/nvidia-beaver/board.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boards/nvidia-beaver/board.c b/arch/arm/boards/nvidia-beaver/board.c
index d270301..bab0238 100644
--- a/arch/arm/boards/nvidia-beaver/board.c
+++ b/arch/arm/boards/nvidia-beaver/board.c
@@ -19,6 +19,7 @@
 #include <gpio.h>
 #include <i2c/i2c.h>
 #include <init.h>
+#include <mach/tegra-bbu.h>
 
 static int nvidia_beaver_fs_init(void)
 {
@@ -53,6 +54,9 @@ static int nvidia_beaver_device_init(void)
 
 	barebox_set_hostname("beaver");
 
+	tegra_bbu_register_emmc_handler("eMMC", "/dev/mmc3.boot0",
+					BBU_HANDLER_FLAG_DEFAULT);
+
 	return 0;
 }
 device_initcall(nvidia_beaver_device_init);
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 10/11] ARM: tegra: add barebox update handler to Jetson board
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
                   ` (7 preceding siblings ...)
  2015-03-03 19:46 ` [PATCH 09/11] ARM: tegra: add barebox update handler to Beaver board Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-03 19:46 ` [PATCH 11/11] ARM: tegra: enable barebox update in defconfig Lucas Stach
  2015-03-04 10:34 ` [PATCH 01/11] of: make of_alias_get work on all types of DT paths Sascha Hauer
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 arch/arm/boards/nvidia-jetson-tk1/board.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boards/nvidia-jetson-tk1/board.c b/arch/arm/boards/nvidia-jetson-tk1/board.c
index 564e6a0..939d184 100644
--- a/arch/arm/boards/nvidia-jetson-tk1/board.c
+++ b/arch/arm/boards/nvidia-jetson-tk1/board.c
@@ -19,6 +19,7 @@
 #include <gpio.h>
 #include <i2c/i2c.h>
 #include <init.h>
+#include <mach/tegra-bbu.h>
 
 #define AS3722_SD_VOLTAGE(n)	(0x00 + (n))
 #define AS3722_GPIO_CONTROL(n)	(0x08 + (n))
@@ -56,6 +57,9 @@ static int nvidia_jetson_tk1_device_init(void)
 
 	barebox_set_hostname("jetson-tk1");
 
+	tegra_bbu_register_emmc_handler("eMMC", "/dev/mmc3.boot0",
+					BBU_HANDLER_FLAG_DEFAULT);
+
 	return 0;
 }
 device_initcall(nvidia_jetson_tk1_device_init);
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 11/11] ARM: tegra: enable barebox update in defconfig
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
                   ` (8 preceding siblings ...)
  2015-03-03 19:46 ` [PATCH 10/11] ARM: tegra: add barebox update handler to Jetson board Lucas Stach
@ 2015-03-03 19:46 ` Lucas Stach
  2015-03-04 10:34 ` [PATCH 01/11] of: make of_alias_get work on all types of DT paths Sascha Hauer
  10 siblings, 0 replies; 12+ messages in thread
From: Lucas Stach @ 2015-03-03 19:46 UTC (permalink / raw)
  To: barebox

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 arch/arm/configs/tegra_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/tegra_v7_defconfig b/arch/arm/configs/tegra_v7_defconfig
index 47e594b..c7b59ac 100644
--- a/arch/arm/configs/tegra_v7_defconfig
+++ b/arch/arm/configs/tegra_v7_defconfig
@@ -36,6 +36,7 @@ CONFIG_CMD_TIMEOUT=y
 CONFIG_CMD_CLK=y
 CONFIG_CMD_DETECT=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_BAREBOX_UPDATE=y
 CONFIG_CMD_OFTREE=y
 CONFIG_NET=y
 CONFIG_OF_BAREBOX_DRIVERS=y
-- 
2.1.0


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 01/11] of: make of_alias_get work on all types of DT paths
  2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
                   ` (9 preceding siblings ...)
  2015-03-03 19:46 ` [PATCH 11/11] ARM: tegra: enable barebox update in defconfig Lucas Stach
@ 2015-03-04 10:34 ` Sascha Hauer
  10 siblings, 0 replies; 12+ messages in thread
From: Sascha Hauer @ 2015-03-04 10:34 UTC (permalink / raw)
  To: Lucas Stach; +Cc: barebox

On Tue, Mar 03, 2015 at 08:46:13PM +0100, Lucas Stach wrote:
> of_alias_get assumed that a DT path is always the full node path,
> whic is not necessarily the case, as there are other valid path
> descriptions. All of them are handled by of_find_node_by_path.
> 
> As there is already a preparsed list with all DT aliases that handles
> this case properly we can simply reuse that one.
> 
> Signed-off-by: Lucas Stach <dev@lynxeye.de>
> ---
>  drivers/of/base.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Applied all, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-03-04 10:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
2015-03-03 19:46 ` [PATCH 02/11] ARM: tegra20: add mmc aliases Lucas Stach
2015-03-03 19:46 ` [PATCH 03/11] ARM: tegra30: " Lucas Stach
2015-03-03 19:46 ` [PATCH 04/11] ARM: tegra124: " Lucas Stach
2015-03-03 19:46 ` [PATCH 05/11] mci: tegra: handle " Lucas Stach
2015-03-03 19:46 ` [PATCH 06/11] bbu: include necessary headers Lucas Stach
2015-03-03 19:46 ` [PATCH 07/11] bbu: make bbu confirm a bit more verbose Lucas Stach
2015-03-03 19:46 ` [PATCH 08/11] ARM: tegra: add eMMC barebox update handler Lucas Stach
2015-03-03 19:46 ` [PATCH 09/11] ARM: tegra: add barebox update handler to Beaver board Lucas Stach
2015-03-03 19:46 ` [PATCH 10/11] ARM: tegra: add barebox update handler to Jetson board Lucas Stach
2015-03-03 19:46 ` [PATCH 11/11] ARM: tegra: enable barebox update in defconfig Lucas Stach
2015-03-04 10:34 ` [PATCH 01/11] of: make of_alias_get work on all types of DT paths Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox