linux-uconsole/drivers
Ulf Hansson 10d03026fe mmc: block: Enable runtime pm for mmc blkdevice
Once the mmc blkdevice is being probed, runtime pm will be enabled.
By using runtime autosuspend, the power save operations can be done
when request inactivity occurs for a certain time. Right now the
selected timeout value is set to 3 s. Obviously this value will likely
need to be configurable somehow since it needs to be trimmed depending
on the power save algorithm.

For SD-combo cards, we are still leaving the enablement of runtime PM
to the SDIO init sequence since it depends on the capabilities of the
SDIO func driver.

Moreover, when the blk device is being suspended, we make sure the device
will be runtime resumed. The reason for doing this is that we want the
host suspend sequence to be unaware of any runtime power save operations
done for the card in this phase. Thus it can just handle the suspend as
the card is fully powered from a runtime perspective.

Finally, this patch prepares to make it possible to move BKOPS handling
into the runtime callbacks for the mmc bus_ops. Thus IDLE BKOPS can be
accomplished.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

Conflicts:
	drivers/mmc/card/block.c
2014-03-07 19:49:54 +08:00
..
accessibility
acpi PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
adc rk319x: add initial support 2013-11-05 14:52:23 +08:00
amba PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
ata PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
atm atm: idt77252: fix dev refcnt leak 2013-12-08 07:29:25 -08:00
auxdisplay
base PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
bcma rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
block rbd: fix error handling from rbd_snap_name() 2014-01-09 12:24:26 -08:00
bluetooth Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android+android-common-3.10' into develop-3.10 2013-11-11 14:38:40 +08:00
bus drivers/bus: arm-cci:nobody uses cci_pmu_destroy 2013-08-06 13:49:24 +01:00
cdrom rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
char Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android 2014-01-16 09:17:42 +08:00
cir
clk rk3188:linux3.10: add ddr clk node ops 2014-02-28 00:40:56 -08:00
clocksource Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android' into develop-3.10 2014-02-10 16:23:36 +08:00
cmmb
connector connector: improved unaligned access error fix 2013-12-08 07:29:25 -08:00
cpufreq Merge branch 'linaro-android-3.10-lsk' of git://git.linaro.org/people/jstultz/android into linux-linaro-lsk-android 2014-01-22 15:36:05 +00:00
cpuidle rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
crypto rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
dca
devfreq
dio
dma PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
edac edac, highbank: Fix interrupt setup of mem and l2 controller 2013-12-04 10:57:15 -08:00
eisa
extcon extcon: adc-jack: Use power efficient workqueue 2013-12-17 21:34:13 +00:00
firewire firewire: sbp2: bring back WRITE SAME support 2014-01-09 12:24:21 -08:00
firmware dmi: add support for exact DMI matches in addition to substring matching 2013-11-29 11:11:53 -08:00
gator gator-driver: Handle task struct correctly 2014-01-03 17:46:16 +08:00
gpio PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
gpu Add rockchip ion 2014-02-11 15:09:09 +08:00
headset_observe headset: mod log error && mic mistake 2013-10-14 15:43:53 +08:00
hid Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android 2014-01-16 09:17:42 +08:00
hsi
hv Drivers: hv: balloon: Do not post pressure status if interrupted 2013-08-04 16:50:58 +08:00
hwmon hwmon: (coretemp) Fix truncated name of alarm attributes 2014-01-25 08:27:11 -08:00
hwspinlock rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
i2c PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
ide rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
idle x86 idle: Repair large-server 50-watt idle-power regression 2014-01-09 12:24:21 -08:00
iio saradc: rockchip: fix some codes about clk 2014-02-25 17:41:59 +08:00
infiniband iser-target: fix error return code in isert_create_device_ib_res() 2014-01-09 12:24:20 -08:00
input rk3188 tp: ct365 2014-03-06 16:13:08 +08:00
iommu iommu: Remove stack trace from broken irq remapping warning 2013-12-08 07:29:27 -08:00
ipack
irqchip irqchip: gic: fix fiq debugger support when resume 2014-02-20 14:23:25 +08:00
isdn net: rework recvmsg handler msg_name and msg_namelen logic 2013-12-08 07:29:25 -08:00
leds Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android+android-common-3.10' into develop-3.10 2013-11-11 14:38:40 +08:00
lguest
macintosh powerpc/windfarm: Fix noisy slots-fan on Xserve (rm31) 2013-08-11 18:35:20 -07:00
mailbox
md md/raid5: Fix possible confusion when multiple write errors occur. 2014-01-25 08:27:12 -08:00
media Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android' into develop-3.10 2014-02-10 16:23:36 +08:00
memory
memstick
message
mfd PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
misc Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android' into develop-3.10 2013-12-16 14:23:41 +08:00
mmc mmc: block: Enable runtime pm for mmc blkdevice 2014-03-07 19:49:54 +08:00
mtd rknand:remove debug log. 2014-02-08 16:13:02 +08:00
mtk_wcn_bt mt6622: support wake up host 2013-07-03 17:08:35 +08:00
mtk_wcn_combo MT6620: eliminate the warning about mt6620-gps 2013-07-12 09:30:32 +08:00
net support 3188 vmac 2014-03-07 09:13:02 +08:00
nfc
ntb NTB: Correct debugfs to work with more than 1 NTB Device 2013-11-13 12:05:35 +09:00
nubus
of Merge remote-tracking branch 'stable/linux-3.10.y' into linux-linaro-lsk 2014-01-10 10:50:57 +08:00
oprofile rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
parisc parisc: Fix interrupt routing for C8000 serial ports 2013-08-11 18:35:21 -07:00
parport
pci PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
pcmcia rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
pinctrl pinctrl:add suspend and resume function 2014-03-03 15:47:40 +08:00
platform rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
pnp rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
power Merge remote-tracking branch 'lsk/v3.10/topic/android-fixes' into linux-linaro-lsk-android 2013-11-14 15:43:52 +00:00
pps
ps3
ptp rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
pwm pwm: solve the bug sleeping function called from invalid context at kernel/mutex.c:413 2014-02-11 11:19:03 +08:00
rapidio rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
regulator regulator: core: Split devres code out into a separate file 2014-03-07 14:05:47 +08:00
remoteproc
reset
rpmsg
rtc Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android' into develop-3.10 2014-02-10 16:23:36 +08:00
s390 s390/3270: fix allocation of tty3270_screen structure 2014-01-09 12:24:24 -08:00
sbus
scsi PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
sfi
sh PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
smc
sn
spi PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
ssb rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
ssbi
staging rk: ion: to view the CMA heap debug information through bitmap 2014-03-06 11:08:26 +08:00
switch rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
target target/file: Update hw_max_sectors based on current block_size 2014-01-09 12:24:20 -08:00
tc
testcode
thermal
tty PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
uio Fix a few incorrectly checked [io_]remap_pfn_range() calls 2013-11-13 12:05:33 +09:00
usb PM / Runtime: Rework the "runtime idle" helper routine 2014-03-07 12:52:24 +08:00
uwb rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
vfio
vhost vhost/scsi: Fix incorrect usage of get_user_pages_fast write parameter 2013-11-13 12:05:32 +09:00
video upload iep driver for linux kernel 3.10 2014-03-06 20:14:38 +08:00
virt
virtio rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
vlynq
vme
w1 rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
watchdog rk serial:DMA use new interfaces, and use some interfaces with devm_ prefix 2014-03-04 17:25:09 +08:00
xen xen/gnttab: leave lazy MMU mode in the case of a m2p override failure 2013-12-11 22:36:27 -08:00
zorro rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
Kconfig rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00
Makefile rk: revert 20f3d0b+v3.0.66 to v3.0 2013-11-08 21:34:05 +08:00