mmc: core: Signal wakeup event at card insert/removal
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 20 Sep 2013 09:02:35 +0000 (11:02 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 11:16:55 +0000 (19:16 +0800)
commit4f1281ae2de714c34e3c0dfeccf7635690d013dd
tree2c2ab599964e25b3b706eb17234173d44d1eb932
parent8787949b4e216a78ec35254b2a2c91dcce2ebce7
mmc: core: Signal wakeup event at card insert/removal

We want to give user space provision to fully consume a card
insert/remove event, when the event was caused by a wakeup irq.

By signaling the wakeup event for a time of 5 s for devices configured
as wakeup capable, we likely will be prevent a sleep long enough to let
user space consume the event.

To enable this feature, host drivers must thus configure their devices
as wakeup capable.

This is a reworked implementation of the old wakelocks for the mmc
subsystem, originally authored by Colin Cross and San Mehat for the
Android kernel. Zoran Markovic shall also be given cred for recently
re-trying to upstream this feature.

Cc: San Mehat <san@google.com>
Cc: Colin Cross <ccross@android.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Zoran Markovic <zoran.markovic@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Zoran Markovic <zoran.markovic@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Conflicts:
drivers/mmc/core/core.c
drivers/mmc/core/core.c