Adds define MMC_RUNTIME_SUSPEND_DELAY_MS for setting delay time(in milliseconds) before entering device runtime suspend. Setting the default to 3000 milliseconds. Change-Id: Ifab084cc01d8dff8c79606f8de0858f0821e98bc Signed-off-by: Uri Yanai <uri.yanai@xxxxxxxxxxx> Signed-off-by: Alex Lemberg <alex.lemberg@xxxxxxxxxxx> --- drivers/mmc/core/block.c | 3 ++- include/linux/mmc/host.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index 6648a17..7954f15 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -2202,7 +2202,8 @@ static int mmc_blk_probe(struct mmc_card *card) goto out; } - pm_runtime_set_autosuspend_delay(&card->dev, 3000); + pm_runtime_set_autosuspend_delay(&card->dev, + MMC_RUNTIME_SUSPEND_DELAY_MS); pm_runtime_use_autosuspend(&card->dev); /* diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 8bc8841..4a0b30f 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -22,6 +22,8 @@ #include <linux/mmc/mmc.h> #include <linux/mmc/pm.h> +#define MMC_RUNTIME_SUSPEND_DELAY_MS 3000 + struct mmc_ios { unsigned int clock; /* clock rate */ unsigned short vdd; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html