mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "pinctrl: qcom: enable/disable mpm wakeup bit when using gpio as IRQ"
This commit is contained in:
commit
1e18bf1c46
1 changed files with 6 additions and 3 deletions
|
|
@ -894,6 +894,9 @@ static void msm_gpio_irq_enable(struct irq_data *d)
|
|||
irq_chip_enable_parent(d);
|
||||
}
|
||||
|
||||
if (pctrl->mpm_wake_ctl)
|
||||
msm_gpio_mpm_wake_set(d->hwirq, true);
|
||||
|
||||
if (test_bit(d->hwirq, pctrl->skip_wake_irqs))
|
||||
return;
|
||||
|
||||
|
|
@ -918,6 +921,9 @@ static void msm_gpio_irq_disable(struct irq_data *d)
|
|||
irq_chip_disable_parent(d);
|
||||
}
|
||||
|
||||
if (pctrl->mpm_wake_ctl)
|
||||
msm_gpio_mpm_wake_set(d->hwirq, false);
|
||||
|
||||
if (test_bit(d->hwirq, pctrl->skip_wake_irqs))
|
||||
return;
|
||||
|
||||
|
|
@ -1194,9 +1200,6 @@ static int msm_gpio_irq_set_wake(struct irq_data *d, unsigned int on)
|
|||
struct msm_pinctrl *pctrl = gpiochip_get_data(gc);
|
||||
unsigned long flags;
|
||||
|
||||
if (pctrl->mpm_wake_ctl)
|
||||
msm_gpio_mpm_wake_set(d->hwirq, on);
|
||||
|
||||
if (d->parent_data)
|
||||
irq_chip_set_wake_parent(d, on);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue