Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1206735 > unrolled thread
| Started by | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| First post | 2015-08-13 13:20 +0200 |
| Last post | 2015-08-13 13:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v4 3/4] gpio: brcmstb: support wakeup from S5 cold boot Linus Walleij <linus.walleij@linaro.org> - 2015-08-13 13:20 +0200
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2015-08-13 13:20 +0200 |
| Subject | Re: [PATCH v4 3/4] gpio: brcmstb: support wakeup from S5 cold boot |
| Message-ID | <pWYIa-1FS-23@gated-at.bofh.it> |
On Sat, Aug 1, 2015 at 3:17 AM, Gregory Fong <gregory.0xf0@gmail.com> wrote: > For wake from S5, we need to: > - register a reboot handler > - set wakeup capability before requesting IRQ so wakeup count is > incremented > - mask all GPIO IRQs and clear any pending interrupts during driver > probe to since no driver will yet be registered to handle any IRQs > carried over from boot at that time, and it's possible that the > booted kernel does not request the same IRQ anyway. > > This means that /sys/.../power/wakeup_count is valid at boot time, and > we can properly account for S5 wakeup stats. e.g.: > > ### After waking from S5 from a GPIO key > # cat /sys/bus/platform/drivers/brcmstb-gpio/f04172c0.gpio/power/wakeup > enabled > # cat /sys/bus/platform/drivers/brcmstb-gpio/f04172c0.gpio/power/wakeup_count > 1 > > Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com> > --- > v4: rename __brcmstb_gpio_irq_set_wake() to brcmstb_gpio_priv_set_wake(). Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web