[PATCH v1 1/1]sdhci-pxa: init_sdh for different platform

2010-11-17 Thread zhangfei gao
Different platform will provide different init_sdh to handle private register is not same in various platform. Put init_sdh in set_clock is we don't want to add more call back function to sdhci.c to keep sdhci.c as simple as possible. Currently init_sdh will be called several times when clk is chan

Re: [PATCH 2.6.32]: Add new device IDs and registers forMULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) cards.

2010-11-17 Thread Chris Ball
Hi Jennifer, This is looking better, thanks -- just a few more questions: On Tue, Nov 16, 2010 at 02:05:16PM +0800, Jennifer Li (TP) wrote: > Root cause: > O2Micro's ADMA and related functions can't work by default Linux SD > driver. We need mark those related registers. If the goal is to disabl

Re: omap4: hsmmc: Fix improper card detection while booting

2010-11-17 Thread Chris Ball
Hi Kishore, On Mon, Nov 15, 2010 at 02:38:59PM +0530, kishore kadiyala wrote: > While booting OMAP4 ES2.0 boards, cards on MMC1 and MMC2 controllers > are not getting detected some times. > > During reset of command/data line, wrong pointer to base address > was passed while read operation to SYS

Re: [PATCH 3/3] mmc: protect some gating variables

2010-11-17 Thread Chris Ball
Hi Linus, On Tue, Nov 16, 2010 at 05:57:00PM +0100, Linus Walleij wrote: > This adds some more picky variable protection to the state holders > for the clock gating code. This is particularly important when > ordinary .set_ios() calls would race with the .set_ios() call > resulting from a delayed

Re: [PATCH 2/3] mmc: protect against clockgate races

2010-11-17 Thread Chris Ball
Hi Linus, On Tue, Nov 16, 2010 at 05:56:52PM +0100, Linus Walleij wrote: > This adds a mutex to protect from races between gate and ungate > calls colliding. > > Cc: Ohad Ben-Cohen > Signed-off-by: Linus Walleij Thanks, merged into mmc-next for .38. -- Chris Ball On

Re: [PATCH 1/3] mmc: clean up clockgating code

2010-11-17 Thread Chris Ball
Hi Linus, On Tue, Nov 16, 2010 at 05:56:42PM +0100, Linus Walleij wrote: > This rids the unused boolean clk_pending_gate from the code > and renames the clk_disable_work to clk_gate_work in > analogy with the other names used for gating code. > > Signed-off-by: Linus Walleij Thanks, merged into

[PATCH v3 1/2]mmc:implemented HW reset in mmc core layer

2010-11-17 Thread Chuanxiao Dong
>From 49962ed89078717d539805f999503b2d29a42b05 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 18 Nov 2010 10:25:44 +0800 Subject: [PATCH 1/2] mmc: implemented eMMC4.4 hardware reset feature in mmc core layer When core layer detect a data timeout error, core driver need to first reset e

[PATCH v3 2/2]mmc:implemented HW reset callback in sdhci layer

2010-11-17 Thread Chuanxiao Dong
>From 24a7a1fe58d4cbc49dde56adb442c97cbbaf690b Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Thu, 18 Nov 2010 10:34:42 +0800 Subject: [PATCH 2/2] mmc: implemented hardware reset callback for sdhci layer The hardware reset callback in sdhci layer cannot really do a reset for eMMC card. It ne

[PATCH v3 0/2]MMC:implement eMMC4.4 standard HW reset feature

2010-11-17 Thread Chuanxiao Dong
Hello Chris, These are the version 3 of HW reset feature implementation. Since I didnot get any response from the version 2 and version1 patches, I am not sure whether I need to change. So just did a little change in form. The 2 patches implemented

[PATCH] sdhci: sdhci-pxa only supports mmp2 at this time. Change Kconfig

2010-11-17 Thread Philip Rakity
>From 9de09a0575163c223f0aed0842daec9161b2f72e Mon Sep 17 00:00:00 2001 From: Philip Rakity Date: Wed, 17 Nov 2010 18:52:16 -0800 Subject: [PATCH] sdhci: sdhci-pxa only supports mmp2 at this time. Change Kconfig sdhci-pxa.c currently only supports mmp2. pxa168 and pxa9xx controllers are not qui

[PATCH v2 1/1]mmc: check SDIO card wake up during suspending

2010-11-17 Thread Jun Nie
>From 642b2e88fc4b6344290c88ce506fcda1bcc860a3 Mon Sep 17 00:00:00 2001 From: Jun Nie Date: Fri, 12 Nov 2010 19:43:49 +0800 Subject: [PATCH] mmc: check SDIO card wake up during suspending It is possible that SDIO card send card interrupt to wake up system just after SDIO func driver and SDIO card

[PATCH v2 0/1]mmc: check SDIO card wake up during suspending

2010-11-17 Thread Jun Nie
Change against v1: Minor fix: add check return value in sdhci_suspend_host. Fix checkpatch.pl warning mmc: check SDIO card wake up during suspending It is possible that SDIO card send card interrupt to wake up system just after SDIO func driver and SDIO card firmwar

Re: mmc: Huge delay is seen when SD card is removed while transferring large media file

2010-11-17 Thread Chris Ball
Hi Sujit, On Wed, Nov 17, 2010 at 08:08:38PM +0530, Sujit Reddy wrote: > Problem: There is a huge delay of ~20secs when the user get notified > about the card removal. This delay depends on the size of the file to > be transferred. > > dmesg shows continuous I/O errors even after card removal not

Re: [PATCH 2/3] mmc: protect against clockgate races

2010-11-17 Thread Linus Walleij
2010/11/16 David Vrabel : > Linus Walleij wrote: >> This adds a mutex to protect from races between gate and ungate >> calls colliding. > > Can you rework this to not require both host->clk_gate_mutex and > host->clk_lock?  Is host->clk_lock necessary any more? No I can't. I really wanted to, and

Re: MMC runtime PM patches break libertas probe

2010-11-17 Thread Nicolas Pitre
On Wed, 17 Nov 2010, Ohad Ben-Cohen wrote: > On Wed, Nov 17, 2010 at 8:46 AM, Mike Rapoport wrote: > > On our platforms we just keep it powered on after boot with the reset line > > held > > high. (e.g. arch/arm/mach-pxa/cm-x300.c, arch/arm/mach-omap/board-cm-t35.c). > > We don't bother much for

mmc: Huge delay is seen when SD card is removed while transferring large media file

2010-11-17 Thread Sujit Reddy
Hi, Scenario: After SD card is inserted and partitions are mounted, start transferring a large media file (for ex: 200MB) to SD. Remove the card in between. Problem: There is a huge delay of ~20secs when the user get notified about the card removal. This delay depends on the size of the file to b