[PATCH] mmc: sdhci-sirf: let device core setup the default pin configuration

2013-05-13 Thread Barry Song
With device core now able to setup the default pin configuration, the call to devm_pinctrl_get_select_default can be removed. And the pin configuration code based on the deprecated Samsung specific gpio bindings is also removed. CC: Linus Walleij Signed-off-by: Barry Song --- drivers/mmc/host/s

Re: [PATCH V2 05/10] mmc: sdhi-pxav3: handle mmc_of_parse() errors during probe

2013-05-13 Thread Guennadi Liakhovetski
There's a typo in the subject line - it's sdhci, not sdhi :) Thanks Guennadi On Mon, 13 May 2013, Simon Baatz wrote: > > Signed-off-by: Simon Baatz > --- > drivers/mmc/host/sdhci-pxav3.c |7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/sdhci

Re: [PATCH V2 00/10] mmc_of_parse() adaptations, DT support for Sheevaplugs

2013-05-13 Thread Guennadi Liakhovetski
Hi Simon On Mon, 13 May 2013, Simon Baatz wrote: > While adding DT support for the Sheevaplugs by Globalscale Technologies > (Kirkwood), it turned out that the DT binding of mvsdio lacked features to > properly support the hardware (active high/low of CD and WP pins could not > be described in DT

Re: [PATCH V2 07/10] ARM: mvebu: Use standard MMC binding for all users of mvsdio

2013-05-13 Thread Simon Baatz
Hi Jason, On Mon, May 13, 2013 at 07:09:18PM -0400, Jason Cooper wrote: > On Mon, May 13, 2013 at 11:18:58PM +0200, Simon Baatz wrote: > > In order to prepare the switch to the standard MMC device tree parser > > for mvsdio, adapt all current uses of mvsdio in the dts files to the > > standard for

Re: [PATCH] drivers: mmc: host: use devm_ioremap_resource()

2013-05-13 Thread Jingoo Han
Sunday, May 12, 2013 11:44 PM, Laurent Navet wrote: > > eplace a call to deprecated devm_request_and_ioremap by devm_ioremap_resource. CC'ed Sachin Kamat Fix the typo: eplace -> replace > > Found with coccicheck and this semantic patch: > scripts/coccinelle/api/devm_ioremap_resource.cocci >

Re: [PATCH V2 07/10] ARM: mvebu: Use standard MMC binding for all users of mvsdio

2013-05-13 Thread Jason Cooper
On Mon, May 13, 2013 at 11:18:58PM +0200, Simon Baatz wrote: > In order to prepare the switch to the standard MMC device tree parser > for mvsdio, adapt all current uses of mvsdio in the dts files to the > standard format. > > Signed-off-by: Simon Baatz > --- ... > diff --git a/arch/arm/boot/dts/

[PATCH V2 10/10] ARM: Kirkwood: add DT support for Sheevaplug and Sheevaplug eSATA

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- arch/arm/mach-kirkwood/Kconfig|7 +++ arch/arm/mach-kirkwood/Makefile |1 + arch/arm/mach-kirkwood/board-dt.c |4 arch/arm/mach-kirkwood/board-sheevaplug.c | 27 +++ arch/arm/mach-kirkwood

[PATCH V2 09/10] ARM: Kirkwood: Add dts files for Sheevaplug and eSATA Sheevaplug

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- arch/arm/boot/dts/Makefile|2 + arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi | 97 + arch/arm/boot/dts/kirkwood-sheevaplug-esata.dts | 40 + arch/arm/boot/dts/kirkwood-sheevaplug.dts | 45

[PATCH V2 08/10] mmc: mvsdio: use standard MMC device-tree binding parser mmc_of_parse()

2013-05-13 Thread Simon Baatz
Instead of parsing the DT binding on our own, use the standard parser mmc_of_parse(), introduced by commit 6c56e7a. Signed-off-by: Simon Baatz --- drivers/mmc/host/mvsdio.c | 73 + 1 file changed, 40 insertions(+), 33 deletions(-) diff --git a/drive

[PATCH V2 07/10] ARM: mvebu: Use standard MMC binding for all users of mvsdio

2013-05-13 Thread Simon Baatz
In order to prepare the switch to the standard MMC device tree parser for mvsdio, adapt all current uses of mvsdio in the dts files to the standard format. Signed-off-by: Simon Baatz --- arch/arm/boot/dts/armada-370-db.dts|1 + arch/arm/boot/dts/armada-370-mirabox.dts

[PATCH V2 06/10] mmc: tegra: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/sdhci-tegra.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index e0dba74..7eb62f8 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/

[PATCH V2 05/10] mmc: sdhi-pxav3: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/sdhci-pxav3.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index 1ae358e..67ea388 100644 --- a/drivers/mmc/host/sdhci-pxav3.c +++ b/drivers/mmc/host/sd

[PATCH V2 04/10] mmc: mxcmmc: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/mxcmmc.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index d503635..f47546f 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c @@ -1067,7 +1067,

[PATCH V2 03/10] mmc: tmio-mmc: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/tmio_mmc_pio.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index f508ecb..f1a9d4a 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tm

[PATCH V2 02/10] mmc: sh_mmcif: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/sh_mmcif.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index ba76a53..6ded7fb 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -

[PATCH V2 01/10] mmc: return mmc_of_parse() errors to caller

2013-05-13 Thread Simon Baatz
In addition to just logging errors encountered during DT parsing or allocating GPIO slots for CD/WP, mmc_of_parse() now returns with an error. Signed-off-by: Simon Baatz --- drivers/mmc/core/host.c | 24 +++- include/linux/mmc/host.h |2 +- 2 files changed, 20 insertio

[PATCH V2 00/10] mmc_of_parse() adaptations, DT support for Sheevaplugs

2013-05-13 Thread Simon Baatz
While adding DT support for the Sheevaplugs by Globalscale Technologies (Kirkwood), it turned out that the DT binding of mvsdio lacked features to properly support the hardware (active high/low of CD and WP pins could not be described in DT). This is standard functionality provided by the mmc_of_p

Re: [PATCH v1] mmc-utils: adding support for Android compilation

2013-05-13 Thread merez
Hi Chris, Can you please merge this patch to mmc-utils? Thanks, Maya > Signed-off-by: Yaniv Gardi > --- > Android.mk | 11 +++ > 1 files changed, 11 insertions(+), 0 deletions(-) > create mode 100644 Android.mk > > diff --git a/Android.mk b/Android.mk > new file mode 100644 > index 0

Re: [PATCH/RESEND v6 3/3] block: Adding ROW scheduling algorithm

2013-05-13 Thread Jeff Moyer
Tanya Brokhman writes: > 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 d

Re: [PATCH 1/3] mmc: mmci: Use optional sleep pinctrl state

2013-05-13 Thread Linus Walleij
On Mon, May 13, 2013 at 3:47 PM, Ulf Hansson wrote: > By optionally putting the pins into sleep state in the .runtime_suspend > callback we can accomplish two things. One is to minimize current leakage > from pins and thus save power, second we can prevent the IP from driving > pins output in an

Re: [PATCH 0/3] ARM: Kirkwood: Add DT support for (eSATA) Sheevaplug

2013-05-13 Thread Jason Cooper
On Mon, Apr 22, 2013 at 09:54:57PM +0200, Simon Baatz wrote: > These patches add DT support for the Sheevaplugs by Globalscale > Technologies. There exists two versions, one with an eSATA port and > one without. > > Surprisingly, the conversion was not straight forward. In the eSATA > version (bo

[PATCH] mmc: mmci: Support for CMD23

2013-05-13 Thread Ulf Hansson
From: Ulf Hansson Support added for transmission of CMD23 during multi block read or write. In order to activate this feature, MMC_CAP_CMD23 flag needs to be enabled in the capabilities field. Note that CMD23 support is mandatory to support features like reliable write, data tag, context ID, pack

[PATCH] mmc: mmci: Set actual clock for debug purpose

2013-05-13 Thread Ulf Hansson
From: Ulf Hansson Update cclk to the acutal used value and copy it to the actual_clock variable in the mmc host for debug purpose. Signed-off-by: Fredrik Soderstedt Signed-off-by: Ulf Hansson --- drivers/mmc/host/mmci.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/

[PATCH] mmc: mmci: Use devm_clk_get API

2013-05-13 Thread Ulf Hansson
From: Ulf Hansson Converting to devm_clk_get simplifies error handling in probe and we can remove other corresponding calls to clk_put. Signed-off-by: Ulf Hansson --- drivers/mmc/host/mmci.c |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/mmci.c

[PATCH 0/3] mmc: mmci: Support ap_sleep in cpuidle for ux500

2013-05-13 Thread Ulf Hansson
From: Ulf Hansson To be able to enter ap_sleep state in cpuidle were the APE power domain regulator will be cut, a register save and restore mechanism needs to be implemented. This patchset adapts to these restrictions. Ulf Hansson (3): mmc: mmci: Use optional sleep pinctrl state mmc: mmci:

[PATCH 3/3] mmc: mmci: Save and restore register context

2013-05-13 Thread Ulf Hansson
From: Ulf Hansson If a corresponding power domain exists for the device and it manages to cut the domain regulator while the device is runtime suspended, the IP loses it's registers context. We restore the context in the .runtime_resume callback from the existing register caches to adapt to this

[PATCH 1/3] mmc: mmci: Use optional sleep pinctrl state

2013-05-13 Thread Ulf Hansson
From: Ulf Hansson By optionally putting the pins into sleep state in the .runtime_suspend callback we can accomplish two things. One is to minimize current leakage from pins and thus save power, second we can prevent the IP from driving pins output in an uncontrolled manner, which may happen if t

[PATCH 2/3] mmc: mmci: Adapt to register write restrictions

2013-05-13 Thread Ulf Hansson
From: Ulf Hansson After a write to the MMCICLOCK register data cannot be written to this register for three feedback clock cycles. Writes to the MMCIPOWER register must be separated by three MCLK cycles. Previously no issues has been observered, but using higher ARM clock frequencies on STE- plat

RE: Packed commands amount limitation

2013-05-13 Thread Seungwon Jeon
On Monday, May 13, 2013, Ilan Smith wrote: > Hi, > > In card/block.c:mmc_blk_prep_packed_list(), there is generic logic for > determining the maximum number > of blocks that can be sent in a single transaction: > > max_blk_count = min(card->host->max_blk_count, >

[RFC/PATCH] mmc: core: fix HPI polling timeout

2013-05-13 Thread Konstantin Dorfman
Out of CPU time for the MMC context included into measured timeout. System under heavy load will easily exceed out_of_int_time (typically 20 ms). In this case real card status checked again and error reported for wrong card state only. Signed-off-by: Konstantin Dorfman Signed-off-by: Sujith Reddy

Packed commands amount limitation

2013-05-13 Thread Ilan Smith
Hi, In card/block.c:mmc_blk_prep_packed_list(), there is generic logic for determining the maximum number of blocks that can be sent in a single transaction: max_blk_count = min(card->host->max_blk_count, card->host->max_req_size >> 9); This value is used to

Re: [PATCH 3/8] mtd: use generic helper to set max_discard_sectors

2013-05-13 Thread Namjae Jeon
2013/5/13, Artem Bityutskiy : > On Sat, 2013-04-13 at 22:38 +0900, Namjae Jeon wrote: >> From: Namjae Jeon >> >> It is better to use blk_queue_max_discard_sectors helper >> function to set max_discard_sectors as it checks >> max_discard_sectors upper limit UINT_MAX >> 9 >> >> similar issue was rep

Re: [PATCH 3/8] mtd: use generic helper to set max_discard_sectors

2013-05-13 Thread Artem Bityutskiy
On Sat, 2013-04-13 at 22:38 +0900, Namjae Jeon wrote: > From: Namjae Jeon > > It is better to use blk_queue_max_discard_sectors helper > function to set max_discard_sectors as it checks > max_discard_sectors upper limit UINT_MAX >> 9 > > similar issue was reported for mmc in below link > https:/