]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Initiate suspend|resume from mmc bus instead of mmc host
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2013 15:03:39 +0000 (17:03 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 16:39:17 +0000 (12:39 -0400)
commitf3978bf215b85c3d45049c7cebc296cd8428dc83
tree32c3d793438b848af46ff10b7fcb28cb3982e4d0
parent6dd73d24b174713708810eb7c960ab2f0356e730
mmc: core: Initiate suspend|resume from mmc bus instead of mmc host

The host should be responsible to suspend|resume the host and not the
card. This patch changes this behaviour, by moving the responsiblity
to the mmc bus instead which already holds the card device.

The exported functions mmc_suspend|resume_host are now to be considered
as depcrecated. Once all host drivers moves away from using them, we
can remove them. As of now, a successful error code is always returned.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/bus.c
drivers/mmc/core/core.c