summaryrefslogtreecommitdiffstats
path: root/arch/c6x/include/asm/mm-arch-hooks.h
diff options
context:
space:
mode:
authorGregory Fong <gregory.0xf0@gmail.com>2015-08-01 03:17:44 +0200
committerLinus Walleij <linus.walleij@linaro.org>2015-08-13 13:13:41 +0200
commit3afa129a9de0957d72165cf08a54e5c69938011c (patch)
tree0f87a892345b295acebedecdcb85912161767cab /arch/c6x/include/asm/mm-arch-hooks.h
parentgpio: brcmstb: Add interrupt and wakeup source support (diff)
downloadlinux-3afa129a9de0957d72165cf08a54e5c69938011c.tar.xz
linux-3afa129a9de0957d72165cf08a54e5c69938011c.zip
gpio: brcmstb: support wakeup from S5 cold boot
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> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/c6x/include/asm/mm-arch-hooks.h')
0 files changed, 0 insertions, 0 deletions