Re: [PATCH] pinctrl: qcom: Add irq_enable callback for msm gpio

2018-02-05 Thread Bjorn Andersson
On Mon 22 Jan 05:03 PST 2018, Srinivas Ramana wrote: > +static void msm_gpio_irq_enable(struct irq_data *d) > +{ > + struct gpio_chip *gc = irq_data_get_irq_chip_data(d); > + struct msm_pinctrl *pctrl = gpiochip_get_data(gc); > + const struct msm_pingroup *g; > + unsigned long flags

[PATCH] pinctrl: qcom: Add irq_enable callback for msm gpio

2018-01-22 Thread Srinivas Ramana
Introduce the irq_enable callback which will be same as irq_unmask except that it will also clear the status bit before unmask. This will help in clearing any erroneous interrupts that would have got latched when the interrupt is not in use. There may be devices like UART which can use the same g