Re: [PATCH v2] mmc: Resolve BKOPS compatability issue

2015-01-29 Thread Jaehoon Chung
Hi, Alexey. On 01/29/2015 05:49 PM, Alexey Skidanov wrote: > This patch is coming to fix compatibility issue of BKOPS_EN field of EXT_CSD. > In eMMC-5.1, BKOPS_EN was changed, and now it has two operational bits: > Bit 0 - MANUAL_EN > Bit 1 - AUTO_EN > In previous eMMC revisions, only Bit 0 was s

Re: [PATCH 1/2] mmc: core: use card pointer as the first parameter of execute_tuning()

2015-01-29 Thread Jaehoon Chung
On 01/30/2015 09:13 AM, Doug Anderson wrote: > Ulf, > > On Thu, Jan 29, 2015 at 1:16 AM, Ulf Hansson wrote: >> - Drastically decreased cc-list. >> >> On 29 January 2015 at 01:55, Doug Anderson wrote: >>> Ulf, >>> >>> On Tue, Jan 27, 2015 at 7:18 AM, Ulf Hansson wrote: > I asked Addy to post

Re: [PATCH 1/2] mmc: core: use card pointer as the first parameter of execute_tuning()

2015-01-29 Thread addy ke
hi, Doug On 2015/1/30 08:13, Doug Anderson wrote: > Ulf, > > On Thu, Jan 29, 2015 at 1:16 AM, Ulf Hansson wrote: >> - Drastically decreased cc-list. >> >> On 29 January 2015 at 01:55, Doug Anderson wrote: >>> Ulf, >>> >>> On Tue, Jan 27, 2015 at 7:18 AM, Ulf Hansson wrote: > I asked Addy t

Re: [PATCH 1/2] mmc: core: use card pointer as the first parameter of execute_tuning()

2015-01-29 Thread Doug Anderson
Ulf, On Thu, Jan 29, 2015 at 1:16 AM, Ulf Hansson wrote: > - Drastically decreased cc-list. > > On 29 January 2015 at 01:55, Doug Anderson wrote: >> Ulf, >> >> On Tue, Jan 27, 2015 at 7:18 AM, Ulf Hansson wrote: I asked Addy to post upstream against mmc_send_tuning(), but I guess he d

[PATCH v2] mmc: moxart: fix probe logic

2015-01-29 Thread Arnd Bergmann
Jonas Jensen wanted to submit a patch for these, but apparently forgot about it. I stumbled over this symptom first: drivers/built-in.o: In function `moxart_probe': :(.text+0x2af128): undefined reference to `of_dma_request_slave_channel' This is because of_dma_request_slave_channel is an internal

Re: [PATCH] mmc: moxart: fix probe logic

2015-01-29 Thread Arnd Bergmann
On Thursday 29 January 2015 17:01:04 Russell King - ARM Linux wrote: > On Thu, Jan 29, 2015 at 05:15:31PM +0100, Arnd Bergmann wrote: > > @@ -586,10 +586,10 @@ static int moxart_probe(struct platform_device *pdev) > > goto out; > > } > > > > - clk = of_clk_get(node, 0); >

Re: [PATCH] mmc: moxart: fix probe logic

2015-01-29 Thread Russell King - ARM Linux
On Thu, Jan 29, 2015 at 05:15:31PM +0100, Arnd Bergmann wrote: > @@ -586,10 +586,10 @@ static int moxart_probe(struct platform_device *pdev) > goto out; > } > > - clk = of_clk_get(node, 0); > - if (IS_ERR(clk)) { > + host->clk = of_clk_get(node, 0); > + if (IS_

[PATCH] mmc: card: Fixing few coding style errors

2015-01-29 Thread Sheetal Tigadoli
The patch fixes some of the following error/warnings from the file block.c ./scripts/checkpatch.pl --file --terse drivers/mmc/card/block.c drivers/mmc/card/block.c:45: WARNING: Use #include instead of drivers/mmc/card/block.c:102: WARNING: line over 80 characters drivers/mmc/card/block.c:186:

[PATCH] mmc: moxart: fix probe logic

2015-01-29 Thread Arnd Bergmann
Jonas Jensen wanted to submit a patch for these, but apparently forgot about it. I stumbled over this symptom first: drivers/built-in.o: In function `moxart_probe': :(.text+0x2af128): undefined reference to `of_dma_request_slave_channel' This is because of_dma_request_slave_channel is an internal

[PATCH v3 3/6] mmc: pwrseq: Document optional clock for the simple power sequence

2015-01-29 Thread Javier Martinez Canillas
Some WLAN chips attached to a SDIO interface, need an external clock to be operational. Since this is very common, extend the simple MMC power sequence DT binding to support an optional clock. Signed-off-by: Javier Martinez Canillas --- Changes since v2: None. Changes since v1: None. --- Docum

[PATCH v3 2/6] mmc: pwrseq_simple: Extend to support more pins

2015-01-29 Thread Javier Martinez Canillas
Many WLAN attached to a SDIO/MMC interface, needs more than one pin for their reset sequence. For example, is very common for chips to have two pins: one for reset and one for power enable. This patch adds support for more reset pins to the pwrseq_simple driver and instead hardcoding a fixed numbe

[PATCH v3 4/6] mmc: pwrseq_simple: Add optional reference clock support

2015-01-29 Thread Javier Martinez Canillas
Some WLAN chips attached to a SDIO interface, need a reference clock. Since this is very common, extend the prseq_simple driver to support an optional clock that is enabled prior the card power up procedure. Note: the external clock is optional. Thus an error is not returned if the clock is not f

Re: [PATCH] mmc: Add hardware dependencies for sdhci-pxav3 and sdhci-pxav2

2015-01-29 Thread Ulf Hansson
On 29 January 2015 at 15:17, Jean Delvare wrote: > Hi Ulf, > > On Wed, 28 Jan 2015 15:04:24 +0100, Ulf Hansson wrote: >> On 27 January 2015 at 15:34, Jean Delvare wrote: >> > Hi Ulf, >> > >> > Le Tuesday 27 January 2015 à 15:06 +0100, Ulf Hansson a écrit : >> >> On 26 January 2015 at 11:23, Jean

[PATCH v3 1/6] mmc: pwrseq: Document that simple sequence support more than one GPIO

2015-01-29 Thread Javier Martinez Canillas
Many SDIO/MMC attached WLAN chips need more than one ping for their reset sequence. Extend the pwrseq_simple binding to support more than one pin. Signed-off-by: Javier Martinez Canillas --- Changes since v2: None. Changes since v1: - Make the explanation clearer by adding an explicit "they".

[PATCH v3 6/6] ARM: dts: exynos5250-snow: Add cap-sdio-irq to wifi mmc node

2015-01-29 Thread Javier Martinez Canillas
Enabling SDIO IRQ signalling for the wifi MMC/SDIO slot doubles the transmission transfer rate. Signed-off-by: Javier Martinez Canillas --- Changes since v2: None. Changes since v1: None, new patch. --- arch/arm/boot/dts/exynos5250-snow.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/a

[PATCH v3 5/6] ARM: dts: exynos5250-snow: Enable wifi power-on

2015-01-29 Thread Javier Martinez Canillas
The Snow board has a MMC/SDIO wifi chip that is always powered but it needs a power sequence involving a reset (active low) and an enable (active high) pins. Both pins are marked as active low since the MMC simple power sequence driver asserts the pins prior to the card power up procedure and de-as

[PATCH v3 0/6] Add multiple GPIO and external clock to MMC pwrseq_simple

2015-01-29 Thread Javier Martinez Canillas
Hello Ulf, Many WLAN chips attached to an SDIO interface needs more than one GPIO for their reset sequence and also an external clock to be operational. Since this is very common, this series extend the simple MMC power sequence to support more than one reset GPIO and also an optional external cl

Re: [PATCH] mmc: Add hardware dependencies for sdhci-pxav3 and sdhci-pxav2

2015-01-29 Thread Jean Delvare
Hi Ulf, On Wed, 28 Jan 2015 15:04:24 +0100, Ulf Hansson wrote: > On 27 January 2015 at 15:34, Jean Delvare wrote: > > Hi Ulf, > > > > Le Tuesday 27 January 2015 à 15:06 +0100, Ulf Hansson a écrit : > >> On 26 January 2015 at 11:23, Jean Delvare wrote: > >> > I seem to understand that the sdhci-p

Re: [PATCH v2 4/6] mmc: pwrseq_simple: Add optional reference clock support

2015-01-29 Thread Javier Martinez Canillas
Hello Ulf, Thanks a lot for your feedback. On 01/29/2015 02:05 PM, Ulf Hansson wrote: >> >> struct mmc_pwrseq_simple { >> struct mmc_pwrseq pwrseq; >> + struct clk *ext_clk; > > You need to add a bool, maybe call it clk_enabled; See why below. > Ok >> int nr_gpios; >>

Re: [PATCH v2 4/6] mmc: pwrseq_simple: Add optional reference clock support

2015-01-29 Thread Ulf Hansson
On 28 January 2015 at 19:15, Javier Martinez Canillas wrote: > Some WLAN chips attached to a SDIO interface, need a reference clock. > > Since this is very common, extend the prseq_simple driver to support > an optional clock that is enabled prior the card power up procedure. > > Note: the externa

Re: [PATCH] mmc: sdhci: Apply FSL ESDHC reset handling quirk to OF

2015-01-29 Thread Ulf Hansson
On 28 January 2015 at 20:52, Martin Hicks wrote: > > The reset code was pushed into the esdhc-imx driver, but missed being > pushed into the FSL OF driver at the same time. The commit that broke > the OF ESDHC driver was 0718e59ae259f7c48155b4e852d8b0632d59028e > > Signed-off-by: Martin Hicks M

Re: [PATCH v4 0/7] Fixes and improvements for SDHCI on Armada 38x

2015-01-29 Thread Ulf Hansson
On 29 January 2015 at 12:36, Gregory CLEMENT wrote: > Hi, > > this series brings fixes and improvements for the SDHCI controller of > the Armada 38x SoCs. > > The changes for this forth version was done on the 1st and 4th > patches, see the changelog for the details. > > The first two patches are

[PATCH v4 5/7] ARM: mvebu: Use macros for interrupt flags on Armada 38x sdhci node

2015-01-29 Thread Gregory CLEMENT
Instead of hardcoding the values of the interrupt flags, use the macros provided by and for the Armada 38x SDHCI node. Signed-off-by: Gregory CLEMENT --- arch/arm/boot/dts/armada-38x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/a

[PATCH v4 2/7] mmc: sdhci-pxav3: Fix Armada 38x controller's caps according to erratum ERR-7878951

2015-01-29 Thread Gregory CLEMENT
From: Marcin Wojtas According to erratum 'ERR-7878951' Armada 38x SDHCI controller has different capabilities than the ones shown in its registers: - it doesn't support the voltage switching: it can work either with 3.3V or 1.8V supply - it doesn't support the SDR104 mode - SDR50 mode doesn't

[PATCH v4 0/7] Fixes and improvements for SDHCI on Armada 38x

2015-01-29 Thread Gregory CLEMENT
Hi, this series brings fixes and improvements for the SDHCI controller of the Armada 38x SoCs. The changes for this forth version was done on the 1st and 4th patches, see the changelog for the details. The first two patches are fixes and should be also applied on the stable branch (I added stabl

[PATCH v4 3/7] mmc: sdhci-pxav3: Extend binding with SDIO3 conf reg for the Armada 38x

2015-01-29 Thread Gregory CLEMENT
The SDHCI unit used on the Armada 38x needs using an extra register to do specific clock adjustments in order to support the SDR50 and DDR50 modes. This patch extends the binding to allow using this register. Signed-off-by: Gregory CLEMENT --- Documentation/devicetree/bindings/mmc/sdhci-pxa.txt

[PATCH v4 1/7] mmc: sdhci-pxav3: Fix SDR50 and DDR50 capabilities for the Armada 38x flavor

2015-01-29 Thread Gregory CLEMENT
According to erratum 'FE-2946959' both SDR50 and DDR50 modes require specific clock adjustments in SDIO3 Configuration register. However, this register was not part of the device tree binding. Even if the binding can (and will) be extended we still need handling the case where this register was not

[PATCH v4 6/7] ARM: mvebu: Update the SDHCI node on Armada 38x

2015-01-29 Thread Gregory CLEMENT
The binding of the armada-380-sdhci has been extended with a new register in order to be able to use the SDR50 and DDR50 mode. This commit add the resource associated to this new register for the Armada 38x. Signed-off-by: Gregory CLEMENT --- arch/arm/boot/dts/armada-38x.dtsi | 5 - 1 file c

[PATCH v4 4/7] mmc: sdhci-pxav3: Modify clock settings for the SDR50 and DDR50 modes

2015-01-29 Thread Gregory CLEMENT
From: Marcin Wojtas According to erratum 'FE-2946959' both SDR50 and DDR50 modes require specific clock adjustments in SDIO3 Configuration register. This commit add the support of this register and for SDR50 or DDR50 mode use it as suggested by the erratum: - Set the SDIO3 Clock Inv field in SDI

[PATCH v4 7/7] ARM: mvebu: Add Device Tree description of SDHCI for Armada 388 RD

2015-01-29 Thread Gregory CLEMENT
The Device Tree description of SDHCI on Armada 388 RD board was missing. This commit adds the node for it. Signed-off-by: Gregory CLEMENT --- arch/arm/boot/dts/armada-388-rd.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/armada-388-rd.dts b/arch/arm/boot/d

Re: [PATCH 1/4] mmc: core: add support for hardware reset gpio line

2015-01-29 Thread Marek Szyprowski
Hello, On 2015-01-29 11:56, Javier Martinez Canillas wrote: On Thu, Jan 29, 2015 at 10:15 AM, Marek Szyprowski wrote: Also, I wonder whether we could extend the mmc-pwrseq to cover your case? Did you consider that as an option? I didn't consider mmc-pwrseq yet. For me it looked straightforwar

Re: [PATCH 1/4] mmc: core: add support for hardware reset gpio line

2015-01-29 Thread Javier Martinez Canillas
Hello Marek, On Thu, Jan 29, 2015 at 10:15 AM, Marek Szyprowski wrote: >> Also, I wonder whether we could extend the mmc-pwrseq to cover your >> case? Did you consider that as an option? > > > I didn't consider mmc-pwrseq yet. For me it looked straightforward to I agree with Ulf that using mmc-p

Re: [PATCH v2] mmc: Resolve BKOPS compatability issue

2015-01-29 Thread Ulf Hansson
On 29 January 2015 at 09:49, Alexey Skidanov wrote: > This patch is coming to fix compatibility issue of BKOPS_EN field of EXT_CSD. > In eMMC-5.1, BKOPS_EN was changed, and now it has two operational bits: > Bit 0 - MANUAL_EN > Bit 1 - AUTO_EN > In previous eMMC revisions, only Bit 0 was supporte

Re: [PATCH] mmc: sdhci: switch voltage before sdhci_set_ios in runtime resume

2015-01-29 Thread Ulf Hansson
On 29 January 2015 at 10:42, Jisheng Zhang wrote: > I observed the Host Control2 register isn't correctly restored > after runtime resuming on BG2Q. For example, the register reads > as 0x800c before runtime suspend, but it's set as 0x8004 after runtime > resuming. This could results in a non work

Re: [PATCH] mmc: sdhci-pxav3: fix setting of pdata->clk_delay_cycles

2015-01-29 Thread Ulf Hansson
On 28 January 2015 at 12:54, Jisheng Zhang wrote: > Current code checks "clk_delay_cycles > 0" to know whether the optional > "mrvl,clk_delay_cycles" is set or not. But of_property_read_u32() doesn't > touch clk_delay_cycles if the property is not set. And type of > clk_delay_cycles is u32, so we

Re: [PATCH v2] mmc: tegra: Write xfer_mode, CMD regs in together

2015-01-29 Thread Ulf Hansson
On 28 January 2015 at 17:45, Rhyland Klein wrote: > From: Pavan Kunapuli > > If there is a gap between xfer mode and command register writes, > tegra SDMMC controller can sometimes issue a spurious command before > the CMD register is written. To avoid this, these two registers need > to be writt

Re: [PATCH v2 1/7] mmc: sdhci-pxav3: Fix SDR50 and DDR50 capabilities for the Armada 38x flavor

2015-01-29 Thread Ulf Hansson
On 29 January 2015 at 10:42, Gregory CLEMENT wrote: > Hi Ulf, > > On 29/01/2015 10:31, Ulf Hansson wrote: >> [...] >> Seems like this function can be void instead of always returning 0. >>> >>> In patch 4 "mmc: sdhci-pxav3: Modify clock settings for the SDR50 and >>> DDR50 modes", this functi

[PATCH V2 01/15] mmc: host: Add facility to support re-tuning

2015-01-29 Thread Adrian Hunter
Currently, there is core support for tuning during initialization. There can also be a need to re-tune periodically (e.g. sdhci) or to re-tune after the host controller is powered off (e.g. after PM runtime suspend / resume) or to re-tune in response to CRC errors. The main requirements for re-tun

[PATCH V2 00/15] mmc: host: Add facility to support re-tuning

2015-01-29 Thread Adrian Hunter
Hi Here is V2 of some patches to move re-tuning support out of sdhci and into the core, and add support for HS400 re-tuning. Currently sdhci does re-tuning transparently by calling sdhci_execute_tuning() from its ->request() function. The problem with HS400 re-tuning is that it must be done in H

[PATCH V2 03/15] mmc: core: Add support for re-tuning before each request

2015-01-29 Thread Adrian Hunter
At the start of each request, re-tune if needed and then hold off re-tuning again until the request is done. Note that though there is one function that starts requests (mmc_start_request) there are two that wait for the request to be done (mmc_wait_for_req_done and mmc_wait_for_data_req_done). A

[PATCH V2 02/15] mmc: core: Disable re-tuning when card is no longer initialized

2015-01-29 Thread Adrian Hunter
Re-tuning is done before a request is sent to the card. Host controller drivers can choose to enable re-tuning when tuning is done during card initialization. To ensure that re-tuning gets disabled, add disabling to mmc_set_initial_state() which is called whenever the card is powered on, off, or re

[PATCH V2 12/15] mmc: sdhci: Flag re-tuning is needed on CRC or End-Bit errors

2015-01-29 Thread Adrian Hunter
CRC or End-Bit errors could possibly be alleviated by re-tuning so flag re-tuning needed in those cases. Note this has no effect if re-tuning has not been enabled. Signed-off-by: Adrian Hunter --- drivers/mmc/host/sdhci.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff

[PATCH V2 08/15] mmc: mmc: Comment that callers need to hold re-tuning if the card is put to sleep

2015-01-29 Thread Adrian Hunter
Currently "mmc sleep" is only used before power off and is not paired with waking up. If that ever changed, re-tuning might need to be held, so add a comment for that. Signed-off-by: Adrian Hunter --- drivers/mmc/core/mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/core/mm

[PATCH V2 13/15] mmc: block: Check re-tuning in the recovery path

2015-01-29 Thread Adrian Hunter
If re-tuning is needed, do it in the recovery path to give recovery commands a better chance of success. Signed-off-by: Adrian Hunter --- drivers/mmc/card/block.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index c69afb5..293e938 100

[PATCH V2 11/15] mmc: sdhci: Change to new way of doing re-tuning

2015-01-29 Thread Adrian Hunter
Make use of mmc core support for re-tuning instead of doing it all in the sdhci driver. This patch also changes to flag the need for re-tuning always after runtime suspend when tuning has been used at initialization. Previously it was only done if the re-tuning timer was in use. Signed-off-by: Ad

[PATCH V2 04/15] mmc: core: Check re-tuning before retrying

2015-01-29 Thread Adrian Hunter
Possibly a command is failing because re-tuning is needed. Use mmc_retune_recheck() to check re-tuning. At that point re-tuning is held, at least by the request, so mmc_retune_recheck() does a mmc_retune_release() and mmc_retune_hold(). Signed-off-by: Adrian Hunter --- drivers/mmc/core/core.c |

[PATCH V2 05/15] mmc: core: Hold re-tuning during switch commands

2015-01-29 Thread Adrian Hunter
Hold re-tuning during switch commands to prevent it from conflicting with the busy state or the CMD13 verification. Signed-off-by: Adrian Hunter --- drivers/mmc/core/mmc_ops.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/core/m

[PATCH V2 07/15] mmc: core: Hold re-tuning while bkops ongoing

2015-01-29 Thread Adrian Hunter
Hold re-tuning during bkops to prevent it from conflicting with the busy state. Signed-off-by: Adrian Hunter --- drivers/mmc/core/core.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 91838ea..392a150 100644 --- a/drivers/mmc/c

[PATCH V2 06/15] mmc: core: Hold re-tuning during erase commands

2015-01-29 Thread Adrian Hunter
Hold re-tuning during erase commands to prevent it from conflicting with the sequence of commands. Signed-off-by: Adrian Hunter --- drivers/mmc/core/core.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index f1d663e..91838ea 100644 ---

[PATCH] mmc: sdhci: switch voltage before sdhci_set_ios in runtime resume

2015-01-29 Thread Jisheng Zhang
I observed the Host Control2 register isn't correctly restored after runtime resuming on BG2Q. For example, the register reads as 0x800c before runtime suspend, but it's set as 0x8004 after runtime resuming. This could results in a non working host. The reason is the Host Control2 is incorrectly r

Re: [PATCH v2 1/7] mmc: sdhci-pxav3: Fix SDR50 and DDR50 capabilities for the Armada 38x flavor

2015-01-29 Thread Gregory CLEMENT
Hi Ulf, On 29/01/2015 10:31, Ulf Hansson wrote: > [...] > >>> Seems like this function can be void instead of always returning 0. >> >> In patch 4 "mmc: sdhci-pxav3: Modify clock settings for the SDR50 and >> DDR50 modes", this function can return other values than 0. >> >> I could change the pro

Re: [PATCH v2 1/7] mmc: sdhci-pxav3: Fix SDR50 and DDR50 capabilities for the Armada 38x flavor

2015-01-29 Thread Ulf Hansson
[...] >> Seems like this function can be void instead of always returning 0. > > In patch 4 "mmc: sdhci-pxav3: Modify clock settings for the SDR50 and > DDR50 modes", this function can return other values than 0. > > I could change the prototype in patch 4, but it would also imply > removing the t

Re: [PATCH 1/4] mmc: core: add support for hardware reset gpio line

2015-01-29 Thread Marek Szyprowski
Hello, On 2015-01-28 15:24, Ulf Hansson wrote: On 28 January 2015 at 14:59, Marek Szyprowski wrote: There are boards (like Hardkernel's Odroid boards) on which eMMC card's reset line is connected to GPIO line instead of the hardware reset logic. In case of such boards, if first stage of bootlo

Re: [PATCH 1/2] mmc: core: use card pointer as the first parameter of execute_tuning()

2015-01-29 Thread Ulf Hansson
- Drastically decreased cc-list. On 29 January 2015 at 01:55, Doug Anderson wrote: > Ulf, > > On Tue, Jan 27, 2015 at 7:18 AM, Ulf Hansson wrote: >>> I asked Addy to post upstream against mmc_send_tuning(), but I guess >>> he didn't (he posted against Alex's NAKed patch instead). >>> >>> ...when

[PATCH V2 14/15] mmc: block: Retry data requests when re-tuning is needed

2015-01-29 Thread Adrian Hunter
Retry data requests when re-tuning is needed and add a flag to struct mmc_blk_request so that the retry is only done once. Signed-off-by: Adrian Hunter --- drivers/mmc/card/block.c | 12 +++- drivers/mmc/card/queue.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/

[PATCH V2 15/15] mmc: core: Don't print reset warning if reset is not supported

2015-01-29 Thread Adrian Hunter
Check the error code for EOPNOTSUPP and do not print reset warning in that case. Signed-off-by: Adrian Hunter --- drivers/mmc/core/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 392a150..d439bf0 100644 --- a/dr

[PATCH V2 09/15] mmc: core: Separate out the mmc_switch status check so it can be re-used

2015-01-29 Thread Adrian Hunter
Make a separate function to do the mmc_switch status check so it can be re-used. This is preparation for adding support for HS400 re-tuning. Signed-off-by: Adrian Hunter --- drivers/mmc/core/mmc_ops.c | 30 -- drivers/mmc/core/mmc_ops.h | 1 + 2 files changed, 17 ins

[PATCH V2 10/15] mmc: core: Add support for HS400 re-tuning

2015-01-29 Thread Adrian Hunter
HS400 re-tuning must be done in HS200 mode. Add the ability to switch from HS400 mode to HS200 mode before re-tuning and switch back to HS400 after re-tuning. Signed-off-by: Adrian Hunter --- drivers/mmc/core/core.h | 2 ++ drivers/mmc/core/host.c | 17 ++ drivers/mmc/core/mmc.c | 86 +

Re: [RFC PATCH 1/1] mmc: dw_mmc: Add runtime pm to dw_mmc

2015-01-29 Thread Karol Wrona
On 01/22/2015 10:02 AM, Ulf Hansson wrote: > On 21 January 2015 at 17:43, Karol Wrona wrote: >> This patch adds runtime pm handling to dw_mmc and enables it for >> dw_mmc-exynos. >> It mainly uses mci_request/mci_request_end for mmc host state information. >> >> Signed-off-by: Karol Wrona >> ---

[PATCH v2] mmc: Resolve BKOPS compatability issue

2015-01-29 Thread Alexey Skidanov
This patch is coming to fix compatibility issue of BKOPS_EN field of EXT_CSD. In eMMC-5.1, BKOPS_EN was changed, and now it has two operational bits: Bit 0 - MANUAL_EN Bit 1 - AUTO_EN In previous eMMC revisions, only Bit 0 was supported. Signed-off-by: Alexey Skidanov --- drivers/mmc/core/core.

Re: [PATCH v3 4/7] mmc: sdhci-pxav3: Modify clock settings for the SDR50 and DDR50 modes

2015-01-29 Thread Gregory CLEMENT
Hi Ulf, [...] >> + dev_warn(&pdev->dev, "conf-sdio3 register not found\n"); >> + dev_warn(&pdev->dev, "disabling SDR50 and DDR50 modes\n"); >> + dev_warn(&pdev->dev, "consider updating your dtb\n"); > > One dev_warn() should be enough. Also I don't think

Re: [PATCH 2/2] mmc: dw_mmc: wait until card ready if tuning fails

2015-01-29 Thread Ulf Hansson
On 26 January 2015 at 12:19, Addy Ke wrote: > This patch based on Alex's patch: > https://patchwork.kernel.org/patch/5516411/ This above patch was rejected, since it doesn't use mmc_send_tuning(). Please base you work on my latest next branch. If you need other patches which has been posted rece

Re: [PATCH v2 1/7] mmc: sdhci-pxav3: Fix SDR50 and DDR50 capabilities for the Armada 38x flavor

2015-01-29 Thread Gregory CLEMENT
Hi Ulf, On 28/01/2015 21:36, Ulf Hansson wrote: > On 23 January 2015 at 11:56, Gregory CLEMENT > wrote: >> According to erratum 'FE-2946959' both SDR50 and DDR50 modes require >> specific clock adjustments in SDIO3 Configuration register. However, >> this register was not part of the device tree