Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284498
b: refs/heads/master
c: 4137e50
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Boyd authored and Chris Ball committed Jan 12, 2012
1 parent db0e850 commit a5179a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b678b91f22debd5f8efa04895652989004761d06
refs/heads/master: 4137e50494cb3496fbb6ccd27aa7b6d7c9634c1e
2 changes: 1 addition & 1 deletion trunk/Documentation/mmc/mmc-dev-attrs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 1 addition & 5 deletions trunk/drivers/mmc/core/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
}

Expand Down

0 comments on commit a5179a2

Please sign in to comment.