[openwrt/openwrt] ramips: mt7621-dts: make use of 'IRQ_TYPE_LEVEL_HIGH' instead of magic numbers

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 6 15:41:13 PDT 2021


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e17f238f1d6837523504c98eb60a7300b4f148f9

commit e17f238f1d6837523504c98eb60a7300b4f148f9
Author: Sergio Paracuellos <sergio.paracuellos at gmail.com>
AuthorDate: Tue Oct 19 12:29:15 2021 +0200

    ramips: mt7621-dts: make use of 'IRQ_TYPE_LEVEL_HIGH' instead of magic numbers
    
    Nodes 'gdma' and 'hsdma' are using magic number '4' in interrupts property.
    Use 'IRQ_TYPE_LEVEL_HIGH' instead to align with the rest of the nodes in
    the file.
    
    Signed-off-by: Sergio Paracuellos <sergio.paracuellos at gmail.com>
    Link: https://lore.kernel.org/r/20211019102915.15409-2-sergio.paracuellos@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
 target/linux/ramips/dts/mt7621.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index 53e13441e8..f4386a8cf8 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -227,7 +227,7 @@
 			reset-names = "dma";
 
 			interrupt-parent = <&gic>;
-			interrupts = <0 13 4>;
+			interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>;
 
 			#dma-cells = <1>;
 			#dma-channels = <16>;
@@ -244,7 +244,7 @@
 			reset-names = "hsdma";
 
 			interrupt-parent = <&gic>;
-			interrupts = <0 11 4>;
+			interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
 
 			#dma-cells = <1>;
 			#dma-channels = <1>;



More information about the lede-commits mailing list