[PATCH v1 4/7] xtensa: dts: Use IRQ flags for legacy PCI IRQ interrupts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replace magic numbers used to describe legacy PCI IRQ interrupts
with #define.

Signed-off-by: Andrew Murray <andrew.murray@xxxxxxx>
---
 arch/xtensa/boot/dts/virt.dts | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/arch/xtensa/boot/dts/virt.dts b/arch/xtensa/boot/dts/virt.dts
index 611b98a02a65..14e9a7beac2d 100644
--- a/arch/xtensa/boot/dts/virt.dts
+++ b/arch/xtensa/boot/dts/virt.dts
@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0
 /dts-v1/;
 
+#include <dt-bindings/interrupt-controller/irq.h>
+
 / {
 	compatible = "cdns,xtensa-iss";
 	#address-cells = <1>;
@@ -61,12 +63,12 @@
 
 		     // PCI_DEVICE(3)  INT#(1)  CONTROLLER(PHANDLE)  CONTROLLER_DATA(2)
 		interrupt-map = <
-			0x0000 0x0 0x0  0x1  &pic  0x0 0x1
-			0x0800 0x0 0x0  0x1  &pic  0x1 0x1
-			0x1000 0x0 0x0  0x1  &pic  0x2 0x1
-			0x1800 0x0 0x0  0x1  &pic  0x3 0x1
+			0x0000 0x0 0x0  IRQ_INTA  &pic  0x0 0x1
+			0x0800 0x0 0x0  IRQ_INTA  &pic  0x1 0x1
+			0x1000 0x0 0x0  IRQ_INTA  &pic  0x2 0x1
+			0x1800 0x0 0x0  IRQ_INTA  &pic  0x3 0x1
 			>;
 
-		interrupt-map-mask = <0x1800 0x0 0x0  0x7>;
+		interrupt-map-mask = <0x1800 0x0 0x0 IRQ_INT_ALL>;
 	};
 };
-- 
2.21.0




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux