Re: [PATCH] mmc: mmci: Gate the clock in runtime suspend to save power

2012-12-11 Thread Linus Walleij
On Tue, Dec 11, 2012 at 3:52 PM, Russell King - ARM Linux wrote: > On Tue, Dec 11, 2012 at 03:17:54PM +0100, Ulf Hansson wrote: >> From: Ulf Hansson >> >> The amba bus is already performing same actions but for the apb_pclk. >> So here we just make sure the clock to card is gated as well to save

[ping for 3.8 for pci tree] Re: [PATCH] pci: Add a quirk for the Ricoh 0xe22 SD card reader

2012-12-11 Thread Andy Lutomirski
Hi Bjorn- I want to make sure this doesn't get lost. It's a patch for pci, not for mmc, despite the subject. --Andy On Sat, Dec 1, 2012 at 12:37 PM, Andy Lutomirski wrote: > Otherwise it fails like this on cards like the Transcend 16GB SDHC card: > mmc0: new SDHC card at address b368 > mmcblk0

Re: [PATCH] mmc: mmci: Gate the clock in runtime suspend to save power

2012-12-11 Thread Russell King - ARM Linux
On Tue, Dec 11, 2012 at 03:17:54PM +0100, Ulf Hansson wrote: > From: Ulf Hansson > > The amba bus is already performing same actions but for the apb_pclk. > So here we just make sure the clock to card is gated as well to save > more power. At runtime resume we will thus restore the clock again.

Re: [PATCH] mmc: mmci: Gate the clock in runtime suspend to save power

2012-12-11 Thread Linus Walleij
On Tue, Dec 11, 2012 at 3:17 PM, Ulf Hansson wrote: > From: Ulf Hansson > > The amba bus is already performing same actions but for the apb_pclk. > So here we just make sure the clock to card is gated as well to save > more power. At runtime resume we will thus restore the clock again. > > Signe

[PATCH v2 1/3] mmc: slot-gpio: use devm_* managed functions to ease users

2012-12-11 Thread Shawn Guo
Use devm_* managed functions, so that slot-gpio users do not have to call mmc_gpio_free_ro/cd to free up resources requested in mmc_gpio_request_ro/cd. Signed-off-by: Shawn Guo --- drivers/mmc/core/slot-gpio.c | 57 +- 1 file changed, 51 insertions(+), 6

[PATCH v2 2/3] mmc: remove unncessary mmc_gpio_free_cd() call from slot-gpio users

2012-12-11 Thread Shawn Guo
Since slot-gpio uses devm_* managed functions in mmc_gpio_request_cd() now, we can remove those mmc_gpio_free_cd() call from host drivers' .probe() error path and .remove(). Signed-off-by: Shawn Guo --- drivers/mmc/host/sdhci-pxav3.c |5 - drivers/mmc/host/sh_mmcif.c |6 --

[PATCH v2 3/3] mmc: sdhci-esdhc-imx: use slot-gpio helpers for CD and WP

2012-12-11 Thread Shawn Guo
Use slot-gpio helpers to save some codes in the driver. Signed-off-by: Shawn Guo --- drivers/mmc/host/sdhci-esdhc-imx.c | 56 +++- 1 file changed, 16 insertions(+), 40 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-

[PATCH v2 0/3] Use devm_* managed functions to ease slot-gpio users

2012-12-11 Thread Shawn Guo
Changes since v1: * Add kernel doc for mmc_gpio_request/free_ro/cd() to document the use cases. * Add a patch to remove unncessary mmc_gpio_free_cd() call from existing slot-gpio users. Shawn Guo (3): mmc: slot-gpio: use devm_* managed functions to ease users mmc: remove unncessary mmc

[PATCH] mmc: mmci: Gate the clock in runtime suspend to save power

2012-12-11 Thread Ulf Hansson
From: Ulf Hansson The amba bus is already performing same actions but for the apb_pclk. So here we just make sure the clock to card is gated as well to save more power. At runtime resume we will thus restore the clock again. Signed-off-by: Ulf Hansson --- drivers/mmc/host/mmci.c | 29 +++

[PATCH/RESEND v3 2/2] row: Add support for urgent request handling

2012-12-11 Thread Tanya Brokhman
This patch add support for handling urgent requests. ROW queue can be marked as "urgent". If an urgent queue was un-served in a previous dispatch cycle and a request was added to it - it will trigger issuing urgent request to the device driver. Signed-off-by: Tatyana Brokhman diff --git a/block/

[PATCH v3 1/2] row: Adding support for reinsert already dispatched req

2012-12-11 Thread Tanya Brokhman
Add support for reinserting already dispatched request back to the schedulers internal data structures. The request will be reinserted back to the queue (head) it was dispatched from as if it was never dispatched. Signed-off-by: Tatyana Brokhman --- v3: Update error handling when row queue is not

[PATCH v3 0/2] block:row: Adding support for urgent requests handling

2012-12-11 Thread Tanya Brokhman
This patch set add support for handling urgent requests by the ROW algorith. It depends on 2 previosly uploaded patch sets: 1. ROW scheduling Algorithm 2. Adding support for urgent requests handling (in block layer) Tanya Brokhman (2): row: Adding support for reinsert already dispatched req ro

[PATCH v4 1/2] block: Adding ROW scheduling algorithm

2012-12-11 Thread Tanya Brokhman
This patch adds the implementation of a new scheduling algorithm - ROW. The policy of this algorithm is to prioritize READ requests over WRITE as much as possible without starving the WRITE requests. The requests are kept in queues according to their priority. The dispatch is done in a Round Robin

[PATCH/RESEND v4 2/2] block: compile ROW statically into the kernel

2012-12-11 Thread Tanya Brokhman
From: Tatyana Brokhman ROW is a new scheduling algorithm. Similar to the existing scheduling algorithms it should be compiled to the kernel statically giving the user the ability to switch to it without kernel recompilation. Signed-off-by: Tatyana Brokhman diff --git a/block/Kconfig.iosched b/

[PATCH v3 2/2] block: Add API for urgent request handling

2012-12-11 Thread Tanya Brokhman
From: Tatyana Brokhman This patch add support in block & elevator layers for handling urgent requests. The decision if a request is urgent or not is taken by the scheduler. Urgent request notification is passed to the underlying block device driver (eMMC for example). Block device driver may deci

[PATCH v3 1/2] block: Add support for reinsert a dispatched req

2012-12-11 Thread Tanya Brokhman
From: Tatyana Brokhman Add support for reinserting a dispatched request back to the scheduler's internal data structures. This capability is used by the device driver when it chooses to interrupt the current request transmission and execute another (more urgent) pending request. For example: inte

[PATCH v3 0/2] block: Adding support for urgent requests handling

2012-12-11 Thread Tanya Brokhman
This patch set adds support in block & elevator layers for handling urgent requests. In order to decrease the latency of a prioritized request (such as READ requests) we might want to stop the transmission of a current "low priority" request in order to handle the "high priority" one. The urgency o

[PATCH] mmc: mmci: Fixup and cleanup code for DMA handling

2012-12-11 Thread Ulf Hansson
From: Ulf Hansson The cookie is now used to indicate if dma_unmap_sg shall be done in post_request. At DMA errors, the DMA job is immediately not only terminated but also unmapped. To indicate that this has been done the cookie is reset to zero. post_request will thus only do dma_umap_sg for requ

Re: [PATCH 1/2] mmc: slot-gpio: use devm_* managed functions to ease users

2012-12-11 Thread Shawn Guo
On Tue, Dec 11, 2012 at 08:32:14AM +0100, Guennadi Liakhovetski wrote: > Ok, so, you agree, that the normal case is, when these GPIO functions are > requested only once during probing and are released during driver > unbinding, and that it's worth optimisine for this case. In principle I > agree

Re: FW: [PATCH v1 0/3] SDIO fixes

2012-12-11 Thread Subhash Jadavani
Hi Chris, Can i request you to merge following 3 patches to mmc-next? Ulf have acked all 3 patches and Johan Rudholm also reviewed one of them. Regards, Subhash Original Message Subject: [PATCH v1 0/3] SDIO fixes Date: Tue, 4 Dec 2012 17:06:17 +0530 From: Subhash Jada

Re: [PATCH 1/1] mmc: sdhci-acpi: enable runtime-pm for device HID INT33C6

2012-12-11 Thread Rafael J. Wysocki
On Monday, December 10, 2012 09:20:03 AM Chris Ball wrote: > Hi, > > On Mon, Dec 10 2012, Adrian Hunter wrote: > > sdhci-acpi supports ACPI devices which have compatibility ID > > PNP0D40, however it is not possible to know if those devices > > will all work correctly with runtime-pm, so that must

Re: [PATCH v6 11/14] mmc: sdhci: fix the bug that DDR50 can't work for emmc

2012-12-11 Thread Kevin Liu
2012/12/7 Kevin Liu : > 2012/12/8 Kevin Liu : >> 2012/12/8 Chris Ball : >>> Hi, >>> >>> On Mon, Nov 19 2012, Kevin Liu wrote: In fact, I don't think 3.3v vccq for emmc can work under DDR50 mode with SD host. >>> >>> I've checked on the scope that we're reaching DDR50 with our 3.3V vccq >>