irqchip/mtk-sysirq: Remove unnecessary barrier when configuring trigger
authorMars Cheng <mars.cheng@mediatek.com>
Sun, 19 Mar 2017 15:26:24 +0000 (23:26 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 7 Apr 2017 09:52:17 +0000 (10:52 +0100)
This prevent unnecessary visibility when configuring trigger type

Signed-off-by: Mars Cheng <mars.cheng@mediatek.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-mtk-sysirq.c

index 9ba969cfad813c10a5790d9bea7b4acc030a4dd9..eeac512ec5a88b93aa84af055963b1ebabb6b789 100644 (file)
@@ -57,7 +57,7 @@ static int mtk_sysirq_set_type(struct irq_data *data, unsigned int type)
                value &= ~(1 << offset);
        }
 
-       writel(value, base + reg_index * 4);
+       writel_relaxed(value, base + reg_index * 4);
 
        data = data->parent_data;
        ret = data->chip->irq_set_type(data, type);