[PATCH v1 3/3]mmc: changes to enable runtime PM of mmc core layer

2010-11-27 Thread Yunpeng Gao
>From cac07f43de68615cca9f01f619870fdce05df2a2 Mon Sep 17 00:00:00 2001 From: Yunpeng Gao Date: Sun, 28 Nov 2010 13:00:42 +0800 Subject: [PATCH] Do some changes in mmc core layer to enable mmc card runtime pm. Seems current runtime PM support in mmc core layer has some problems: 1. If host con

[PATCH v1 2/3]mmc: enable runtime PM support of sdhci host controller

2010-11-27 Thread Yunpeng Gao
>From fab85166c387c5f590ab2d85ab73af52c684a6a5 Mon Sep 17 00:00:00 2001 From: Yunpeng Gao Date: Sun, 28 Nov 2010 08:27:46 +0800 Subject: [PATCH] Enable runtime pm support of sdhci host controller with pci interface. Follow the kernel runtime pm framework, enable runtime pm support of the sdhci

[PATCH v1 1/3]mmc: enable runtime PM support for block driver

2010-11-27 Thread Yunpeng Gao
>From 51e4d34f19b48552a10a9f6b69f51c5aeed18d03 Mon Sep 17 00:00:00 2001 From: Yunpeng Gao Date: Sun, 28 Nov 2010 08:01:01 +0800 Subject: [PATCH] Enable runtime pm support for block driver of mmc stack. Follow the kernel runtime pm framework, this patch enable runtime pm support for block driver

[PATCH v1 0/3]mmc: enable runtime PM support for mmc storage card

2010-11-27 Thread Yunpeng Gao
Hi, These patches are to enable the runtime PM support for mmc storage cards. Currently, there's already runtime PM support in the mmc core layer. But for the mmc storage card (SD card, mmc card, eMMC device and so on) to work with runtime PM, it also needs both block driver and h

[PATCH 3/3] mmc: sdio: don't power up cards on system suspend

2010-11-27 Thread Ohad Ben-Cohen
Initial SDIO runtime PM implementation took a conservative approach of powering up cards (and fully reinitializing them) on system suspend, just before the suspend handlers of the relevant drivers were executed. To avoid redundant power and reinitialization cycles, this patch removes this behavior

[PATCH 1/3] mmc: skip detection of nonremovable cards on rescan

2010-11-27 Thread Ohad Ben-Cohen
mmc_rescan checks whether registered cards are still present before skipping them, by calling the bus-specific ->detect() handler. With buses that support runtime PM, the card may be powered off at this point, so they need to be powered on and fully reinitialized before ->detect() executes. This

[PATCH 2/3] mmc: sdio: don't reinitialize nonremovable powered-resumed cards

2010-11-27 Thread Ohad Ben-Cohen
Upon system resume, SDIO core must reinitialize cards that were powered off during suspend. If the card had its power kept during suspend (and thus it is 'powered-resumed'), SDIO core performs only a limited reinitializing, mainly needed to make sure that the card wasn't removed/replaced. If a __

[PATCH 0/3] SDIO suspend/resume optimizations

2010-11-27 Thread Ohad Ben-Cohen
Remove redundant power and card reinitialization cycles involved with SDIO suspend/resume transitions, especially when interacting with SDIO runtime PM. As a result, suspend/resume latencies are reduced and battery life is improved. I have not done any latencies or power measurements, but I am pr

Re: [PATCH] omap: zoom: wl1271 slot is MMC_CAP_POWER_OFF_CARD

2010-11-27 Thread Chris Ball
Hi, On Sat, Nov 27, 2010 at 01:59:24AM +0200, Ohad Ben-Cohen wrote: > This patch complements ed919b0 "mmc: sdio: fix runtime PM anomalies by > introducing MMC_CAP_POWER_OFF_CARD" by declaring MMC_CAP_POWER_OFF_CARD > on the ZOOM's wl1271 mmc slot. > > This is required in order not to break runtim

Re: [PATCH] mmc: Resubmit: Bus Width testing for eMMC and MMC Cards

2010-11-27 Thread Philip Rakity
Chris, Thanks for the review. Revised complete patch below incorporating your comments. Philip On Nov 27, 2010, at 11:32 AM, Chris Ball wrote: > Hi Philip, > > Some early stylistic review comments: > > On Sat, Nov 27, 2010 at 11:00:19AM -0800, Philip Rakity wrote: >> Patch made against linu

Re: [PATCH 3/3 v2] sh, mmc: Use defines when setting CE_CLK_CTRL

2010-11-27 Thread Simon Horman
On Sat, Nov 27, 2010 at 12:54:41PM +0100, Michał Mirosław wrote: > 2010/11/27 Simon Horman : > > The 16-19th bits of CE_CLK_CTRL set the > > MMC clock frequency. > > > > Cc: Yusuke Goda > > Cc: Magnus Damm > > Signed-off-by: Simon Horman > > --- > >  include/linux/mmc/sh_mmcif.h |   17 +

Re: [PATCH] mmc: Resubmit: Bus Width testing for eMMC and MMC Cards

2010-11-27 Thread Chris Ball
Hi Philip, Some early stylistic review comments: On Sat, Nov 27, 2010 at 11:00:19AM -0800, Philip Rakity wrote: > Patch made against linux-next (see below) and tested against marvell mmp2 > controller using Marvell linux The patch doesn't apply against current linux-next or Linus HEAD, due to Oh

[PATCH] mmc: Resubmit: Bus Width testing for eMMC and MMC Cards

2010-11-27 Thread Philip Rakity
Change from previous patch; Added MMC_RSP_SPI_R1 to mmc_ops command for DATA_READ and DATA_Write (Thanks to Takashi Lwai for pointing this out) Patch made against linux-next (see below) and tested against marvell mmp2 controller using Marvell linux eMMC cards do not have a card specific field ind

Re: [PATCH 3/3 v2] sh, mmc: Use defines when setting CE_CLK_CTRL

2010-11-27 Thread Michał Mirosław
2010/11/27 Simon Horman : > The 16-19th bits of CE_CLK_CTRL set the > MMC clock frequency. > > Cc: Yusuke Goda > Cc: Magnus Damm > Signed-off-by: Simon Horman > --- >  include/linux/mmc/sh_mmcif.h |   17 + >  1 files changed, 9 insertions(+), 8 deletions(-) > > diff --git a/inclu