File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 31
31
#include <linux/ioport.h>
32
32
#include <linux/ktime.h>
33
33
#include <linux/major.h>
34
+ #include <linux/minmax.h>
34
35
#include <linux/module.h>
35
36
#include <linux/mm.h>
36
37
#include <linux/of.h>
@@ -2864,6 +2865,13 @@ static int sci_init_single(struct platform_device *dev,
2864
2865
sci_port -> irqs [i ] = platform_get_irq (dev , i );
2865
2866
}
2866
2867
2868
+ /*
2869
+ * The fourth interrupt on SCI port is transmit end interrupt, so
2870
+ * shuffle the interrupts.
2871
+ */
2872
+ if (p -> type == PORT_SCI )
2873
+ swap (sci_port -> irqs [SCIx_BRI_IRQ ], sci_port -> irqs [SCIx_TEI_IRQ ]);
2874
+
2867
2875
/* The SCI generates several interrupts. They can be muxed together or
2868
2876
* connected to different interrupt lines. In the muxed case only one
2869
2877
* interrupt resource is specified as there is only one interrupt ID.
You can’t perform that action at this time.
0 commit comments