Re: [PATCH] mmc/sdio: don't allow interface to runtime-suspend until probe is finished.

2011-12-09 Thread NeilBrown
On Mon, 5 Dec 2011 21:37:07 +0200 Ohad Ben-Cohen wrote: > On Mon, Dec 5, 2011 at 9:06 PM, NeilBrown wrote: > > Challenge accepted. > > cool :) > > > Even if I don't find a better solution, this seems backwards.  Sure the > > default should be that PM is enabled, but individual board can reques

[PATCH] mmc: esdhc-imx: fix reading of SDHCI_HOST_VERSION when controller version isn't 3.

2011-12-09 Thread Zhang Xinlin
According to the IMX25RMAD: eSDHC version value 1.00x00 2.00x10 2.10x11 2.20x12 Signed-off-by: Zhang Xinlin --- drivers/mmc/host/sdhci-esdhc-imx.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) dif

Re: [PATCH] mmc: sdio: optimization for process_sdio_pending_irq

2011-12-09 Thread Nicolas Pitre
On Fri, 9 Dec 2011, Sangwook Lee wrote: > Skip fillng in mmc_command struct for CCCR_INTx > everytime sdio_irq_thread (process_sdio_pending_irqs) > calls mmc_io_rw_direct. > > Signed-off-by: Sangwook Lee Is there a real advantage doing this? While you might be saving on a few stores, you are i

[PATCH] mmc: sdio: optimization for process_sdio_pending_irq

2011-12-09 Thread Sangwook Lee
Skip fillng in mmc_command struct for CCCR_INTx everytime sdio_irq_thread (process_sdio_pending_irqs) calls mmc_io_rw_direct. Signed-off-by: Sangwook Lee --- drivers/mmc/core/sdio_irq.c |2 +- drivers/mmc/core/sdio_ops.c | 40 drivers/mmc/core/sdio_

[PATCH] sdhci: Always pass clock request value zero to set_clock host op

2011-12-09 Thread Adrian Hunter
From: Todd Poynor To allow the set_clock host op to disable the SDCLK source when not needed, always call the host op when the requested clock speed is zero. Do this even if host->clock already equals zero, because the SDHCI driver may set that value (without calling the host op) to force an upd

Re: mmc: dw_mmc: Add more capabilities field

2011-12-09 Thread James Hogan
On 9 December 2011 05:49, Seungwon Jeon wrote: > Signed-off-by: Seungwon Jeon A commit message would be useful. > --- >  drivers/mmc/host/dw_mmc.c  |    6 ++ >  include/linux/mmc/dw_mmc.h |    1 + >  2 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/drivers/mmc/host/dw_mmc.c

Re: [PATCH V2 0/4] mmc: sdhci/sdhci-pci: prepare for wl12xx/SDIO

2011-12-09 Thread Adrian Hunter
On 02/11/11 08:57, Adrian Hunter wrote: > Hi > > Here are some changes (V2) to allow wl12xx/SDIO to be set up for sdhci-pci. > There a a couple of fixes plus a method to get platform data. The > changes to the platform files are not included in this patchset. > > > V2: change sdhci_pci_get_data

Re: [PATCH 2/4] MMC/SD: Add callback function to detect card

2011-12-09 Thread Adrian Hunter
On 05/12/11 11:23, r66...@freescale.com wrote: > From: Jerry Huang > > In order to check whether the card has been removed, the function > mmc_send_status() will send command CMD13 to card and ask the card > to send its status register to sdhc driver, which will generate > many interrupts repeate

[PATCH v2 2/2] mmc: core: Add claiming a host during mmc_cache_ctrl

2011-12-09 Thread Seungwon Jeon
While calling mmc_cache_ctrl() a host is not claimed. This patch adds the mmc_try_claim_host() for quick response in suspend. Signed-off-by: Seungwon Jeon --- drivers/mmc/core/core.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers

[PATCH v2 1/2] mmc: core: Separate the timeout value for cache-ctrl

2011-12-09 Thread Seungwon Jeon
Turning the cache off implies flushing cache which doesn't define maximum timeout unlike cache-on. This patch will apply the generic CMD6 timeout only for cache-on. Additionally the kernel message is added for checking failure case of cache-on. Signed-off-by: Seungwon Jeon --- Changes in v2:

[PATCH v2 0/2] mmc: core: Fix cache control for eMMC4.5

2011-12-09 Thread Seungwon Jeon
This patch-set fixed the cache control for eMMC4.5 Changes in v2: - clear the cache_ctrl flag for a failure(enabling cache) Seungwon Jeon (2): mmc: core: Separate the timeout value for cache-ctrl mmc: core: Add claiming a host during mmc_cache_ctrl drivers/mmc/core/core.c | 29