Message ID | 1426317318.15425.1.camel@phoenix |
---|---|
State | New |
Headers | show |
2015-03-14 15:15 GMT+08:00 Axel Lin <axel.lin@ingics.com>:
> Fix a typo when checking level trigger irq type.
Sorry. I take it back, current code should be correct.
Regards,
Axel
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 493294c..cc27929 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -934,7 +934,7 @@ static int mtk_eint_set_type(struct irq_data *d, else pctl->eint_dual_edges[d->hwirq] = 0; - if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING)) { + if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) { reg = mtk_eint_get_offset(pctl, d->hwirq, eint_offsets->pol_clr); writel(mask, reg);
Fix a typo when checking level trigger irq type. Signed-off-by: Axel Lin <axel.lin@ingics.com> --- Hi Hongzhou, This looks like a typo, but I don't have the datasheet so please confirm if this patch is correct or not. drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)