From: Sujit Reddy Thumma <sthumma@codeaurora.org>
To: Stephen Boyd <sboyd@codeaurora.org>
Cc: Chris Ball <cjb@laptop.org>, linux-mmc@vger.kernel.org
Subject: Re: [PATCH-next] mmc: core: Fixup delayed work clock gating patch
Date: Tue, 06 Dec 2011 14:22:11 +0530 [thread overview]
Message-ID: <4EDDD7BB.5040506@codeaurora.org> (raw)
In-Reply-To: <1323109724-30898-1-git-send-email-sboyd@codeaurora.org>
On 12/5/2011 11:58 PM, Stephen Boyd wrote:
> c31b50e (mmc: core: Use delayed work in clock gating framework,
> 2011-11-14) missed a few things during review:
>
> o A useless pr_info()
>
> o milliseconds was written as two words
>
> o The sysfs file had units in its output
>
> Fix all three problems.
>
> Cc: Sujit Reddy Thumma<sthumma@codeaurora.org>
> Signed-off-by: Stephen Boyd<sboyd@codeaurora.org>
> ---
>
> Feel free to squash if desired.
>
> Documentation/mmc/mmc-dev-attrs.txt | 2 +-
> drivers/mmc/core/host.c | 6 +-----
> 2 files changed, 2 insertions(+), 6 deletions(-)
Thanks Stephen.
>
> diff --git a/Documentation/mmc/mmc-dev-attrs.txt b/Documentation/mmc/mmc-dev-attrs.txt
> index b024556..22ae844 100644
> --- a/Documentation/mmc/mmc-dev-attrs.txt
> +++ b/Documentation/mmc/mmc-dev-attrs.txt
> @@ -71,6 +71,6 @@ SD/MMC/SDIO Clock Gating Attribute
> Read and write access is provided to following attribute.
> This attribute appears only if CONFIG_MMC_CLKGATE is enabled.
>
> - clkgate_delay Tune the clock gating delay with desired value in milli seconds.
> + clkgate_delay Tune the clock gating delay with desired value in milliseconds.
>
> echo<desired delay> > /sys/class/mmc_host/mmcX/clkgate_delay
> diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
> index 835e86a..c152ce0c 100644
> --- a/drivers/mmc/core/host.c
> +++ b/drivers/mmc/core/host.c
> @@ -58,8 +58,7 @@ static ssize_t clkgate_delay_show(struct device *dev,
> struct device_attribute *attr, char *buf)
> {
> struct mmc_host *host = cls_dev_to_mmc_host(dev);
> - return snprintf(buf, PAGE_SIZE, "%lu millisecs\n",
> - host->clkgate_delay);
> + return snprintf(buf, PAGE_SIZE, "%lu\n", host->clkgate_delay);
> }
>
> static ssize_t clkgate_delay_store(struct device *dev,
> @@ -74,9 +73,6 @@ static ssize_t clkgate_delay_store(struct device *dev,
> spin_lock_irqsave(&host->clk_lock, flags);
> host->clkgate_delay = value;
> spin_unlock_irqrestore(&host->clk_lock, flags);
> -
> - pr_info("%s: clock gate delay set to %lu ms\n",
> - mmc_hostname(host), value);
> return count;
> }
>
next prev parent reply other threads:[~2011-12-06 8:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-14 8:23 [PATCH V3] mmc: core: Use delayed work in clock gating framework Sujit Reddy Thumma
2011-11-14 13:15 ` Chris Ball
2011-11-15 5:12 ` Sujit Reddy Thumma
2011-11-15 13:12 ` Chris Ball
2011-11-15 18:51 ` Stephen Boyd
2011-12-05 18:28 ` [PATCH-next] mmc: core: Fixup delayed work clock gating patch Stephen Boyd
2011-12-06 8:52 ` Sujit Reddy Thumma [this message]
2011-12-08 3:58 ` Chris Ball
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=4EDDD7BB.5040506@codeaurora.org \
--to=sthumma@codeaurora.org \
--cc=cjb@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=sboyd@codeaurora.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;
as well as URLs for NNTP newsgroup(s).