From: alex lemberg <alex.lemberg@sandisk.com>
To: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org
Cc: avi.shchislowski@sandisk.com, alex lemberg <alex.lemberg@sandisk.com>
Subject: [PATCH 1/3] mmc: replacing hardcoded value for runtime PM suspend
Date: Thu, 1 Sep 2016 17:24:48 +0300 [thread overview]
Message-ID: <1472739890-3384-2-git-send-email-alex.lemberg@sandisk.com> (raw)
In-Reply-To: <1472739890-3384-1-git-send-email-alex.lemberg@sandisk.com>
Add MMC_AUTOSUSPEND_DELAY_MS define
Signed-off-by: alex lemberg <alex.lemberg@sandisk.com>
---
drivers/mmc/card/block.c | 3 ++-
include/linux/mmc/host.h | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 48a5dd7..f4386ed 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -2610,7 +2610,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 aa4bfbf..8cb8218 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
next prev parent reply other threads:[~2016-09-01 14:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-01 14:24 [PATCH 0/3] mmc: Check BKOPS Level On Runtime Suspend alex lemberg
2016-09-01 14:24 ` alex lemberg [this message]
2016-09-02 7:39 ` [PATCH 1/3] mmc: replacing hardcoded value for runtime PM suspend Shawn Lin
2016-09-04 13:30 ` Alex Lemberg
2016-10-13 7:36 ` Ulf Hansson
2016-10-13 8:30 ` Shawn Lin
2016-10-31 9:53 ` Alex Lemberg
2016-09-01 14:24 ` [PATCH 2/3] mmc: Adding AUTO_BKOPS_EN bit set for Auto BKOPS support alex lemberg
2016-09-02 7:50 ` Shawn Lin
2016-09-04 13:22 ` Alex Lemberg
2016-10-13 7:36 ` Ulf Hansson
2016-10-31 9:53 ` Alex Lemberg
2016-09-01 14:24 ` [PATCH 3/3] mmc: Checking BKOPS status prior to Suspend alex lemberg
2016-10-13 7:36 ` Ulf Hansson
2016-10-31 9:53 ` Alex Lemberg
2016-09-26 15:10 ` [PATCH 0/3] mmc: Check BKOPS Level On Runtime Suspend Alex Lemberg
[not found] <1472706726-893-1-git-send-email-alex.lemberg@sandisk.com>
2016-10-13 7:36 ` [PATCH 1/3] mmc: replacing hardcoded value for runtime PM suspend Ulf Hansson
2016-10-31 9:53 ` Alex Lemberg
-- strict thread matches above, loose matches on Subject: below --
2017-01-17 12:15 [PATCH 0/3] Auto BKOPS " Uri Yanai
2017-01-17 12:15 ` [PATCH 1/3] mmc: replacing hardcoded value for runtime " Uri Yanai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1472739890-3384-2-git-send-email-alex.lemberg@sandisk.com \
--to=alex.lemberg@sandisk.com \
--cc=avi.shchislowski@sandisk.com \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox