The MPIC code checks for a "big-endian" property and sets the flag
MPIC_BIG_ENDIAN if one is present. Unfortunately, the PowerQUICC-III
compatible device-tree does not specify it, so all of the board ports
need to manually set that flag when calling mpic_alloc().
Document the flag and add it to the pq3 device tree. Existing code
will still need to pass the MPIC_BIG_ENDIAN flag because their dtb may
not have this property, but new platforms shouldn't need to do so.
Signed-off-by: Kyle Moffett <redacted>
---
.../devicetree/bindings/powerpc/fsl/mpic.txt | 9 ++++++++-
arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi | 1 +
2 files changed, 9 insertions(+), 1 deletions(-)
@@ -56,7 +56,14 @@ PROPERTIES to the client. The presence of this property also mandates that any initialization related to interrupt sources shall be limited to sources explicitly referenced in the device tree.-++ - big-endian+ Usage: optional+ Value type: <empty>+ If present the MPIC will be assumed to be big-endian. Some+ device-trees omit this property on MPIC nodes even when the MPIC is+ in fact big-endian, so certain boards override this property.+ INTERRUPT SPECIFIER DEFINITION Interrupt specifiers consists of 4 cells encoded as
From: Randy Dunlap <hidden> Date: 2012-01-04 22:24:28
On 12/22/2011 08:25 AM, Kyle Moffett wrote:
The MPIC code checks for a "big-endian" property and sets the flag
MPIC_BIG_ENDIAN if one is present. Unfortunately, the PowerQUICC-III
compatible device-tree does not specify it, so all of the board ports
need to manually set that flag when calling mpic_alloc().
Document the flag and add it to the pq3 device tree. Existing code
will still need to pass the MPIC_BIG_ENDIAN flag because their dtb may
not have this property, but new platforms shouldn't need to do so.
Signed-off-by: Kyle Moffett <redacted>
Grant, are you merging this patch?
I don't think I should merge the patch to arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi.
@@ -56,7 +56,14 @@ PROPERTIES to the client. The presence of this property also mandates that any initialization related to interrupt sources shall be limited to sources explicitly referenced in the device tree.-++ - big-endian+ Usage: optional+ Value type: <empty>+ If present the MPIC will be assumed to be big-endian. Some+ device-trees omit this property on MPIC nodes even when the MPIC is+ in fact big-endian, so certain boards override this property.+ INTERRUPT SPECIFIER DEFINITION Interrupt specifiers consists of 4 cells encoded as
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2012-01-04 23:12:37
On Wed, 2012-01-04 at 15:22 -0800, Randy Dunlap wrote:
On 12/22/2011 08:25 AM, Kyle Moffett wrote:
quoted
The MPIC code checks for a "big-endian" property and sets the flag
MPIC_BIG_ENDIAN if one is present. Unfortunately, the PowerQUICC-III
compatible device-tree does not specify it, so all of the board ports
need to manually set that flag when calling mpic_alloc().
Document the flag and add it to the pq3 device tree. Existing code
will still need to pass the MPIC_BIG_ENDIAN flag because their dtb may
not have this property, but new platforms shouldn't need to do so.
Signed-off-by: Kyle Moffett <redacted>
Grant, are you merging this patch?
I don't think I should merge the patch to arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi.
Best is to leave the whole lot to me. It's not like mpic is used
anywhere else ...
Cheers,
Ben.
@@ -56,7 +56,14 @@ PROPERTIES to the client. The presence of this property also mandates that any initialization related to interrupt sources shall be limited to sources explicitly referenced in the device tree.-++ - big-endian+ Usage: optional+ Value type: <empty>+ If present the MPIC will be assumed to be big-endian. Some+ device-trees omit this property on MPIC nodes even when the MPIC is+ in fact big-endian, so certain boards override this property.+ INTERRUPT SPECIFIER DEFINITION Interrupt specifiers consists of 4 cells encoded as
From: Kumar Gala <hidden> Date: 2012-01-05 18:39:33
On Dec 22, 2011, at 10:25 AM, Kyle Moffett wrote:
The MPIC code checks for a "big-endian" property and sets the flag
MPIC_BIG_ENDIAN if one is present. Unfortunately, the PowerQUICC-III
compatible device-tree does not specify it, so all of the board ports
need to manually set that flag when calling mpic_alloc().
Document the flag and add it to the pq3 device tree. Existing code
will still need to pass the MPIC_BIG_ENDIAN flag because their dtb may
not have this property, but new platforms shouldn't need to do so.
Signed-off-by: Kyle Moffett <redacted>
---
.../devicetree/bindings/powerpc/fsl/mpic.txt | 9 ++++++++-
arch/powerpc/boot/dts/fsl/pq3-mpic.dtsi | 1 +
2 files changed, 9 insertions(+), 1 deletions(-)
need to update arch/powerpc/boot/dts/fsl/qoriq-mpic.dtsi
- k