[PATCH 2/3] mmc_spi: add support for card-detection polling

2008-05-23 Thread Anton Vorontsov
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:

[PATCH 2/3] mmc_spi: add support for card-detection polling

2008-05-22 Thread Anton Vorontsov
If platform_data lacks init() callback (solely used to request card-detect interrupt), we mark the host as MMC_CAP_NEEDS_POLL. get_cd() host operation provided to optimize polling. Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- drivers/mmc/host/mmc_spi.c | 18 --