From 7358cbdb4e57e9a702ee2e6ee6e99253a138f733 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Wed, 20 Jul 2011 17:39:22 +0100 Subject: [PATCH] --- yaml --- r: 270240 b: refs/heads/master c: 08da834a24312157f512224691ad1fddd11c1073 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/mmc/core/host.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d2ad1d3ea321..b02e0871f17e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1e4cb22bb5094def8eb5c3893f9dda2d517d29bb +refs/heads/master: 08da834a24312157f512224691ad1fddd11c1073 diff --git a/trunk/drivers/mmc/core/host.c b/trunk/drivers/mmc/core/host.c index 793d0a0dad8d..ca2e4f50f615 100644 --- a/trunk/drivers/mmc/core/host.c +++ b/trunk/drivers/mmc/core/host.c @@ -301,6 +301,17 @@ struct mmc_host *mmc_alloc_host(int extra, struct device *dev) host->max_blk_size = 512; host->max_blk_count = PAGE_CACHE_SIZE / 512; + /* + * Enable runtime power management by default. This flag was added due + * to runtime power management causing disruption for some users, but + * the power on/off code has been improved since then. + * + * We'll enable this flag by default as an experiment, and if no + * problems are reported, we will follow up later and remove the flag + * altogether. + */ + host->caps = MMC_CAP_POWER_OFF_CARD; + return host; free: