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

2011-11-11 Thread Chris Ball
Hi Viresh, 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 and let us know if it's present there. Thanks, - C

Re: [PATCH] mmc: sdhci-pci: shut up BAR size warning

2011-11-11 Thread Chris Ball
Hi Manuel, On Wed, Nov 09 2011, Manuel Lauss wrote: > kernel complains about invalid SDHCI iomem size on boot. The BAR on my > O2-Micro controller is 512 bytes large, twice the size SDHCI-PCI needs. > This patch changes the warning to only appear when the BAR is smaller > than expected. > > Signe

Re: [PATCH] mmc: core: Fix setting power notify state variable for non eMMC

2011-11-11 Thread Chris Ball
Hi, On Fri, Nov 11 2011, Ulf Hansson wrote: > Girish K S wrote: >> This patch skips the setting of the power notify state variable >> for non eMMC 4.5 devices. Also fixes the problem of omap_hsmmc >> noisy/broken for suspend resume reported by kevin Hilman. >> >> cc: Chris Ball >> Signed-off-by:

Re: [PATCH v4] mmc: sdhci: remove "state" argument from sdhci_suspend_host

2011-11-11 Thread Chris Ball
Hi, On Fri, Nov 04 2011, Adrian Hunter wrote: > On 03/11/11 12:09, Manuel Lauss wrote: >> Drop the "state" argument from sdhci_suspend_host. Its only user >> is the PCI glue; this allows to move all SDHCI glues to use >> dev_pm_ops instead. >> >> Signed-off-by: Manuel Lauss > > Acked-by: Adria

[PATCH] mmc: card: Use manufacturer ID symbols in card quirks.

2011-11-11 Thread Chris Ball
No functional change; adds macros for card manufacturer IDs. Signed-off-by: Chris Ball Cc: Andrei E. Warkentin Cc: Stefan Nilsson XK --- drivers/mmc/card/block.c | 27 ++- 1 files changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/card/block.c b/drive

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

2011-11-11 Thread Chris Ball
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 increased if other

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

2011-11-11 Thread Chris Ball
Hi, On Thu, Nov 03 2011, Linus Walleij wrote: > 2011/11/3 Stefan Nilsson XK : > >> 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,

Re: [PATCH] mmc: debugfs: expose the SDCLK frq in sys ios (V6)

2011-11-11 Thread Chris Ball
Hi, On Fri, Nov 04 2011, Adrian Hunter wrote: > On 04/11/11 14:53, Giuseppe CAVALLARO wrote: >> This patch is to expose the actual SDCLK frequency in >> /sys/kernel/debug/mmcX/ios entry. >> >> For example, if the max clk for a normal speed card is 20MHz >> this is reported in /sys/kernel/debug/mm

Re: have we the patchwork to view the patch status?

2011-11-11 Thread Chris Ball
Hi, On Wed, Nov 02 2011, Huang Changming-R66093 wrote: > Have we the patchwork? The kernel.org team has stopped hosting patchwork since their break-in. Maybe it'll come back later, either there or somewhere else. Thanks, - Chris. -- Chris Ball One Laptop Per Child --

Re: [PATCH] mmc: debugfs: parse all ext_csd via debug_fs

2011-11-11 Thread Chris Ball
Hi Giuseppe, On Fri, Oct 28 2011, Giuseppe CAVALLARO wrote: > On 10/27/2011 4:19 PM, Sebastian Rasmussen wrote: >> Hi! >> >>> Before the patch the output from /sys/kernel/debug/mmc0/mmc0:0001/ext_csd >>> was a big number and I had many problems parsing it in real-time. >>> [...] >>> In any case,

Re: [PATCH] mmc: debugfs: parse all ext_csd via debug_fs

2011-11-11 Thread Linus Walleij
On Tue, Oct 25, 2011 at 1:43 PM, Sebastian Rasmussen wrote: >[Giuseppe] >> This patch enhances the debug information reported >> for the mmc card by parsing the extended CSD registers >> obviously according to all the current specifications. > > Does this belong kernel or in userspace? I'm not sur

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

2011-11-11 Thread Chris Ball
Hi Sujit, On Thu, Oct 27 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

Re: [PATCH] mmc: sdio: Fix to support any block size optimally

2011-11-11 Thread Chris Ball
Hi Stefan, On Wed, Oct 26 2011, Stefan Nilsson XK wrote: > This patch allows any block size to be set on the SDIO link, > and still have an arbitrary sized packet (adjusted in size by > using sdio_align_size) transferred in an optimal way > (preferably one transfer). > > Previously if the block si

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

2011-11-11 Thread merez
> 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_queue *mq, struct >>> >> req

Re: [PATCH] mmc mxcmmc: fix falling back to PIO

2011-11-11 Thread Chris Ball
Hi Sascha, On Fri, Nov 11 2011, Sascha Hauer wrote: > When we can't configure the dma channel we want to fall > back to PIO. We do this by setting host->do_dma to zero. > This does not work as do_dma is used to see whether dma > can be used for the current transfer. Instead, we have > to set host-

Re: [PATCH v2] mmc mxcmmc: fix falling back to PIO

2011-11-11 Thread Lothar Waßmann
Hi, Sascha Hauer writes: > Hi Chris, > > Can you take this one please? > > Sascha > > On Thu, Aug 25, 2011 at 11:33:05AM +0200, Sascha Hauer wrote: > > When we can't configure the dma channel we want to fall > > back to PIO. We do this by setting host->do_dma to zero. > > This does not work as

Re: [PATCH] mmc: mmci: Increase max_segs from 16 to 128

2011-11-11 Thread Linus Walleij
On Thu, Nov 10, 2011 at 5:10 PM, Ulf Hansson wrote: > A significant increase (10-20%) in performance throughput for > USB mass storage is the reason for incrementing the value. > By some reason the USB driver allocates buffers which requires > a scattergather list to contain a lot more than 16 el

Re: [PATCH v2] mmc mxcmmc: fix falling back to PIO

2011-11-11 Thread Sascha Hauer
On Fri, Nov 11, 2011 at 04:13:41PM +0100, Lothar Waßmann wrote: > Hi, > > Sascha Hauer writes: > > Hi Chris, > > > > Can you take this one please? > > > > Sascha > > > > On Thu, Aug 25, 2011 at 11:33:05AM +0200, Sascha Hauer wrote: > > > When we can't configure the dma channel we want to fall >

[PATCH] mmc mxcmmc: fix falling back to PIO

2011-11-11 Thread Sascha Hauer
When we can't configure the dma channel we want to fall back to PIO. We do this by setting host->do_dma to zero. This does not work as do_dma is used to see whether dma can be used for the current transfer. Instead, we have to set host->dma to NULL. Signed-off-by: Sascha Hauer Cc: Chris Ball Cc:

Re: [PATCH] mmc: mmci: Fixup handling of MCI_STARTBITERR

2011-11-11 Thread Linus Walleij
On Thu, Nov 10, 2011 at 4:33 PM, Ulf Hansson wrote: > The interrupt was previously enabled and then correctly cleared. > Now we also handle it correctly. > > Signed-off-by: Ulf Hansson Acked-by: Linus Walleij This should also go to -stable I think? Linus Walleij -- To unsubscribe from this l

Re: [PATCH v2] mmc mxcmmc: fix falling back to PIO

2011-11-11 Thread Sascha Hauer
Hi Chris, Can you take this one please? Sascha On Thu, Aug 25, 2011 at 11:33:05AM +0200, Sascha Hauer wrote: > When we can't configure the dma channel we want to fall > back to PIO. We do this by setting host->do_dma to zero. > This does not work as do_dma is used to see whether dma > can be use

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

2011-11-11 Thread Richard Zhao
On Fri, Nov 11, 2011 at 12:56:44PM +0100, Sascha Hauer wrote: > On Fri, Nov 11, 2011 at 10:27:27AM +, Russell King - ARM Linux wrote: > > On Fri, Nov 11, 2011 at 10:15:56AM +0100, Sascha Hauer wrote: > > > On Fri, Nov 11, 2011 at 05:05:47PM +0800, Richard Zhao wrote: > > > > { > > > > i

Re: [PATCH] mmc: core: Fix setting power notify state variable for non eMMC

2011-11-11 Thread Ulf Hansson
Girish K S wrote: This patch skips the setting of the power notify state variable for non eMMC 4.5 devices. Also fixes the problem of omap_hsmmc noisy/broken for suspend resume reported by kevin Hilman. cc: Chris Ball Signed-off-by: Girish K S --- drivers/mmc/core/mmc.c | 10 +++--- 1 f

Re: [PATCH] mmc: sdio: Fix to support any block size optimally

2011-11-11 Thread Stefan Nilsson XK
Any comments on this patch? Can we merge it? Best Regards Stefan Nilsson On 10/26/2011 10:52 AM, Stefan NILSSON9 wrote: This patch allows any block size to be set on the SDIO link, and still have an arbitrary sized packet (adjusted in size by using sdio_align_size) transferred in an optimal wa

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

2011-11-11 Thread Sascha Hauer
On Fri, Nov 11, 2011 at 10:27:27AM +, Russell King - ARM Linux wrote: > On Fri, Nov 11, 2011 at 10:15:56AM +0100, Sascha Hauer wrote: > > On Fri, Nov 11, 2011 at 05:05:47PM +0800, Richard Zhao wrote: > > > { > > > int ret; > > > > > > ret = clk_prepare(clk); > > > if (ret) > > >

Re: [PATCH v2] mmc: support BKOPS feature for eMMC

2011-11-11 Thread Per Forlin
On Fri, Nov 11, 2011 at 9:42 AM, Dong, Chuanxiao wrote: > > >> -Original Message- >> From: Per Forlin [mailto:per.l...@gmail.com] >> Sent: Friday, November 11, 2011 4:32 PM >> To: Dong, Chuanxiao >> Cc: Jaehoon Chung; linux-mmc; Jae hoon Chung; Chris Ball; Kyungmin Park; >> Hanumath Prasad

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

2011-11-11 Thread Richard Zhao
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 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/dr

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

2011-11-11 Thread Richard Zhao
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 +++ b/arch/arm/plat-mxc/epit.c @@ -203,7 +203,7 @@ st

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

2011-11-11 Thread Richard Zhao
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..e96fa44 100644 --- a/drivers/net/ethernet/freescale/fe

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

2011-11-11 Thread Richard Zhao
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/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c

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

2011-11-11 Thread Richard Zhao
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 +++ b/arch/arm/plat-mxc/pwm.c @@ -118,7 +118,7 @@ int

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

2011-11-11 Thread Richard Zhao
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..9760a12 100644 --- a/arch/arm/mach-mxs/system.c +++ b/a

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

2011-11-11 Thread Richard Zhao
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.c +++ b/drivers/tty/serial/imx.c @@ -1390,7 +1390,

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

2011-11-11 Thread Richard Zhao
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/arm/plat-mxc/audmux-v2.c +++ b/arch/arm/plat-mxc/aud

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

2011-11-11 Thread Richard Zhao
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 100644 --- a/arch/arm/mach-imx/mach-mx31moboard.c +++

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

2011-11-11 Thread Richard Zhao
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/pm-imx5.c +++ b/arch/arm/mach-mx5/pm-imx5.c @@ -2

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

2011-11-11 Thread Richard Zhao
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/system.c +++ b/arch/arm/plat-mxc/system.c @@ -54,7 +54

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

2011-11-11 Thread Richard Zhao
Signed-off-by: Richard Zhao --- include/linux/clk.h | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index 7213b52..a7dc00d 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -107,6 +107,26 @@ static

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

2011-11-11 Thread Richard Zhao
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/platform-ahci-imx.c index d8a56ae..ade4a1c 100644 --- a/

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

2011-11-11 Thread Richard Zhao
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 +++ b/arch/arm/plat-mxc/time.c @@ -292,7 +292,7 @@ vo

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

2011-11-11 Thread Richard Zhao
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_prepare_enable and clk_disable_unprepare

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

2011-11-11 Thread Russell King - ARM Linux
On Fri, Nov 11, 2011 at 10:15:56AM +0100, Sascha Hauer wrote: > On Fri, Nov 11, 2011 at 05:05:47PM +0800, Richard Zhao wrote: > > { > > int ret; > > > > ret = clk_prepare(clk); > > if (ret) > > return ret; > > ret = clk_enable(clk); > > if (ret) > > clk_

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

2011-11-11 Thread S, Venkatraman
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_queue *mq, struct >> >> request *req)

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

2011-11-11 Thread Sascha Hauer
On Fri, Nov 11, 2011 at 05:05:47PM +0800, Richard Zhao wrote: > On Fri, Nov 11, 2011 at 09:49:50AM +0100, Sascha Hauer wrote: > > On Fri, Nov 11, 2011 at 09:10:16AM +0800, Richard Zhao wrote: > > > Signed-off-by: Richard Zhao > > > --- > > > include/linux/clk.h | 19 +++ > > > 1

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

2011-11-11 Thread Richard Zhao
On Fri, Nov 11, 2011 at 09:49:50AM +0100, Sascha Hauer wrote: > On Fri, Nov 11, 2011 at 09:10:16AM +0800, Richard Zhao wrote: > > Signed-off-by: Richard Zhao > > --- > > include/linux/clk.h | 19 +++ > > 1 files changed, 19 insertions(+), 0 deletions(-) > > > > diff --git a/inc

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

2011-11-11 Thread Sascha Hauer
On Fri, Nov 11, 2011 at 09:10:16AM +0800, Richard Zhao wrote: > Signed-off-by: Richard Zhao > --- > include/linux/clk.h | 19 +++ > 1 files changed, 19 insertions(+), 0 deletions(-) > > diff --git a/include/linux/clk.h b/include/linux/clk.h > index 7213b52..63985f7 100644 > ---

RE: [PATCH v2] mmc: support BKOPS feature for eMMC

2011-11-11 Thread Dong, Chuanxiao
> -Original Message- > From: Per Forlin [mailto:per.l...@gmail.com] > Sent: Friday, November 11, 2011 4:32 PM > To: Dong, Chuanxiao > Cc: Jaehoon Chung; linux-mmc; Jae hoon Chung; Chris Ball; Kyungmin Park; > Hanumath Prasad; Sebastian Rasmussen; svenk...@ti.com > Subject: Re: [PATCH v2]

Re: [PATCH v2] mmc: support BKOPS feature for eMMC

2011-11-11 Thread Per Forlin
On Fri, Nov 11, 2011 at 8:48 AM, Per Forlin wrote: > On Fri, Nov 11, 2011 at 7:51 AM, Dong, Chuanxiao > wrote: >> Hi Jaehoon, >> >>> -Original Message- >>> From: Jaehoon Chung [mailto:jh80.ch...@samsung.com] >>> Sent: Wednesday, November 02, 2011 6:29 PM >>> To: linux-mmc >>> Cc: Chris Ba