Re: [PATCHv3 0/3] OMAP: HSMMC: cleanup and runtime pm

2011-07-01 Thread T Krishnamoorthy, Balaji
On Fri, Jul 1, 2011 at 1:06 AM, Cousson, Benoit b-cous...@ti.com wrote: Hi Balaji, On 6/30/2011 9:04 PM, Krishnamoorthy, Balaji T wrote: Removing the custom state machine - lazy disable framework in omap_hsmmc to make way for runtime pm to handle host controller power states. This allows

RE: [PATCH] mxs-mmc: fix clock rate setting

2011-07-01 Thread Sachin Nikam
How to increase the number blocks for SD Read operation? Any sysfs entry? -Original Message- From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc-ow...@vger.kernel.org] On Behalf Of Wolfram Sang Sent: Friday, July 01, 2011 2:48 PM To: Koen Beel Cc: linux-mmc@vger.kernel.org;

Re: [PATCH] mxs-mmc: fix clock rate setting

2011-07-01 Thread Koen Beel
Hi, Think the tabs problem was due to the gmail web ui. Hope it's better now. Signed-off-by: Koen Beel koen.beel at barco.com --- drivers/mmc/host/mxs-mmc.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/mxs-mmc.c

Re: [PATCH] mxs-mmc: fix clock rate setting

2011-07-01 Thread Wolfram Sang
Think the tabs problem was due to the gmail web ui. Hope it's better now. No 0xa0 anymore, but still no tabs. Oh, and lines are wrapped. Documentation/email-clients.txt says === Gmail (Web GUI) Does not work for sending patches. Gmail web client converts tabs to spaces automatically. At

Re: [PATCH] mxs-mmc: fix clock rate setting

2011-07-01 Thread Koen Beel
I send the patch as attachment for now. But I'll have to look into another way of doing this. Corporate mail system is adding stupid disclaimers, gmail web ui is not working ok and corporate firewalls avoid using a different smtp server... On Fri, Jul 1, 2011 at 2:27 PM, Wolfram Sang

Re: [PATCH v8 05/12] mmc: mmc_test: add test for non-blocking transfers

2011-07-01 Thread Per Forlin
On 28 June 2011 10:11, Per Forlin per.for...@linaro.org wrote: Add four tests for read and write performance per different transfer size, 4k to 4M.  * Read using blocking mmc request  * Read using non-blocking mmc request  * Write using blocking mmc request  * Write using non-blocking mmc

Re: [PATCH v8 06/12] mmc: mmc_test: test to measure how sg_len affect performance

2011-07-01 Thread Per Forlin
On 28 June 2011 10:11, Per Forlin per.for...@linaro.org wrote: test that measures how the mmc bandwidth depends on the numbers of sg elements in the sg list. The transfer size if fixed and sg length goes from a few up to 512. The purpose is to measure overhead caused by multiple sg elements.

Re: [PATCH V2] MMC: PM: add suspend/resume in atmel-mci

2011-07-01 Thread Nicolas Ferre
Le 30/06/2011 15:13, Uwe Kleine-König : Hello Nicolas, On Thu, Jun 30, 2011 at 03:49:41PM +0200, Nicolas Ferre wrote: Take care of slots while going to suspend state. Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de ---

Re: [PATCH V2] MMC: PM: add suspend/resume in atmel-mci

2011-07-01 Thread Hans-Christian Egtvedt
On Fri, 2011-07-01 at 16:22 +0200, Nicolas Ferre wrote: Le 30/06/2011 15:13, Uwe Kleine-König : snipp Well, actually for the current implementation the only return code is... 0. And here I try to have a king of best effort approach ;-) + } + return ret;

RE: [PATCH] mxs-mmc: fix clock rate setting

2011-07-01 Thread Sachin Nikam
Can read_ahead_kb can be used to increase the number of read blocks? -Original Message- From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc-ow...@vger.kernel.org] On Behalf Of Sachin Nikam Sent: Friday, July 01, 2011 5:12 PM To: 'Wolfram Sang'; Koen Beel Cc:

Re: [PATCH] mxs-mmc: fix clock rate setting

2011-07-01 Thread Wolfram Sang
Hi, On Fri, Jul 01, 2011 at 03:26:39PM +0200, Koen Beel wrote: I send the patch as attachment for now. Fine with me in this case... But I'll have to look into another way of doing this. Corporate mail system is adding stupid disclaimers, gmail web ui is not working ok and corporate

Re: [PATCH] mxs-mmc: fix clock rate setting

2011-07-01 Thread Wolfram Sang
On Fri, Jul 01, 2011 at 08:08:48PM +0530, Sachin Nikam wrote: Can read_ahead_kb can be used to increase the number of read blocks? Unless you start a _new thread_ for your question and describe your problem in a bit more detail, you probably won't get an answer. -- Pengutronix e.K.

Re: [PATCH] mxs-mmc: fix clock rate setting

2011-07-01 Thread Shawn Guo
On Fri, Jul 01, 2011 at 04:44:09PM +0200, Wolfram Sang wrote: Hi, On Fri, Jul 01, 2011 at 03:26:39PM +0200, Koen Beel wrote: I send the patch as attachment for now. Fine with me in this case... But I'll have to look into another way of doing this. Corporate mail system is adding

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

2011-07-01 Thread T Krishnamoorthy, Balaji
On Fri, Jul 1, 2011 at 4:53 AM, Kevin Hilman khil...@ti.com wrote: Balaji T K balaj...@ti.com writes: +static int omap_hsmmc_runtime_resume(struct device *dev) +{ +     struct omap_hsmmc_host *host; + +     host = platform_get_drvdata(to_platform_device(dev)); +    

[PATCHv4 1/3] MMC: OMAP: HSMMC: Remove lazy_disable

2011-07-01 Thread Balaji T K
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 power (regulator) handling (when to power OFF/ON) should ideally be handled by core layer. Remove usage of lazy disable

[PATCHv4 0/3] OMAP: HSMMC: cleanup and runtime pm

2011-07-01 Thread Balaji T K
Removing the custom state machine - lazy disable framework in omap_hsmmc to make way for runtime pm to handle host controller power states. This allows mmc_host_enable/mmc_host_disable to be replaced by runtime get_sync and put_sync at host controller driver. Enable runtime PM in omap_hsmmc

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

2011-07-01 Thread Balaji T K
add runtime pm support to HSMMC host controller Use runtime pm API to enable/disable HSMMC clock Use runtime autosuspend APIs to enable auto suspend delay Based on OMAP HSMMC runtime implementation by Kevin Hilman, Kishore Kadiyala Signed-off-by: Balaji T K balaj...@ti.com --- changes since v3

[PATCHv4 3/3] MMC: OMAP: HSMMC: Remove unused iclk

2011-07-01 Thread Balaji T K
After runtime conversion to handle clk, iclk node is not used However fclk node is still used to get clock rate. Signed-off-by: Balaji T K balaj...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git

Re: [PATCH v8 00/12] use nonblock mmc requests to minimize latency

2011-07-01 Thread Arnd Bergmann
On Thursday 30 June 2011, Russell King - ARM Linux wrote: We've been here before - with PCMCIA's card insertion code, where you have to go through a sequence of events (insert, power up, reset, etc). The PCMCIA code used to have a collection of small functions to do each step, one chained

[PATCH v9 01/12] mmc: core: add non-blocking mmc request function

2011-07-01 Thread Per Forlin
Previously there has only been one function mmc_wait_for_req() to start and wait for a request. This patch adds * mmc_start_req() - starts a request wihtout waiting If there is on ongoing request wait for completion of that request and start the new one and return. Does not wait for the

[PATCH v9 02/12] omap_hsmmc: add support for pre_req and post_req

2011-07-01 Thread Per Forlin
pre_req() runs dma_map_sg(), post_req() runs dma_unmap_sg. If not calling pre_req() before omap_hsmmc_request() dma_map_sg will be issued before starting the transfer. It is optional to use pre_req(). If issuing pre_req() post_req() must be to be called as well. Signed-off-by: Per Forlin

[PATCH v9 04/12] mmc: mmc_test: add debugfs file to list all tests

2011-07-01 Thread Per Forlin
Add a debugfs file testlist to print all available tests Signed-off-by: Per Forlin per.for...@linaro.org Acked-by: Kyungmin Park kyungmin.p...@samsung.com Acked-by: Arnd Bergmann a...@arndb.de Reviewed-by: Venkatraman S svenk...@ti.com Tested-by: Sourav Poddarsourav.pod...@ti.com Tested-by: Linus

[PATCH v9 05/12] mmc: mmc_test: add test for non-blocking transfers

2011-07-01 Thread Per Forlin
Add four tests for read and write performance per different transfer size, 4k to 4M. * Read using blocking mmc request * Read using non-blocking mmc request * Write using blocking mmc request * Write using non-blocking mmc request The host dirver must support pre_req() and post_req() in order

[PATCH v9 06/12] mmc: mmc_test: test to measure how sg_len affect performance

2011-07-01 Thread Per Forlin
test that measures how the mmc bandwidth depends on the numbers of sg elements in the sg list. The transfer size if fixed and sg length goes from a few up to 512. The purpose is to measure overhead caused by multiple sg elements. Signed-off-by: Per Forlin per.for...@linaro.org Acked-by: Kyungmin

[PATCH v9 07/12] mmc: block: add member in mmc queue struct to hold request data

2011-07-01 Thread Per Forlin
The way the request data is organized in the mmc queue struct it only allows processing of one request at the time. This patch adds a new struct to hold mmc queue request data such as sg list, request, blk request and bounce buffers, and updates any functions depending on the mmc queue struct.

[PATCH v9 08/12] mmc: block: add a block request prepare function

2011-07-01 Thread Per Forlin
Break out code from mmc_blk_issue_rw_rq to create a block request prepare function. This doesn't change any functionallity. This helps when handling more than one active block request. Signed-off-by: Per Forlin per.for...@linaro.org Acked-by: Kyungmin Park kyungmin.p...@samsung.com Acked-by: Arnd

[PATCH v9 11/12] mmc: core: add random fault injection

2011-07-01 Thread Per Forlin
This simple fault injection proved to be very useful to test the error handling in the block.c rw_rq(). It may still be useful to test if the host driver handle pre_req() and post_req() correctly in case of errors. Signed-off-by: Per Forlin per.for...@linaro.org Acked-by: Kyungmin Park

[PATCH v9 09/12] mmc: block: move error code in issue_rw_rq to a separate function.

2011-07-01 Thread Per Forlin
Break out code without functional changes. This simplifies the code and makes way for handle two parallel request. Signed-off-by: Per Forlin per.for...@linaro.org Acked-by: Kyungmin Park kyungmin.p...@samsung.com Acked-by: Arnd Bergmann a...@arndb.de Reviewed-by: Venkatraman S svenk...@ti.com

[PATCH v9 12/12] mmc: block: add handling for two parallel block requests in issue_rw_rq

2011-07-01 Thread Per Forlin
Change mmc_blk_issue_rw_rq() to become asynchronous. The execution flow looks like this: The mmc-queue calls issue_rw_rq(), which sends the request to the host and returns back to the mmc-queue. The mmc-queue calls issue_rw_rq() again with a new request. This new request is prepared, in

[PATCH v9 03/12] mmci: implement pre_req() and post_req()

2011-07-01 Thread Per Forlin
pre_req() runs dma_map_sg() and prepares the dma descriptor for the next mmc data transfer. post_req() runs dma_unmap_sg. If not calling pre_req() before mmci_request(), mmci_request() will prepare the cache and dma just like it did it before. It is optional to use pre_req() and post_req() for

[PATCH] MMC: OMAP: change HSMMC maintainence to Orphan

2011-07-01 Thread Kevin Hilman
From: Madhusudhan Chikkature madhu...@ti.com Update the OMAP HS MMC entry from the MAINTAINERS file as I will no longer be able to maintain this driver. Signed-off-by: Madhusudhan Chikkature madhu...@ti.com [khil...@ti.com: change to Orphan rather than complete removal] Signed-off-by: Kevin

Re: [PATCH] OMAP: HSMMC maintainence

2011-07-01 Thread Kevin Hilman
S, Venkatraman svenk...@ti.com writes: On Fri, Jul 1, 2011 at 2:37 AM, Chikkature@lina0132712 wrote: From: Madhusudhan Chikkature madhu...@ti.com Removing the OMAP HS MMC entry from the MAINTAINERS file as I will no longer be able to maintain this driver. Signed-off-by: Madhusudhan

Re: [PATCH v4 0/4] Extend sdhci-esdhc-imx card_detect and write_protect support for mx5

2011-07-01 Thread Chris Ball
Hi, On Mon, Jun 27 2011, Shawn Guo wrote: I'll need to rebase mmc-next onto linux-next before I can merge it, because the mach-imx/ board files you're modifying do not exist in Linus' tree. (I don't mind doing that, but it might be easier if you had the ARM patches go in via a different tree

[PATCH 1/2] mmc: sdhci-esdhc: simplify cd_gpio, wp_gpio

2011-07-01 Thread Troy Kisky
Currently, platform data is referenced by non init functions. Copy these fields into locally defined struct pltfm_imx_data. The code also currently frees imx_data on troubles with cd_gpio, but returns 0 anyway. Now the code ignores cd_gpio and wp_gpio if the values cause an error. Also, allow

[PATCH 2/2] mmc: sdhci-esdhc: OR mmc-caps with platform data caps

2011-07-01 Thread Troy Kisky
Signed-off-by: Troy Kisky troy.ki...@boundarydevices.com --- arch/arm/plat-mxc/include/mach/esdhc.h |5 + drivers/mmc/host/sdhci-esdhc-imx.c |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-mxc/include/mach/esdhc.h