Re: [linux-pm] subtle pm_runtime_put_sync race and sdio functions

2010-12-20 Thread Alan Stern
On Mon, 20 Dec 2010, Rafael J. Wysocki wrote: > > > In that case, if a device if flagged as "runtime only", we can avoid > > > calling pm_runtime_get_noirq() for it in dpm_prepare() and, analogously, > > > calling pm_runtime_put_sync() for it in dpm_complete(). However, we will > > > have > > >

Re: [linux-pm] subtle pm_runtime_put_sync race and sdio functions

2010-12-20 Thread Rafael J. Wysocki
On Monday, December 20, 2010, Alan Stern wrote: > On Sun, 19 Dec 2010, Rafael J. Wysocki wrote: > > > That said, I think we may do something different that perhaps will make your > > life somewhat easier. > > > > Namely, if your driver doesn't implement any system suspend callbacks > > (i.e. ->su

[PATCH 2/6 v2] mfd: sh_mobile_sdhi: activate SDIO IRQ for tmio_mmc

2010-12-20 Thread Arnd Hannemann
The SDHI Controller on SH-Mobile SoCs supports SDIO IRQ signalling. This patch advertises this fact to the tmio_mmc driver. Signed-off-by: Arnd Hannemann --- drivers/mfd/sh_mobile_sdhi.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/sh_mobile_sdhi.c b/d

[PATCH 6/6 v2] [RFC] sh: sh7722 Enable SDIO IRQs

2010-12-20 Thread Arnd Hannemann
This patch enables the interrupt generation for SDIO IRQs of the sdhi controllers of the soc. To make sure SDIO IRQs are used announce the MMC_CAP_SDIO_IRQ capability on migor. Untested, therefore RFC. Signed-off-by: Arnd Hannemann --- arch/sh/boards/mach-migor/setup.c |1 + arch/sh/ker

[PATCH 5/6 v2] sh: sh7724 Enable SDIO IRQs

2010-12-20 Thread Arnd Hannemann
This patch enables the interrupt generation for SDIO IRQs of the sdhi controllers of the SoC. To make sure interrupt are handled announce the MMC_CAP_SDIO_IRQ capability on ecovec, kfr2r09 and se7724. Tested with a b43-based SDIO wireless card on ecovec. Signed-off-by: Arnd Hannemann --- arch/s

[PATCH 1/6 v2] mmc: tmio: implement SDIO IRQ

2010-12-20 Thread Arnd Hannemann
This patch implements SDIO IRQ support for mfds which announce the TMIO_MMC_SDIO_IRQ flag for tmio_mmc. If MMC_CAP_SDIO_IRQ is also set SDIO IRQ signalling is activated. Tested with a b43-based wireless SDIO card and sh_mobile_sdhi. This patch applies on top of: mmc: tmio_mmc: allow multi-element

[PATCH 4/6 v2] ARM: mach-shmobile: sh7372 Enable SDIO IRQs

2010-12-20 Thread Arnd Hannemann
This patch enables the interrupt generation for SDIO IRQs of the sdhi controllers of the SoC. To make sure interrupts are handled announce the MMC_CAP_SDIO_IRQ capability on AP4EVB. Tested with a b43-based SDIO wireless card. Signed-off-by: Arnd Hannemann --- arch/arm/mach-shmobile/board-ap4evb.

[PATCH 0/6 v2] mmc: tmio: Add SDIO IRQ support

2010-12-20 Thread Arnd Hannemann
[PATCH 1/6 v2] mmc: tmio: implement SDIO IRQ [PATCH 2/6 v2] mfd: sh_mobile_sdhi: activate SDIO IRQ for tmio_mmc [PATCH 3/6 v2] mmc: tmio: disable IRQs early in remove [PATCH 4/6 v2] ARM: mach-shmobile: sh7372 Enable SDIO IRQs [PATCH 5/6 v2] sh: sh7724 Enable SDIO IRQs [PATCH 6/6 v2] [RFC] sh: sh772

[PATCH 3/6 v2] mmc: tmio: disable IRQs early in remove

2010-12-20 Thread Arnd Hannemann
With SDIO IRQ, spurious interrupts are generated on module unloading. This patch fixes that by disabling IRQs early. Tested with a b43-based wireless SDIO card and sh_mobile_sdhi. Signed-off-by: Arnd Hannemann --- drivers/mmc/host/tmio_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 deleti

Re: [PATCH 1/4] mmc: tmio: Implement SDIO IRQ

2010-12-20 Thread Arnd Hannemann
Hi Magnus, Am 20.12.2010 04:58, schrieb Magnus Damm: > Hi again Arnd, > > On Wed, Dec 15, 2010 at 12:44 AM, Magnus Damm wrote: >> On Wed, Dec 8, 2010 at 12:08 AM, Arnd Hannemann wrote: >>> Am 07.12.2010 09:37, schrieb Magnus Damm: On Tue, Dec 7, 2010 at 9:22 PM, Arnd Hannemann wrote:

Re: [patch] workaround of 1-bit mmc card in case cmd19 & cmd 14 not supported

2010-12-20 Thread Philip Rakity
On Dec 20, 2010, at 12:24 AM, zhangfei gao wrote: > On Sun, Dec 19, 2010 at 11:52 PM, Philip Rakity wrote: >> >> On Dec 16, 2010, at 7:21 PM, zhangfei gao wrote: >> >>> If controller does not support cmd19 & cmd14, here is workaround we using. >>> Send just in case somebody require. >>> >>> F

Re: 2.36.1 sdhci R5C822 regression

2010-12-20 Thread Bringfried Stecklum
I figured out that a suspend to memory after resuming from hibernation is a remedy. When the system is back from suspend, the card is properly reckognised. -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majord...@vger.kernel.org More majordomo i

Re: [patch] workaround of 1-bit mmc card in case cmd19 & cmd 14 not supported

2010-12-20 Thread zhangfei gao
On Sun, Dec 19, 2010 at 11:52 PM, Philip Rakity wrote: > > On Dec 16, 2010, at 7:21 PM, zhangfei gao wrote: > >> If controller does not support cmd19 & cmd14, here is workaround we using. >> Send just in case somebody require. >> >> From b95c5e8d1c5b42a149a521c4992dfd8fc8d61143 Mon Sep 17 00:00:00