mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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:
parent
3d694851bd
commit
dcf29b078b
1 changed files with 3 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue