Re: [PATCH v4 04/15] mmc: sdhci: keep the saved clock var up to date

2012-09-27 Thread zhangfei gao
On Wed, Sep 26, 2012 at 7:38 PM, Kevin Liu keyuan@gmail.com wrote: From: Kevin Liu kl...@marvell.com The clock rate set to the sdh controller may not exactly as requested by the mmc core, this patch make the clock rate saved in the mmc_ios and sdhci_host updated with the actual setting as

Re: [PATCH v4 06/15] mmc: sdhci-pxav3: controller can't get base clock

2012-09-27 Thread zhangfei gao
On Wed, Sep 26, 2012 at 7:38 PM, Kevin Liu keyuan@gmail.com wrote: From: Kevin Liu kl...@marvell.com Enable the quirk SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN since SD_CAPABILITIES_1[15:8](BASE_FREQ) can't get correct base clock value. It return a fixed pre-set value like 200 on some

Re: [PATCH v4 11/15] mmc: sdhci-pxav3: add signal_voltage_switch function

2012-09-27 Thread zhangfei gao
+ if (pdata pdata-signal_voltage_switch) + pdata-signal_voltage_switch(set); +} + #ifdef CONFIG_OF diff --git a/include/linux/platform_data/pxa_sdhci.h b/include/linux/platform_data/pxa_sdhci.h index fdf38d6..3b94ab1 100644 ---

Re: [PATCH v4 09/15] mmc: sdhci-pxav3: add quirks2

2012-09-27 Thread zhangfei gao
diff --git a/include/linux/platform_data/pxa_sdhci.h b/include/linux/platform_data/pxa_sdhci.h index 59acd98..fdf38d6 100644 --- a/include/linux/platform_data/pxa_sdhci.h +++ b/include/linux/platform_data/pxa_sdhci.h @@ -38,6 +38,7 @@ * @max_speed: the maximum speed supported *

Re: [PATCH v4 12/15] mmc: core: add new 1.8v flag for mmc

2012-09-27 Thread Ulf Hansson
Hi Kevin, On 26 September 2012 13:38, Kevin Liu keyuan@gmail.com wrote: From: Kevin Liu kl...@marvell.com Mmc does NOT have special sequence requirements for 1.8v signal voltage setting compared to sd and sdio. Add a new 1.8v flag for mmc so as to use the same

Re: [RFC PATCH 10/13] spi: omap2-mcspi: dma_request_slave_channel() support for DT platforms

2012-09-27 Thread Vinod Koul
On Fri, 2012-09-21 at 14:37 -0400, Matt Porter wrote: On Fri, Sep 21, 2012 at 08:42:47AM -0700, Tony Lindgren wrote: Can't we come up with a version of dma_request_slave_channel that works both ways for now: mcspi_dma-dma_rx = dma_request_slave_channel_compat(mask,

Re: [RFC PATCH 08/13] mmc: omap_hsmmc: limit max_segs with the EDMA DMAC

2012-09-27 Thread Vinod Koul
On Fri, 2012-09-21 at 19:47 +0100, Russell King - ARM Linux wrote: On Fri, Sep 21, 2012 at 10:45:29PM +0530, S, Venkatraman wrote: On Thu, Sep 20, 2012 at 8:13 PM, Matt Porter mpor...@ti.com wrote: The EDMA DMAC has a hardware limitation that prevents supporting scatter gather lists with

Re: [PATCH v4 12/15] mmc: core: add new 1.8v flag for mmc

2012-09-27 Thread Kevin Liu
Hi, Ulf 2012/9/27 Ulf Hansson ulf.hans...@linaro.org: Hi Kevin, On 26 September 2012 13:38, Kevin Liu keyuan@gmail.com wrote: From: Kevin Liu kl...@marvell.com Mmc does NOT have special sequence requirements for 1.8v signal voltage setting compared to sd and sdio. Add a new 1.8v flag

Re: [PATCH] mmc: omap_hsmmc: Enable HSPE bit for high speed cards

2012-09-27 Thread Koen Kooi
Op 26 sep. 2012, om 13:37 heeft Hebbar, Gururaja gururaja.heb...@ti.com het volgende geschreven: On Wed, Sep 12, 2012 at 17:32:38, Hebbar, Gururaja wrote: On Wed, Sep 12, 2012 at 14:19:51, S, Venkatraman wrote: On Tue, Sep 4, 2012 at 6:39 PM, Hebbar, Gururaja gururaja.heb...@ti.com wrote:

RE: [PATCH] mmc: Fixup broken suspend and eMMC4.5 power off notify

2012-09-27 Thread Tanya Brokhman
Hi Ulf We've tested your change. It seems to be working fine. We mainly focused on testing stability and that the performance wasn't decreased. All tests passed. As far as performance improvement: it wasn't affected because of BKOPs feature. Please let me know if there is any specific test

RE: [PATCH] mmc: omap_hsmmc: Enable HSPE bit for high speed cards

2012-09-27 Thread Hebbar, Gururaja
On Thu, Sep 27, 2012 at 16:31:14, Koen Kooi wrote: Op 26 sep. 2012, om 13:37 heeft Hebbar, Gururaja gururaja.heb...@ti.com het volgende geschreven: On Wed, Sep 12, 2012 at 17:32:38, Hebbar, Gururaja wrote: On Wed, Sep 12, 2012 at 14:19:51, S, Venkatraman wrote: On Tue, Sep 4, 2012 at

Re: [PATCH v4 14/15] mmc: sdhci: fix the bug that DDR50 can't work for emmc

2012-09-27 Thread Girish K S
On 27 September 2012 00:04, Kevin Liu keyuan@gmail.com wrote: 2012/9/26 Girish K S girish.shivananja...@linaro.org: On 26 September 2012 20:38, Kevin Liu keyuan@gmail.com wrote: From: Kevin Liu kl...@marvell.com Host controller must enable 1.8v signal for UHS modes. Otherwise UHS

Re: [PATCH v4 12/15] mmc: core: add new 1.8v flag for mmc

2012-09-27 Thread Ulf Hansson
On 27 September 2012 12:39, Kevin Liu keyuan@gmail.com wrote: Hi, Ulf 2012/9/27 Ulf Hansson ulf.hans...@linaro.org: Hi Kevin, On 26 September 2012 13:38, Kevin Liu keyuan@gmail.com wrote: From: Kevin Liu kl...@marvell.com Mmc does NOT have special sequence requirements for 1.8v

[RFC/PATCH] mmc: core: Fixup signal voltage switch

2012-09-27 Thread Johan Rudholm
When switching SD and SDIO cards from 3.3V to 1.8V signal levels, the clock should be gated for 5 ms during the step. After enabling the clock, the host should wait for at least 1 ms before checking for failure. Failure by the card to switch is indicated by dat[0:3] being pulled low. The host

Re: [PATCH v4 09/15] mmc: sdhci-pxav3: add quirks2

2012-09-27 Thread Kevin Liu
2012/9/27 zhangfei gao zhangfei@gmail.com: diff --git a/include/linux/platform_data/pxa_sdhci.h b/include/linux/platform_data/pxa_sdhci.h index 59acd98..fdf38d6 100644 --- a/include/linux/platform_data/pxa_sdhci.h +++ b/include/linux/platform_data/pxa_sdhci.h @@ -38,6 +38,7 @@ *

mmc:block: Some damaged SD card always reports its state is PROGRAMMING

2012-09-27 Thread Yuchi Xu
Dear maintainers Some damaged sd card always report its state is PROGRAMMING. The code paste below in block.c(linux kernel 3.4) will be a dead loop. /* * Everything else is either success, or a data error of some * kind. If it was a write, we may have

[PATCH Resend 2/2] mmc: sdhci-spear: Add clk_{un}prepare() support

2012-09-27 Thread Viresh Kumar
clk_{un}prepare is mandatory for platforms using common clock framework. Since this driver is used by SPEAr platform, which supports common clock framework, add clk_{un}prepare() support for it. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/mmc/host/sdhci-spear.c | 10

[PATCH Resend 1/2] mmc: sdhci-spear: add device tree bindings

2012-09-27 Thread Viresh Kumar
This adds simple DT bindings for SDHCI SPEAr controller. It uses cd-gpios from common mmc bindings. This also fixes spear300-evb.dts with correct name for card detect binding. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org --- V1-resend: - Use cd-gpios instead of int-gpio as binding for

[PATCH] mmc: dw_mmc: convert the variable type of irq

2012-09-27 Thread Seungwon Jeon
Even though platform_get_irq returns error, 'host-irq' always has an unsigned value. Less-than-zero comparison of an unsigned value is never true. Type of 'unsigned int' will be changed for 'int'. Signed-off-by: Seungwon Jeon tgih@samsung.com --- include/linux/mmc/dw_mmc.h |2 +- 1 files