]> err.no Git - linux-2.6/commit
mmc_spi: add support for card-detection polling
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 17 Jun 2008 14:17:21 +0000 (18:17 +0400)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 15 Jul 2008 12:14:41 +0000 (14:14 +0200)
commit619ef4b42128709de4d89d209b2c874f560deecd
tree9c813630ed396b5efb590303c84a1f2935502ca7
parent28f52482b41edc88cdf575aa6ed414c6e116ce10
mmc_spi: add support for card-detection polling

This patch adds new platform data variable "caps", so platforms
could pass theirs capabilities into MMC core (for example, platforms
without interrupt on the CD line will most probably want to pass
MMC_CAP_NEEDS_POLL).

New platform get_cd() callback provided to optimize polling.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/mmc_spi.c
include/linux/spi/mmc_spi.h