提交 7cf8c9f7 编写于 作者: A Axel Lin 提交者: Jason Cooper

gpio: mvebu: Add missing breaks in mvebu_gpio_irq_set_type

Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: NAndrew Lunn <andrew@lunn.ch>
Acked-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NJason Cooper <jason@lakedaemon.net>
上级 ddffeb8c
...@@ -381,11 +381,13 @@ static int mvebu_gpio_irq_set_type(struct irq_data *d, unsigned int type) ...@@ -381,11 +381,13 @@ static int mvebu_gpio_irq_set_type(struct irq_data *d, unsigned int type)
u = readl_relaxed(mvebu_gpioreg_in_pol(mvchip)); u = readl_relaxed(mvebu_gpioreg_in_pol(mvchip));
u &= ~(1 << pin); u &= ~(1 << pin);
writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip)); writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip));
break;
case IRQ_TYPE_EDGE_FALLING: case IRQ_TYPE_EDGE_FALLING:
case IRQ_TYPE_LEVEL_LOW: case IRQ_TYPE_LEVEL_LOW:
u = readl_relaxed(mvebu_gpioreg_in_pol(mvchip)); u = readl_relaxed(mvebu_gpioreg_in_pol(mvchip));
u |= 1 << pin; u |= 1 << pin;
writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip)); writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip));
break;
case IRQ_TYPE_EDGE_BOTH: { case IRQ_TYPE_EDGE_BOTH: {
u32 v; u32 v;
...@@ -401,6 +403,7 @@ static int mvebu_gpio_irq_set_type(struct irq_data *d, unsigned int type) ...@@ -401,6 +403,7 @@ static int mvebu_gpio_irq_set_type(struct irq_data *d, unsigned int type)
else else
u &= ~(1 << pin); /* rising */ u &= ~(1 << pin); /* rising */
writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip)); writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip));
break;
} }
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册