]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: Allow the platform to specify the sh_mmcif get_cd handler
authorArnd Hannemann <arnd@arndnet.de>
Tue, 24 Aug 2010 15:27:01 +0000 (17:27 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:29:13 +0000 (00:29 +0200)
commit24e5ed30eb52d82d84c102779f2fb3a51ab9d0aa
tree24ee153012443783166946cac260c6ccc67de1b2
parentfc65de5a354a2b7e6dbf310f7b23390aca0b0fcc
mmc: Allow the platform to specify the sh_mmcif get_cd handler

In some platforms (e.g. AP4EVB) the card detect pin of a slot is not
directly connected to the sh_mmcif controller, so that polling needs
to be used. To overcome the overhead induced by querying the controller
on each poll cycle, card detection can be handled in the platform code
more efficiently.
This patch exposes a get_cd hook for that purpose.

Signed-off-by: Arnd Hannemann <arnd@arndnet.de>
Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mmc/host/sh_mmcif.c
include/linux/mmc/sh_mmcif.h