RE: [Query] mmc/sdhci: Suspend hangs if card is inserted at suspend.

2011-11-14 Thread Dong, Chuanxiao
I am using a 2.6.35+, not a 3.0 kernel. So with the patch in my board, it works. Andrei Warkentin has mentioned that, if the mounted device contains root file system, that patch cannot fix this problem really since the device node will be changed after resuming back. That is also the reason not

Re: [Query] mmc/sdhci: Suspend hangs if card is inserted at suspend.

2011-11-14 Thread Viresh Kumar
On 11/15/2011 12:27 PM, Dong, Chuanxiao wrote: > Hi Viresh, > I also meet the hang issue when suspending a system with a mounted SD card. > Actually it caused by a dead lock of mmc_claim_host. Maybe we faced the same > issue. > So may be the two mails in the attachment can help you. Hi Dong, Yo

RE: [Query] mmc/sdhci: Suspend hangs if card is inserted at suspend.

2011-11-14 Thread Dong, Chuanxiao
Hi Viresh, I also meet the hang issue when suspending a system with a mounted SD card. Actually it caused by a dead lock of mmc_claim_host. Maybe we faced the same issue. So may be the two mails in the attachment can help you. Thanks Chuanxiao > -Original Message- > From: linux-mmc-ow..

[PATCH V4 11/14] serial: imx: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- drivers/tty/serial/imx.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 163fc90..8f3709f 100644 --- a/drivers/tty/serial/imx.

[PATCH V4 13/14] i2c: imx: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- drivers/i2c/busses/i2c-imx.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 58832e5..8d1ab6f 100644 --- a/drivers/i2c/bu

[PATCH V4 14/14] mmc: sdhci-esdhc-imx: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- drivers/mmc/host/sdhci-esdhc-imx.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index ae57769..f1ae37e 100644

[PATCH V4 10/14] ARM: mxs: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- arch/arm/mach-mxs/system.c |2 +- arch/arm/mach-mxs/timer.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mxs/system.c b/arch/arm/mach-mxs/system.c index 20ec3bd..9760a

[PATCH V4 12/14] net: fec: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- drivers/net/ethernet/freescale/fec.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c index 1124ce0..e96f

[PATCH V4 08/14] ARM: pm-imx5: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- arch/arm/mach-mx5/pm-imx5.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mx5/pm-imx5.c b/arch/arm/mach-mx5/pm-imx5.c index 98052fc..2bdc85f 100644 --- a/arch/arm/mach-mx5

[PATCH V4 09/14] ARM: mx31moboard: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- arch/arm/mach-imx/mach-mx31moboard.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-imx/mach-mx31moboard.c b/arch/arm/mach-imx/mach-mx31moboard.c index 07034f4..d1a9337 1006

[PATCH V4 05/14] ARM: mxc: epit: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- arch/arm/plat-mxc/epit.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-mxc/epit.c b/arch/arm/plat-mxc/epit.c index d3467f8..9129c9e 100644 --- a/arch/arm/plat-mxc/epit.c +++

[PATCH V4 04/14] ARM: mxc: pwm: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- arch/arm/plat-mxc/pwm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-mxc/pwm.c b/arch/arm/plat-mxc/pwm.c index 42d74ea..68c7199b 100644 --- a/arch/arm/plat-mxc/pwm.c +++

[PATCH V4 07/14] ARM: mxc: audmux-v2: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- arch/arm/plat-mxc/audmux-v2.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-mxc/audmux-v2.c b/arch/arm/plat-mxc/audmux-v2.c index 8cced35..0e51fc3 100644 --- a/arch/ar

[PATCH V4 03/14] ARM: mxc: ahci: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- arch/arm/plat-mxc/devices/platform-ahci-imx.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/plat-mxc/devices/platform-ahci-imx.c b/arch/arm/plat-mxc/devices/platfo

[PATCH V4 06/14] ARM: mxc: arch_reset: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- arch/arm/plat-mxc/system.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-mxc/system.c b/arch/arm/plat-mxc/system.c index 9dad8dc..a667adc 100644 --- a/arch/arm/plat-mxc/syst

[PATCH V4 02/14] ARM: mxc: time: add clk_prepare/clk_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao --- arch/arm/plat-mxc/time.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-mxc/time.c b/arch/arm/plat-mxc/time.c index 4b0fe28..b4e8b18 100644 --- a/arch/arm/plat-mxc/time.c +++

[PATCH V4 01/14] clk: add helper functions clk_prepare_enable and clk_disable_unprepare

2011-11-14 Thread Richard Zhao
It's for migrating to generic clk framework API. The helper functions help cases clk_enable/clk_disable is used in non-atomic context. For example, Call clk_enable in probe and clk_disable in remove. Signed-off-by: Richard Zhao --- include/linux/clk.h | 22 ++ 1 files cha

[PATCH V4 00/14] add clk_prepare/clk_unprepare to imx drivers

2011-11-14 Thread Richard Zhao
Changes since V3: - add more comments Changes since V2: - fix clk_prepare_enable bug Changes since V1: - Add common helper functions clk_prepare_enable/clk_disable_unprepare - serial/imx: move clk_disable_unprepare before clk_put Richard Zhao (14): clk: add helper functions clk_prepar

[PATCH] mmc: core: Fix power_off_notify during suspend

2011-11-14 Thread Girish K S
The eMMC 4.5 devices respond to only RESET and AWAKE command in the sleep state. Hence the mmc switch command to notify power off state should be sent before the device enters sleep state. This patch fixes the same. Signed-off-by: Girish K S --- drivers/mmc/core/core.c | 81 ++

Re: [Query] mmc/sdhci: Suspend hangs if card is inserted at suspend.

2011-11-14 Thread Viresh Kumar
On 11/12/2011 8:54 AM, Chris Ball wrote: > On Fri, Nov 11 2011, Viresh Kumar wrote: >> > Controller specific suspend/resume are still not called, so i think it >> > might >> > be related to core code. I am using 2.6.37 kernel version. >> > >> > Any help on this? > Please try to reproduce on 3.1 an

Re: [PATCH V3] mmc: core: Use delayed work in clock gating framework

2011-11-14 Thread Sujit Reddy Thumma
Hi Chris, On 11/14/2011 6:45 PM, Chris Ball wrote: Hi Sujit, On Mon, Nov 14 2011, Sujit Reddy Thumma wrote: Current clock gating framework disables the MCI clock as soon as the request is completed and enables it when a request arrives. This aggressive clock gating framework, when enabled, cau

[PATCH] mmc: sdhci-s3c: remove unnecessary code in sdhci_s3c_notify_change

2011-11-14 Thread Jaehoon Chung
This patch is removed the DEVICE_DEAD flag for sdhci-s3c. I didn't know why this flag is assigned. If this flag is set When card is removed, ENSDCLK bit in CLOCK control register is always set in sdhci_set_ios(). Because if device dead, be skipped set_ios. Signed-off-by: Jaehoon Chung Signed-off

Re: [PATCH 2/4] mmc: omap: adapt the hsmmc driver to device tree

2011-11-14 Thread Rajendra Nayak
On Tuesday 15 November 2011 03:00 AM, Tony Lindgren wrote: * Rajendra Nayak [04 04:16]: @@ -1869,6 +1957,14 @@ static int __init omap_hsmmc_probe(struct platform_device *pdev) struct omap_hsmmc_host *host = NULL; struct resource *res; int ret, irq; + const str

Re: [PATCH] mmc: sdio: support SDIO UHS cards

2011-11-14 Thread Philip Rakity
Chris, Checked out mmc-next from scratch and reapplied patch. I think the auto merge feature from my update may have changed things. Philip This patch adds support for sdio UHS cards per the version 3.0 spec. UHS mode is only enabled for version 3.0 cards when both the host and the controll

Re: [PATCH] mmc: sdio: support SDIO UHS cards

2011-11-14 Thread Chris Ball
Hi Philip, On Mon, Nov 14 2011, Philip Rakity wrote: > This patch adds support for sdio UHS cards per the version 3.0 > spec. > > UHS mode is only enabled for version 3.0 cards when both the > host and the controller support UHS modes. > > 1.8v signaling support is removed if both the card and the

Re: [PATCH 2/4] mmc: omap: adapt the hsmmc driver to device tree

2011-11-14 Thread Tony Lindgren
* Rajendra Nayak [04 04:16]: > @@ -1869,6 +1957,14 @@ static int __init omap_hsmmc_probe(struct > platform_device *pdev) > struct omap_hsmmc_host *host = NULL; > struct resource *res; > int ret, irq; > + const struct of_device_id *match; > + > + match = of_match_devi

[PATCH] mmc: sdio: support SDIO UHS cards

2011-11-14 Thread Philip Rakity
This patch adds support for sdio UHS cards per the version 3.0 spec. UHS mode is only enabled for version 3.0 cards when both the host and the controller support UHS modes. 1.8v signaling support is removed if both the card and the host do not support UHS. This is done to maintain compatibility

Re: [PATCH 1/1] [PATCH v4 1/1] mmc: Support of DUAL BUFFER DESC[ring] mode for dw_mmc

2011-11-14 Thread Shashidhar Hiremath
Hi Will, Just following up since i did not see any response from you on my earlier mail.. In previous mail, im not sure whether i gave you enough context/background.. So here it goes (apologies in advance if this turns out to be a lengthy mail...): 1>At Vayavya Labs, our work is to make sure tha

Re: [PATCH V3] mmc: core: Use delayed work in clock gating framework

2011-11-14 Thread Chris Ball
Hi Sujit, On Mon, Nov 14 2011, Sujit Reddy Thumma wrote: > Current clock gating framework disables the MCI clock as soon as the > request is completed and enables it when a request arrives. This aggressive > clock gating framework, when enabled, cause following issues: > > When there are back-to-b

[PATCH] mmc: block: release host in case of error

2011-11-14 Thread Per Forlin
Host is claimed as long as there are requests in the block queue and all request are completed successfully. If an error occur release the host in case someone else needs to claim it, for instance if the card is removed during a transfer. Signed-off-by: Per Forlin --- drivers/mmc/card/block.c |

[PATCH] mmc: mmc_test: align max_seg_size

2011-11-14 Thread Per Forlin
If max_seg_size is unaligned, mmc_test_map_sg() may create sg element sizes that are not aligned with 512 byte. Fix, align max_seg_size at mmc_test_area_init(). Signed-off-by: Per Forlin --- drivers/mmc/card/mmc_test.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/driv

[PATCH] ARM: mmci: add capabilities2 for MMC_CAP2

2011-11-14 Thread Per Forlin
Signed-off-by: Per Forlin --- This patch depends on patches adding CAP2 available on mmc-next. Chris, would you mind merging this through your tree when it has been accepted. drivers/mmc/host/mmci.c |1 + include/linux/amba/mmci.h |2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)

RE: [PATCH 2/2] mmc: core: Support packed command for eMMC4.5 device

2011-11-14 Thread Seungwon Jeon
Maya Erez wrote: > > On Fri, Nov 11, 2011 at 12:56 PM, Seungwon Jeon > > wrote: > >> Maya Erez wrote: > >>> On Thu, Nov 10, 2011 Maya Erez wrote: > >>> > S, Venkatraman wrote: > >>> >> On Thu, Nov 3, 2011 at 7:23 AM, Seungwon Jeon > >>> wrote: > >>> >> >> > +static u8 mmc_blk_chk_packable(struct

RE: [PATCH 2/2] mmc: core: Support packed command for eMMC4.5 device

2011-11-14 Thread Seungwon Jeon
S, Venkatraman wrote: > On Fri, Nov 11, 2011 at 12:56 PM, Seungwon Jeon wrote: > > Maya Erez wrote: > >> On Thu, Nov 10, 2011 Maya Erez wrote: > >> > S, Venkatraman wrote: > >> >> On Thu, Nov 3, 2011 at 7:23 AM, Seungwon Jeon > >> wrote: > >> >> >> > +static u8 mmc_blk_chk_packable(struct mmc_q

Re: [PATCH] mmc: core: Quirk for long data read time

2011-11-14 Thread Ulf Hansson
Chris Ball wrote: Hi, On Thu, Nov 03 2011, Stefan Nilsson XK wrote: Adds a quirk that sets the data read timeout to a fixed value instead of relying on the information in the CSD. The timeout value choosen is 300ms since that has proven enough for the problematic cards found, but could be incre

Re: [PATCH] mmc: core: Kill block requests if card is removed

2011-11-14 Thread Sujit Reddy Thumma
On 11/14/2011 1:54 PM, Per Forlin wrote: On Mon, Nov 14, 2011 at 8:52 AM, Per Forlin wrote: On Mon, Nov 14, 2011 at 5:19 AM, Sujit Reddy Thumma wrote: On 11/10/2011 7:50 PM, Per Forlin wrote: On Thu, Nov 10, 2011 at 10:35 AM, Adrian Hunter wrote: On 10/11/11 06:02, Sujit Reddy Thumma w

Re: [PATCH] mmc: core: Kill block requests if card is removed

2011-11-14 Thread Per Forlin
On Mon, Nov 14, 2011 at 8:52 AM, Per Forlin wrote: > On Mon, Nov 14, 2011 at 5:19 AM, Sujit Reddy Thumma > wrote: >> On 11/10/2011 7:50 PM, Per Forlin wrote: >>> >>> On Thu, Nov 10, 2011 at 10:35 AM, Adrian Hunter >>>  wrote: On 10/11/11 06:02, Sujit Reddy Thumma wrote: > > Hi,

[PATCH V3] mmc: core: Use delayed work in clock gating framework

2011-11-14 Thread Sujit Reddy Thumma
Current clock gating framework disables the MCI clock as soon as the request is completed and enables it when a request arrives. This aggressive clock gating framework, when enabled, cause following issues: When there are back-to-back requests from the Queue layer, we unnecessarily end up disablin