Skip to contentSkip to conversation

ARM: dts: am335x: Update elm phandle binding

PATCH Superseded Teresa Remmet 4 participants 8 messages Jul 5, 2016 – Aug 15, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: am335x: Update elm phandle binding

The check for the "elm_id" binding had been removed. This causes nand boot to fail on boards still using the old binding. Update the bindings on those boards.

---
 arch/arm/boot/dts/am335x-baltos.dtsi      | 2 +-
 arch/arm/boot/dts/am335x-igep0033.dtsi    | 2 +-
 arch/arm/boot/dts/am335x-phycore-som.dtsi | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/am335x-baltos.dtsi +1 -1
index c8609d8..b689172 100644
@@ -226,7 +226,7 @@
 
 		#address-cells = <1>;
 		#size-cells = <1>;
-		elm_id = <&elm>;
+		ti,elm-id = <&elm>;
 	};
 };
 
arch/arm/boot/dts/am335x-igep0033.dtsi +1 -1
index df63484..e7d9ca1 100644
@@ -161,7 +161,7 @@
 
 		#address-cells = <1>;
 		#size-cells = <1>;
-		elm_id = <&elm>;
+		ti,elm-id = <&elm>;
 
 		/* MTD partition table */
 		partition at 0 {
arch/arm/boot/dts/am335x-phycore-som.dtsi +1 -1
index 86f7731..1263c9d 100644
@@ -197,7 +197,7 @@
 		gpmc,wr-access-ns = <30>;
 		gpmc,wr-data-mux-bus-ns = <0>;
 
-		elm_id = <&elm>;
+		ti,elm-id = <&elm>;
 
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 mtd: nand: omap2: Add check for old elm binding

commit c9711ec5250b ("mtd: nand: omap: Clean up device tree support") removes the check for the old elm phandle binding.
Add it again to keep backward compatibility.

---
 drivers/mtd/nand/omap2.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mtd/nand/omap2.c +3 -1
index 08e1588..d788663 100644
@@ -1658,7 +1658,9 @@ static int omap_get_dt_info(struct device *dev, struct omap_nand_info *info)
 	/* detect availability of ELM module. Won't be present pre-OMAP4 */
 	info->elm_of_node = of_parse_phandle(child, "ti,elm-id", 0);
 	if (!info->elm_of_node)
-		dev_dbg(dev, "ti,elm-id not in DT\n");
+		info->elm_of_node = of_parse_phandle(child, "elm_id", 0);
+		if (!info->elm_of_node)
+			dev_dbg(dev, "ti,elm-id not in DT\n");
 
 	/* select ecc-scheme for NAND */
 	if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) {
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 mtd: nand: omap2: Add check for old elm binding

Quoted 2 lines · Teresa Remmet

commit c9711ec5250b ("mtd: nand: omap: Clean up device tree support") removes the check for the old elm phandle binding.

That seems like a silly breakage of backwards compatibility. Must have overlooked that one, sorry.

Quoted 3 lines

Add it again to keep backward compatibility.

I think we should probably take this for v4.7, since the breaking commit was only merged in v4.7-rc1. OMAP folks, any comment?

Brian

Quoted 22 lines
---
 drivers/mtd/nand/omap2.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mtd/nand/omap2.c +3 -1
index 08e1588..d788663 100644
@@ -1658,7 +1658,9 @@ static int omap_get_dt_info(struct device *dev, struct omap_nand_info *info)
 	/* detect availability of ELM module. Won't be present pre-OMAP4 */
 	info->elm_of_node = of_parse_phandle(child, "ti,elm-id", 0);
 	if (!info->elm_of_node)
-		dev_dbg(dev, "ti,elm-id not in DT\n");
+		info->elm_of_node = of_parse_phandle(child, "elm_id", 0);
+		if (!info->elm_of_node)
+			dev_dbg(dev, "ti,elm-id not in DT\n");
 
 	/* select ecc-scheme for NAND */
 	if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) {
Signature · 1 line
1.9.1
Applied
#3 lore raw

PATCH 2/2 mtd: nand: omap2: Add check for old elm binding

Quoted 7 lines · Brian Norris
Quoted 2 lines · Teresa Remmet

commit c9711ec5250b ("mtd: nand: omap: Clean up device tree support") removes the check for the old elm phandle binding.

That seems like a silly breakage of backwards compatibility. Must have overlooked that one, sorry.

Quoted 6 lines
Quoted 3 lines

Add it again to keep backward compatibility.

I think we should probably take this for v4.7, since the breaking commit was only merged in v4.7-rc1. OMAP folks, any comment?

Applied to linux-mtd.git. I plan to send this to Linus for v4.7, since it's a DT regression, unless someone has a good reason not to.

Brian

#4 lore raw

PATCH 2/2 mtd: nand: omap2: Add check for old elm binding

Quoted 10 lines · Brian Norris
Quoted 9 lines · Brian Norris
Quoted 2 lines · Teresa Remmet

commit c9711ec5250b ("mtd: nand: omap: Clean up device tree support") removes the check for the old elm phandle binding.

That seems like a silly breakage of backwards compatibility. Must have overlooked that one, sorry.

Quoted 2 lines

Add it again to keep backward compatibility.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

I think we should probably take this for v4.7, since the breaking commit was only merged in v4.7-rc1. OMAP folks, any comment?

Applied to linux-mtd.git. I plan to send this to Linus for v4.7, since it's a DT regression, unless someone has a good reason not to.

Sorry for the late reply as I was on vacation.
Thanks for the patch Teresa and thank you Brian for taking it into v4.7 :).

cheers,
-roger

#5 lore raw

PATCH 1/2 ARM: dts: am335x: Update elm phandle binding

In reply to Teresa Remmet
Quoted 3 lines · Teresa Remmet

The check for the "elm_id" binding had been removed. This causes nand boot to fail on boards still using the old binding. Update the bindings on those boards.

We're fixing the backward compatibility issue anyway, but might as well "upgrade" the device tree.

Quoted 49 lines
---
 arch/arm/boot/dts/am335x-baltos.dtsi      | 2 +-
 arch/arm/boot/dts/am335x-igep0033.dtsi    | 2 +-
 arch/arm/boot/dts/am335x-phycore-som.dtsi | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/am335x-baltos.dtsi +1 -1
index c8609d8..b689172 100644
@@ -226,7 +226,7 @@
 
 		#address-cells = <1>;
 		#size-cells = <1>;
-		elm_id = <&elm>;
+		ti,elm-id = <&elm>;
 	};
 };
 
arch/arm/boot/dts/am335x-igep0033.dtsi +1 -1
index df63484..e7d9ca1 100644
@@ -161,7 +161,7 @@
 
 		#address-cells = <1>;
 		#size-cells = <1>;
-		elm_id = <&elm>;
+		ti,elm-id = <&elm>;
 
 		/* MTD partition table */
 		partition at 0 {
arch/arm/boot/dts/am335x-phycore-som.dtsi +1 -1
index 86f7731..1263c9d 100644
@@ -197,7 +197,7 @@
 		gpmc,wr-access-ns = <30>;
 		gpmc,wr-data-mux-bus-ns = <0>;
 
-		elm_id = <&elm>;
+		ti,elm-id = <&elm>;
 
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
1.9.1
#6 lore raw

PATCH 1/2 ARM: dts: am335x: Update elm phandle binding

Quoted 11 lines · Brian Norris
Quoted 3 lines · Teresa Remmet

The check for the "elm_id" binding had been removed. This causes nand boot to fail on boards still using the old binding. Update the bindings on those boards.

We're fixing the backward compatibility issue anyway, but might as well "upgrade" the device tree.

Quoted 1 line

Tony,

Please take this one via your OMAP DT tree. Thanks.

cheers,
-roger

Quoted 48 lines
Quoted 48 lines
---
 arch/arm/boot/dts/am335x-baltos.dtsi      | 2 +-
 arch/arm/boot/dts/am335x-igep0033.dtsi    | 2 +-
 arch/arm/boot/dts/am335x-phycore-som.dtsi | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/am335x-baltos.dtsi +1 -1
index c8609d8..b689172 100644
@@ -226,7 +226,7 @@
 
 		#address-cells = <1>;
 		#size-cells = <1>;
-		elm_id = <&elm>;
+		ti,elm-id = <&elm>;
 	};
 };
 
arch/arm/boot/dts/am335x-igep0033.dtsi +1 -1
index df63484..e7d9ca1 100644
@@ -161,7 +161,7 @@
 
 		#address-cells = <1>;
 		#size-cells = <1>;
-		elm_id = <&elm>;
+		ti,elm-id = <&elm>;
 
 		/* MTD partition table */
 		partition at 0 {
arch/arm/boot/dts/am335x-phycore-som.dtsi +1 -1
index 86f7731..1263c9d 100644
@@ -197,7 +197,7 @@
 		gpmc,wr-access-ns = <30>;
 		gpmc,wr-data-mux-bus-ns = <0>;
 
-		elm_id = <&elm>;
+		ti,elm-id = <&elm>;
 
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
1.9.1
#7 lore raw

PATCH 1/2 ARM: dts: am335x: Update elm phandle binding

Quoted 11 lines · Roger Quadros
Quoted 10 lines · Brian Norris
Quoted 3 lines · Teresa Remmet

The check for the "elm_id" binding had been removed. This causes nand boot to fail on boards still using the old binding. Update the bindings on those boards.

We're fixing the backward compatibility issue anyway, but might as well "upgrade" the device tree.

Quoted 7 lines
Quoted 1 line
Quoted 1 line

Tony,

Please take this one via your OMAP DT tree. Thanks.

Applying to omap-for-v4.8/fixes finally thanks. Sorry for the delay.

Regards,

Tony