mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
pinctrl: qcom: enable/disable mpm wakeup bit when using gpio as IRQ
Enable/Disable mpm wakeup bit when using GPIO as IRQ. Change-Id: Ia1c6fbdf9d6e45dd031a647fb14a9ffa662ba42c Signed-off-by: Prateek Sood <prsood@codeaurora.org>
This commit is contained in:
parent
44c3d4ae63
commit
1d7e57ca56
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