]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Allow the platform to specify the sh_mobile_sdhi get_cd handler
authorArnd Hannemann <arnd@arndnet.de>
Tue, 24 Aug 2010 15:27:00 +0000 (17:27 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:29:11 +0000 (00:29 +0200)
commitfc65de5a354a2b7e6dbf310f7b23390aca0b0fcc
tree3c5866f8d91ee453491db747d7893dc379239ae5
parentad9fb526f036777feaf9549182db6eb6efd8edf5
mfd: Allow the platform to specify the sh_mobile_sdhi get_cd handler

On some platforms (e.g. AP4EVB) the card detect pin of a slot is not
directly connected to the sdhi hardware, so that polling needs to be used
with tmio_mmc and card detection is handled in the platform code.
This patch allows to set tmio_mmc capabilities (to pass the
MMC_CAP_NEEDS_POLL flag) and exposes a get_cd hook for that purpose.

Signed-off-by: Arnd Hannemann <arnd@arndnet.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/sh_mobile_sdhi.c
include/linux/mfd/sh_mobile_sdhi.h