Re: mmci: U300 "sync with blockend" broken for multi-block?

2011-01-14 Thread Russell King - ARM Linux
On Fri, Jan 14, 2011 at 09:13:05PM +0100, Linus Walleij wrote: > 2011/1/5 Russell King - ARM Linux : > > > Any chance of pr_debug'ing the complete status register each time you > > service an interrupt?  You'll probably need to set the kernel log > > buffer fairly large to ensure that you capture

Re: mmci: U300 "sync with blockend" broken for multi-block?

2011-01-14 Thread Linus Walleij
2011/1/5 Russell King - ARM Linux : > Any chance of pr_debug'ing the complete status register each time you > service an interrupt?  You'll probably need to set the kernel log > buffer fairly large to ensure that you capture everything. I did this test now. Typical read/write test: dd if=/dev/mm

Re: [PATCH] mmc: sdhci-of does not build on x86

2011-01-14 Thread Chris Ball
Hi Michal, On Fri, Jan 14, 2011 at 01:29:51PM +0100, Michal Marek wrote: > After commit c10d1e2, CONFIG_OLPC selects CONFIG_OF, which enables to > select CONFIG_MMC_SDHCI_OF, which does not build on x86: > > drivers/mmc/host/sdhci-of-core.c:24:25: fatal error: asm/machdep.h: No > such file or dir

[PATCH] mmc: sdhci-of does not build on x86

2011-01-14 Thread Michal Marek
After commit c10d1e2, CONFIG_OLPC selects CONFIG_OF, which enables to select CONFIG_MMC_SDHCI_OF, which does not build on x86: drivers/mmc/host/sdhci-of-core.c:24:25: fatal error: asm/machdep.h: No such file or directory Signed-off-by: Michal Marek --- I don't know if the driver could possibly

[PATCH v1 3/3]mmc: not clock gate host when host is in runtime suspended state

2011-01-14 Thread Chuanxiao Dong
Since mmc clock gating is done in a work queue which is not synchronized with host runtime power management, when driver is doing clock gating, host may has already been power gated. So before driver clock gate host, check whether host is already suspended. Signed-off-by: Chuanxiao Dong --- dri

[PATCH v1 1/3]mmc: implemented runtime pm for mmc host

2011-01-14 Thread Chuanxiao Dong
MMC host need to power ungate host each time before sending a request and try to power gate host each time after the request is done. MMC host has a sysfs interface to let user specify the auto suspended delay. Each slot of the host controller can have a different delay for runtime suspended. Sig

[PATCH v1 2/3]mmc: implemented SDHCI host controller driver runtime pm

2011-01-14 Thread Chuanxiao Dong
add runtime power managment for sdhci pci host Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci-pci.c | 104 ++ drivers/mmc/host/sdhci.c | 39 drivers/mmc/host/sdhci.h |5 ++ 3 files changed, 148 insertions(+), 0 del

[PATCH v1 0/3]mmc: add runtime pm for mmc host stack

2011-01-14 Thread Chuanxiao Dong
Hi all, These are the version 1 patches for enabling runtime power management for mmc host driver stack. Right now runtime pm in mmc driver stack can only care about the power of SDIO card, not the host controller. Host controller also needs runtime pm to save power. MMC host ca