pinctrl: qcom: Fix msm_gpio_wakeirq to correctly find parent hwirq

For mpm gpio irq chip domain do not handle wakeup but the parent hwirq
still need to send to mpm gpio chip. Add change to skip sending parent
irq where domain handles wakeup.

Change-Id: I1eb6fdefe6811dcf3d77cca4d54cce8b4efdc6b6
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
This commit is contained in:
Tushar Nimkar 2021-03-17 21:41:29 +05:30
commit dcf29b078b

View file

@ -1284,11 +1284,13 @@ static int msm_gpio_wakeirq(struct gpio_chip *gc,
struct msm_pinctrl *pctrl = gpiochip_get_data(gc);
const struct msm_gpio_wakeirq_map *map;
int i;
bool skip;
*parent = GPIO_NO_WAKE_IRQ;
*parent_type = IRQ_TYPE_EDGE_RISING;
if (!test_bit(child, pctrl->skip_wake_irqs))
skip = irq_domain_qcom_handle_wakeup(gc->irq.parent_domain);
if (!test_bit(child, pctrl->skip_wake_irqs) && skip)
return 0;
for (i = 0; i < pctrl->soc->nwakeirq_map; i++) {