Skip to contentSkip to conversation

Fix mpc7448hpc2 tsi108 device_type bug

PATCH In review Zang Roy-r61911 3 participants 6 messages Jul 11, 2007 – Jul 12, 2007

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

PATCH 1/1 Fix mpc7448hpc2 tsi108 device_type bug

From: Roy Zang <[email protected]>

Fix mpc7448hpc2 tsi108 device_type bug.
Wrong device type will break the board startup.

---
Please apply this patch. The bug breaks the board
startup.
Please copy patches about 74xx and tsi bridge
to me.

 arch/powerpc/boot/dts/mpc7448hpc2.dts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc7448hpc2.dts +1 -1
index 0e3d314..b9158eb 100644
@@ -45,7 +45,7 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 		#interrupt-cells = <2>;
-		device_type = "tsi108-bridge";
+		device_type = "tsi-bridge";
 		ranges = <00000000 c0000000 00010000>;
 		reg = <c0000000 00010000>;
 		bus-frequency = <0>;
Signature · 1 line
1.5.1
#1 lore raw

arch/powerpc/boot/dts/mpc7448hpc2.dts line 48

Quoted 5 lines

Fix mpc7448hpc2 tsi108 device_type bug.
Wrong device type will break the board startup.

arch/powerpc/boot/dts/mpc7448hpc2.dts +1 -1
-		device_type = "tsi108-bridge";
+		device_type = "tsi-bridge";

The OS code shouldn't use "device_type" at all for this, but "compatible" instead. You might want to fix that. This patch is fine until you do of course.

Segher

#2 lore raw
Quoted 8 lines · Segher Boessenkool

arch/powerpc/boot/dts/mpc7448hpc2.dts line 48

Quoted 5 lines

Fix mpc7448hpc2 tsi108 device_type bug.
Wrong device type will break the board startup.

arch/powerpc/boot/dts/mpc7448hpc2.dts +1 -1
-             device_type = "tsi108-bridge";
+             device_type = "tsi-bridge";

The OS code shouldn't use "device_type" at all for this, but "compatible" instead. You might want to fix that.

I can understand you. Should we separate it into two steps:
(1) Fix the bug in old style to ensure the board work. I can see other code in kernel tree will be affected by removing "device_type".
(2) Using compatible instead of device_type for all associated boards and code.

Quoted 1 line

This patch is fine until you do of course.

That is fine.
Roy

#3 lore raw
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Fix mpc7448hpc2 tsi108 device_type bug.
Wrong device type will break the board startup.

arch/powerpc/boot/dts/mpc7448hpc2.dts +1 -1
-             device_type = "tsi108-bridge";
+             device_type = "tsi-bridge";
Quoted 7 lines
Quoted 2 lines

The OS code shouldn't use "device_type" at all for this, but "compatible" instead. You might want to fix that.

I can understand you. Should we separate it into two steps:
(1) Fix the bug in old style to ensure the board work. I can see other code in kernel tree will be affected by removing "device_type".
(2) Using compatible instead of device_type for all associated boards and code.

Yes, good plan.

Quoted 2 lines
Quoted 1 line

This patch is fine until you do of course.

That is fine.

This is your step (1) :-)

Segher

#4 lore raw
In reply to Zang Roy-r61911
Quoted 20 lines · On Jul 11, 2007, at 1:39 AM, Zang Roy-r61911 wrote:

From: Roy Zang <[email protected]>

Fix mpc7448hpc2 tsi108 device_type bug.
Wrong device type will break the board startup.

---
Please apply this patch. The bug breaks the board
startup.
Please copy patches about 74xx and tsi bridge
to me.

 arch/powerpc/boot/dts/mpc7448hpc2.dts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc7448hpc2.dts +0 -0
index 0e3d314..b9158eb 100644

arch/powerpc/boot/dts/mpc7448hpc2.dts line 48

Quoted 5 lines
arch/powerpc/boot/dts/mpc7448hpc2.dts +1 -1
@@ -45,7 +45,7 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 		#interrupt-cells = <2>;
-		device_type = "tsi108-bridge";
+		device_type = "tsi-bridge";

Is there a reason we don't add:

                compatible = "tsi108-bridge";

like the holly dts has?

- k

Quoted 8 lines
arch/powerpc/boot/dts/mpc7448hpc2.dts +0 -0
 		ranges = <00000000 c0000000 00010000>;
 		reg = <c0000000 00010000>;
 		bus-frequency = <0>;
Signature · 1 line
1.5.1
#5 lore raw
Quoted 31 lines · Kumar Gala
Quoted 21 lines · On Jul 11, 2007, at 1:39 AM, Zang Roy-r61911 wrote:

From: Roy Zang <[email protected]>

Fix mpc7448hpc2 tsi108 device_type bug.
Wrong device type will break the board startup.

---
Please apply this patch. The bug breaks the board
startup.
Please copy patches about 74xx and tsi bridge
to me.

 arch/powerpc/boot/dts/mpc7448hpc2.dts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/ renamed from arch/powerpc/boot/dts/mpc7448hpc2.dts +0 -0

boot/dts/mpc7448hpc2.dts
index 0e3d314..b9158eb 100644

arch/powerpc/boot/dts/mpc7448hpc2.dts line 48

Quoted 5 lines
arch/powerpc/boot/dts/mpc7448hpc2.dts +1 -1
@@ -45,7 +45,7 @@
              #address-cells = <1>;
              #size-cells = <1>;
              #interrupt-cells = <2>;
-             device_type = "tsi108-bridge";
+             device_type = "tsi-bridge";

Is there a reason we don't add:

Quoted 3 lines
                 compatible = "tsi108-bridge";

like the holly dts has?

I noticed it.
Until now, it does not affect the function.
I plan to update the mpc7448hpc2 dts file reflecting tsi109 chip. I will add the compatible field in that patch.
Please apply this one first.
Roy