[PATCH 0/4] Minor MMC fixes

2011-06-23 Thread Adrian Hunter
Hi Here are 4 minor fixes: Adrian Hunter (4): mmc: block: switch card to User Data Area when removing the block driver mmc: core: make erase timeout calculation allow for gated clock mmc: queue: append partition subname to queue thread name mmc: queue: bring

[PATCH 1/4] mmc: block: switch card to User Data Area when removing the block driver

2011-06-23 Thread Adrian Hunter
The MMC block driver and other drivers (e.g. mmc-test) will expect the card to be switched to the User Data Area eMMC partition when they start. Hence the MMC block driver should ensure it is that way when it is removed. Signed-off-by: Adrian Hunter adrian.hun...@intel.com Cc: Andrei Warkentin

[PATCH 2/4] mmc: core: make erase timeout calculation allow for gated clock

2011-06-23 Thread Adrian Hunter
The erase timeout calculation may depend on clock rate which is zero if the clock is gated, so use mmc_host_clk_rate() which allows for that case. Signed-off-by: Adrian Hunter adrian.hun...@intel.com --- drivers/mmc/core/core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH 3/4] mmc: queue: append partition subname to queue thread name

2011-06-23 Thread Adrian Hunter
For example, an eMMC with 2 boot partitions will have 3 threads. The names change from: 40 ?00:00:00 mmcqd/0 41 ?00:00:00 mmcqd/0 42 ?00:00:00 mmcqd/0 to: 40 ?00:00:00 mmcqd/0 41 ?00:00:00 mmcqd/0boot0 42 ?00:00:00 mmcqd/0boot1

[PATCH 4/4] mmc: queue: bring discard_granularity/alignment into line with SCSI definitions

2011-06-23 Thread Adrian Hunter
SCSI defines discard alignment as the offset to the first optimal discard. In the case of SD/MMC, that is always zero which is the default. SCSI defines discard granularity as a hint of a optimal discard size. That is much better expressed by the MMC preferred erase size (pref_erase) field.

Re: [PATCH 4/5] pm: move pm notifiers into suspend.h

2011-06-23 Thread Rafael J. Wysocki
On Thursday, June 23, 2011, Cong Wang wrote: 于 2011年06月23日 03:49, Rafael J. Wysocki 写道: +#ifdef CONFIG_PM +#includelinux/suspend.h +#endif I don't think the #ifdef in necessary. Any dependencies on CONFIG_PM (or CONFIG_SUSPEND etc.) should be taken care of inside of suspend.h.

Re: [PATCH 2/3] MMC: OMAP: HSMMC: add runtime pm support

2011-06-23 Thread T Krishnamoorthy, Balaji
On Thu, Jun 23, 2011 at 12:08 AM, Kevin Hilman khil...@ti.com wrote: Balaji T K balaj...@ti.com writes: @@ -1880,18 +1873,12 @@ static int __init omap_hsmmc_probe(struct platform_device *pdev)       mmc-caps |= MMC_CAP_DISABLE; -     if (clk_enable(host-iclk) != 0) { -            

Re: [PATCH 1/3] MMC: OMAP: HSMMC: Remove lazy_disable

2011-06-23 Thread T Krishnamoorthy, Balaji
On Wed, Jun 22, 2011 at 11:56 PM, Kevin Hilman khil...@ti.com wrote: Balaji T K balaj...@ti.com writes: lazy_disable framework in OMAP HSMMC manages multiple low power states and Card is powered off after inactivity time of 8 seconds. Based on previous discussion on the list Card

Re: [PATCH v6 00/11] mmc: use nonblock mmc requests to minimize latency

2011-06-23 Thread Russell King - ARM Linux
On Tue, Jun 21, 2011 at 11:26:27AM +0200, Per Forlin wrote: Here are the results. It looks like this patch is either a no-op or slightly worse. As people have been telling me that dsb is rather expensive, and this patch results in less dsbs, I'm finding these results hard to believe. It seems

Re: SD8686 fast power-cycle problems

2011-06-23 Thread Daniel Drake
On 19 June 2011 14:10, zhangfei gao zhangfei@gmail.com wrote: How do you power off 8686 now? Use RESETn, PDn, or directly control regulator? Assume RESETn is kept high as Ohad mentioned before, do you control PDn? We use mmc_power_off(), which calls mmc_set_ios() which is implemented by

Re: [PATCH 2/3] MMC: OMAP: HSMMC: add runtime pm support

2011-06-23 Thread Kevin Hilman
T Krishnamoorthy, Balaji balaj...@ti.com writes: On Thu, Jun 23, 2011 at 12:08 AM, Kevin Hilman khil...@ti.com wrote: Balaji T K balaj...@ti.com writes: @@ -1880,18 +1873,12 @@ static int __init omap_hsmmc_probe(struct platform_device *pdev)       mmc-caps |= MMC_CAP_DISABLE; -     if

Re: [PATCH 4/5] pm: move pm notifiers into suspend.h

2011-06-23 Thread Pavel Machek
On Thu 2011-06-23 13:03:54, Cong Wang wrote: ??? 2011???06???23??? 03:49, Rafael J. Wysocki ??: +#ifdef CONFIG_PM +#includelinux/suspend.h +#endif I don't think the #ifdef in necessary. Any dependencies on CONFIG_PM (or CONFIG_SUSPEND etc.) should be taken care of inside of

Re: [PATCH 4/4] PCI: make cardbus-bridge resources nice-to-have

2011-06-23 Thread Jesse Barnes
On Tue, 21 Jun 2011 17:48:16 -0700 Ram Pai linux...@us.ibm.com wrote: I assume majority of the platforms will have enough resources to satisfy all the resource requests, and their BIOS would have done a decent job. Even if the BIOS has not done a decent job, and there are enough resources

Re: [PATCH 3/4] mmc: queue: append partition subname to queue thread name

2011-06-23 Thread Jaehoon Chung
Hi Adrian.. I also found this problem.. So i confused the same mmcdq name. Thanks for fixed the mmcqd name. Regards, Jaehoon Chung Adrian Hunter wrote: For example, an eMMC with 2 boot partitions will have 3 threads. The names change from: 40 ?00:00:00 mmcqd/0 41 ?