android_kernel_samsung_msm8976/drivers/mmc/core
Ulf Hansson 3a594af2bf mmc: core: Enable power_off_notify for eMMC shutdown sequence
In suspend mode it is important to save power. If the host is able to
cut buth vcc and vccq, the MMC_CAP2_POWEROFF_NOTIFY shall be set. It
will mean the card will be completely powered down at suspend and the
power off notification cmd will be sent prior power down.

It seems common not being able to cut both vcc and vccq for a host. In
this situation we issue the sleep cmd in favor of the power off
notification cmd, to save more power.

While maintainng the above policy, we also want to make use of the
power off notification in the shutdown sequence, even in the case were
the host has not set MMC_CAP2_POWEROFF_NOTIFY, since we know vcc and
vccq will regardless be cut.

We accomplish this by always enabling the power off notification byte
in the EXT_CSD and issue the power off notification when either
MMC_CAP2_POWEROFF_NOTIFY is set or we are executing a shutdown.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Git-commit: 020586d24e5dce45b0738d9340636c9f1688237f
Git-repo: https://android.googlesource.com/kernel/common.git
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
2015-09-16 18:20:21 +05:30
..
bus.c mmc: core: Extend shutdown sequence to handle bus operations 2015-09-16 18:20:21 +05:30
bus.h
core.c mmc: block: fix dump cmdq registers on request timeout 2015-07-31 13:43:05 +05:30
core.h mmc: core: Extend shutdown sequence to handle bus operations 2015-09-16 18:20:21 +05:30
debugfs.c mmc: core: Fix debugfs and IOCTL calls in cmdq mode 2015-07-01 01:02:23 -07:00
host.c mmc: host: Notify LLD with mmc dev PM status 2015-08-18 07:47:56 -07:00
host.h
Kconfig
Makefile
mmc.c mmc: core: Enable power_off_notify for eMMC shutdown sequence 2015-09-16 18:20:21 +05:30
mmc_ops.c mmc: block: Add error handling to command queue host 2015-05-27 14:40:59 -07:00
mmc_ops.h mmc: block: Add error handling to command queue host 2015-05-27 14:40:59 -07:00
quirks.c
sd.c mmc: core: Add shutdown callback for SD bus_ops 2015-09-16 18:20:21 +05:30
sd.h
sd_ops.c
sd_ops.h
sdio.c
sdio_bus.c
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c
sdio_ops.c
sdio_ops.h
slot-gpio.c