mmc: tmio: runtime suspend the controller, where possible
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 11 May 2011 16:51:11 +0000 (16:51 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 03:53:55 +0000 (23:53 -0400)
commit7311bef0697bcfbbcb898c3c22e61e23f203ae9d
tree0ef14a5a255472ba32473c54679af43866265387
parentd6a1f863433bdf3f8406dedfa33fa79ee9259db3
mmc: tmio: runtime suspend the controller, where possible

The TMIO MMC controller cannot be powered off to save power, when no
card is plugged in, because then it will not be able to detect a new
card-insertion event. On some implementations, however, it is
possible to switch to using another source to detect card insertion.
This patch adds support for such implementations.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_pio.c
include/linux/mfd/tmio.h