All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC
@ 2013-05-23 13:13 Ulf Hansson
  2013-05-23 13:13 ` [PATCH 1/6] ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices Ulf Hansson
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Ulf Hansson @ 2013-05-23 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ulf Hansson <ulf.hansson@linaro.org>

This patchset includes especially enablement for UHS-I SD cards, but
also some cleanups and additional enabling of SD/SDIO/(e)MMC features.

These changes shall also be adapted to the corresponding DT files,
but that is left as a separate task and outside this patchset.

Ulf Hansson (6):
  ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices
  ARM: ux500: Don't set plf ocr mask for SD/MMC device
  ARM: ux500: Enable support for RPMB and Reliable Write for eMMC
  ARM: ux500: Enable support for discard for MMC/SD
  ARM: ux500: Set eMMC and WLAN card slot as non-removable
  ARM: ux500: Enable support for UHS-I SD-cards

 arch/arm/mach-ux500/board-mop500-sdi.c |   34 +++++++++++++++++++++-----------
 1 file changed, 22 insertions(+), 12 deletions(-)

-- 
1.7.10

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 1/6] ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices
  2013-05-23 13:13 [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Ulf Hansson
@ 2013-05-23 13:13 ` Ulf Hansson
  2013-05-27 11:10   ` Linus Walleij
  2013-05-23 13:13 ` [PATCH 2/6] ARM: ux500: Don't set plf ocr mask for SD/MMC device Ulf Hansson
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2013-05-23 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ulf Hansson <ulf.hansson@linaro.org>

We are able to cope with an SDMMC clock of 100MHz so let's
make use of the full frequency instead of the half.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 arch/arm/mach-ux500/board-mop500-sdi.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c
index 0ef3877..eb9b2de 100644
--- a/arch/arm/mach-ux500/board-mop500-sdi.c
+++ b/arch/arm/mach-ux500/board-mop500-sdi.c
@@ -53,7 +53,7 @@ static struct stedma40_chan_cfg mop500_sdi0_dma_cfg_tx = {
 
 struct mmci_platform_data mop500_sdi0_data = {
 	.ocr_mask	= MMC_VDD_29_30,
-	.f_max		= 50000000,
+	.f_max		= 100000000,
 	.capabilities	= MMC_CAP_4_BIT_DATA |
 				MMC_CAP_SD_HIGHSPEED |
 				MMC_CAP_MMC_HIGHSPEED,
@@ -106,7 +106,7 @@ static struct stedma40_chan_cfg sdi1_dma_cfg_tx = {
 
 struct mmci_platform_data mop500_sdi1_data = {
 	.ocr_mask	= MMC_VDD_29_30,
-	.f_max		= 50000000,
+	.f_max		= 100000000,
 	.capabilities	= MMC_CAP_4_BIT_DATA,
 	.gpio_cd	= -1,
 	.gpio_wp	= -1,
@@ -143,7 +143,7 @@ static struct stedma40_chan_cfg mop500_sdi2_dma_cfg_tx = {
 
 struct mmci_platform_data mop500_sdi2_data = {
 	.ocr_mask	= MMC_VDD_165_195,
-	.f_max		= 50000000,
+	.f_max		= 100000000,
 	.capabilities	= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA |
 			  MMC_CAP_MMC_HIGHSPEED,
 	.gpio_cd	= -1,
@@ -181,7 +181,7 @@ static struct stedma40_chan_cfg mop500_sdi4_dma_cfg_tx = {
 
 struct mmci_platform_data mop500_sdi4_data = {
 	.ocr_mask	= MMC_VDD_29_30,
-	.f_max		= 50000000,
+	.f_max		= 100000000,
 	.capabilities	= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA |
 			  MMC_CAP_MMC_HIGHSPEED,
 	.gpio_cd	= -1,
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 2/6] ARM: ux500: Don't set plf ocr mask for SD/MMC device
  2013-05-23 13:13 [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Ulf Hansson
  2013-05-23 13:13 ` [PATCH 1/6] ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices Ulf Hansson
@ 2013-05-23 13:13 ` Ulf Hansson
  2013-05-27 11:21   ` Linus Walleij
  2013-05-23 13:13 ` [PATCH 3/6] ARM: ux500: Enable support for RPMB and Reliable Write for eMMC Ulf Hansson
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2013-05-23 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ulf Hansson <ulf.hansson@linaro.org>

The mmci host driver overrides platform ocr mask when a vmmc regulator
can be used. This is the case for sdi0(SD-card) and for sdi4(eMMC).
Thus it is pointless of specifing these mask and why we do remove them.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 arch/arm/mach-ux500/board-mop500-sdi.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c
index eb9b2de..c0573d2 100644
--- a/arch/arm/mach-ux500/board-mop500-sdi.c
+++ b/arch/arm/mach-ux500/board-mop500-sdi.c
@@ -52,7 +52,6 @@ static struct stedma40_chan_cfg mop500_sdi0_dma_cfg_tx = {
 #endif
 
 struct mmci_platform_data mop500_sdi0_data = {
-	.ocr_mask	= MMC_VDD_29_30,
 	.f_max		= 100000000,
 	.capabilities	= MMC_CAP_4_BIT_DATA |
 				MMC_CAP_SD_HIGHSPEED |
@@ -180,7 +179,6 @@ static struct stedma40_chan_cfg mop500_sdi4_dma_cfg_tx = {
 #endif
 
 struct mmci_platform_data mop500_sdi4_data = {
-	.ocr_mask	= MMC_VDD_29_30,
 	.f_max		= 100000000,
 	.capabilities	= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA |
 			  MMC_CAP_MMC_HIGHSPEED,
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 3/6] ARM: ux500: Enable support for RPMB and Reliable Write for eMMC
  2013-05-23 13:13 [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Ulf Hansson
  2013-05-23 13:13 ` [PATCH 1/6] ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices Ulf Hansson
  2013-05-23 13:13 ` [PATCH 2/6] ARM: ux500: Don't set plf ocr mask for SD/MMC device Ulf Hansson
@ 2013-05-23 13:13 ` Ulf Hansson
  2013-05-27 11:30   ` Linus Walleij
  2013-05-23 13:13 ` [PATCH 4/6] ARM: ux500: Enable support for discard for MMC/SD Ulf Hansson
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2013-05-23 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ulf Hansson <ulf.hansson@linaro.org>

By adding MMC_CAP_CMD23 for the eMMC devices, we can support RPMB
and Reliable Write. Additionally it will mean CMD12 will not be sent
to end a successful data transfer.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 arch/arm/mach-ux500/board-mop500-sdi.c |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c
index c0573d2..9bb3ca5 100644
--- a/arch/arm/mach-ux500/board-mop500-sdi.c
+++ b/arch/arm/mach-ux500/board-mop500-sdi.c
@@ -143,8 +143,10 @@ static struct stedma40_chan_cfg mop500_sdi2_dma_cfg_tx = {
 struct mmci_platform_data mop500_sdi2_data = {
 	.ocr_mask	= MMC_VDD_165_195,
 	.f_max		= 100000000,
-	.capabilities	= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA |
-			  MMC_CAP_MMC_HIGHSPEED,
+	.capabilities	= MMC_CAP_4_BIT_DATA |
+				MMC_CAP_8_BIT_DATA |
+				MMC_CAP_MMC_HIGHSPEED |
+				MMC_CAP_CMD23,
 	.gpio_cd	= -1,
 	.gpio_wp	= -1,
 #ifdef CONFIG_STE_DMA40
@@ -180,8 +182,10 @@ static struct stedma40_chan_cfg mop500_sdi4_dma_cfg_tx = {
 
 struct mmci_platform_data mop500_sdi4_data = {
 	.f_max		= 100000000,
-	.capabilities	= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA |
-			  MMC_CAP_MMC_HIGHSPEED,
+	.capabilities	= MMC_CAP_4_BIT_DATA |
+				MMC_CAP_8_BIT_DATA |
+				MMC_CAP_MMC_HIGHSPEED |
+				MMC_CAP_CMD23,
 	.gpio_cd	= -1,
 	.gpio_wp	= -1,
 #ifdef CONFIG_STE_DMA40
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 4/6] ARM: ux500: Enable support for discard for MMC/SD
  2013-05-23 13:13 [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Ulf Hansson
                   ` (2 preceding siblings ...)
  2013-05-23 13:13 ` [PATCH 3/6] ARM: ux500: Enable support for RPMB and Reliable Write for eMMC Ulf Hansson
@ 2013-05-23 13:13 ` Ulf Hansson
  2013-05-27 11:32   ` Linus Walleij
  2013-05-23 13:13 ` [PATCH 5/6] ARM: ux500: Set eMMC and WLAN card slot as non-removable Ulf Hansson
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2013-05-23 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ulf Hansson <ulf.hansson@linaro.org>

By enabling MMC_CAP_ERASE for the SD/MMC devices the mmc block
layer will now act on DISCARD requests.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 arch/arm/mach-ux500/board-mop500-sdi.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c
index 9bb3ca5..3c07f55 100644
--- a/arch/arm/mach-ux500/board-mop500-sdi.c
+++ b/arch/arm/mach-ux500/board-mop500-sdi.c
@@ -55,7 +55,8 @@ struct mmci_platform_data mop500_sdi0_data = {
 	.f_max		= 100000000,
 	.capabilities	= MMC_CAP_4_BIT_DATA |
 				MMC_CAP_SD_HIGHSPEED |
-				MMC_CAP_MMC_HIGHSPEED,
+				MMC_CAP_MMC_HIGHSPEED |
+				MMC_CAP_ERASE,
 	.gpio_wp	= -1,
 	.sigdir		= MCI_ST_FBCLKEN |
 				MCI_ST_CMDDIREN |
@@ -146,6 +147,7 @@ struct mmci_platform_data mop500_sdi2_data = {
 	.capabilities	= MMC_CAP_4_BIT_DATA |
 				MMC_CAP_8_BIT_DATA |
 				MMC_CAP_MMC_HIGHSPEED |
+				MMC_CAP_ERASE |
 				MMC_CAP_CMD23,
 	.gpio_cd	= -1,
 	.gpio_wp	= -1,
@@ -185,6 +187,7 @@ struct mmci_platform_data mop500_sdi4_data = {
 	.capabilities	= MMC_CAP_4_BIT_DATA |
 				MMC_CAP_8_BIT_DATA |
 				MMC_CAP_MMC_HIGHSPEED |
+				MMC_CAP_ERASE |
 				MMC_CAP_CMD23,
 	.gpio_cd	= -1,
 	.gpio_wp	= -1,
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 5/6] ARM: ux500: Set eMMC and WLAN card slot as non-removable
  2013-05-23 13:13 [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Ulf Hansson
                   ` (3 preceding siblings ...)
  2013-05-23 13:13 ` [PATCH 4/6] ARM: ux500: Enable support for discard for MMC/SD Ulf Hansson
@ 2013-05-23 13:13 ` Ulf Hansson
  2013-05-27 11:34   ` Linus Walleij
  2013-05-23 13:13 ` [PATCH 6/6] ARM: ux500: Enable support for UHS-I SD-cards Ulf Hansson
  2013-05-24  8:54 ` [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Lee Jones
  6 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2013-05-23 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ulf Hansson <ulf.hansson@linaro.org>

For several reasons, the mmc protocol layer expects devices
being non-removable to use MMC_CAP_NONREMOVABLE, so then we
adapt to this expectation.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 arch/arm/mach-ux500/board-mop500-sdi.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c
index 3c07f55..2e341fb 100644
--- a/arch/arm/mach-ux500/board-mop500-sdi.c
+++ b/arch/arm/mach-ux500/board-mop500-sdi.c
@@ -107,7 +107,8 @@ static struct stedma40_chan_cfg sdi1_dma_cfg_tx = {
 struct mmci_platform_data mop500_sdi1_data = {
 	.ocr_mask	= MMC_VDD_29_30,
 	.f_max		= 100000000,
-	.capabilities	= MMC_CAP_4_BIT_DATA,
+	.capabilities	= MMC_CAP_4_BIT_DATA |
+				MMC_CAP_NONREMOVABLE,
 	.gpio_cd	= -1,
 	.gpio_wp	= -1,
 #ifdef CONFIG_STE_DMA40
@@ -146,6 +147,7 @@ struct mmci_platform_data mop500_sdi2_data = {
 	.f_max		= 100000000,
 	.capabilities	= MMC_CAP_4_BIT_DATA |
 				MMC_CAP_8_BIT_DATA |
+				MMC_CAP_NONREMOVABLE |
 				MMC_CAP_MMC_HIGHSPEED |
 				MMC_CAP_ERASE |
 				MMC_CAP_CMD23,
@@ -186,6 +188,7 @@ struct mmci_platform_data mop500_sdi4_data = {
 	.f_max		= 100000000,
 	.capabilities	= MMC_CAP_4_BIT_DATA |
 				MMC_CAP_8_BIT_DATA |
+				MMC_CAP_NONREMOVABLE |
 				MMC_CAP_MMC_HIGHSPEED |
 				MMC_CAP_ERASE |
 				MMC_CAP_CMD23,
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 6/6] ARM: ux500: Enable support for UHS-I SD-cards
  2013-05-23 13:13 [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Ulf Hansson
                   ` (4 preceding siblings ...)
  2013-05-23 13:13 ` [PATCH 5/6] ARM: ux500: Set eMMC and WLAN card slot as non-removable Ulf Hansson
@ 2013-05-23 13:13 ` Ulf Hansson
  2013-05-27 11:35   ` Linus Walleij
  2013-05-24  8:54 ` [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Lee Jones
  6 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2013-05-23 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ulf Hansson <ulf.hansson@linaro.org>

By setting the host capabilities MMC_CAP_UHS_SDR12|25 for
the SD card device we enable support for UHS cards. The
supported mode is SDR12 and SDR25.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 arch/arm/mach-ux500/board-mop500-sdi.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c
index 2e341fb..43be3e0 100644
--- a/arch/arm/mach-ux500/board-mop500-sdi.c
+++ b/arch/arm/mach-ux500/board-mop500-sdi.c
@@ -56,7 +56,9 @@ struct mmci_platform_data mop500_sdi0_data = {
 	.capabilities	= MMC_CAP_4_BIT_DATA |
 				MMC_CAP_SD_HIGHSPEED |
 				MMC_CAP_MMC_HIGHSPEED |
-				MMC_CAP_ERASE,
+				MMC_CAP_ERASE |
+				MMC_CAP_UHS_SDR12 |
+				MMC_CAP_UHS_SDR25,
 	.gpio_wp	= -1,
 	.sigdir		= MCI_ST_FBCLKEN |
 				MCI_ST_CMDDIREN |
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC
  2013-05-23 13:13 [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Ulf Hansson
                   ` (5 preceding siblings ...)
  2013-05-23 13:13 ` [PATCH 6/6] ARM: ux500: Enable support for UHS-I SD-cards Ulf Hansson
@ 2013-05-24  8:54 ` Lee Jones
  2013-05-24  8:55   ` Lee Jones
  6 siblings, 1 reply; 16+ messages in thread
From: Lee Jones @ 2013-05-24  8:54 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 23 May 2013, Ulf Hansson wrote:

> From: Ulf Hansson <ulf.hansson@linaro.org>
> 
> This patchset includes especially enablement for UHS-I SD cards, but
> also some cleanups and additional enabling of SD/SDIO/(e)MMC features.
> 
> These changes shall also be adapted to the corresponding DT files,
> but that is left as a separate task and outside this patchset.
> 
> Ulf Hansson (6):
>   ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices
>   ARM: ux500: Don't set plf ocr mask for SD/MMC device
>   ARM: ux500: Enable support for RPMB and Reliable Write for eMMC
>   ARM: ux500: Enable support for discard for MMC/SD
>   ARM: ux500: Set eMMC and WLAN card slot as non-removable
>   ARM: ux500: Enable support for UHS-I SD-cards
> 
>  arch/arm/mach-ux500/board-mop500-sdi.c |   34 +++++++++++++++++++++-----------
>  1 file changed, 22 insertions(+), 12 deletions(-)
> 

All patches look good to me, although you should probably try to use
the full 72 char limit per line in all of your commit messages.

-- 
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC
  2013-05-24  8:54 ` [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Lee Jones
@ 2013-05-24  8:55   ` Lee Jones
  0 siblings, 0 replies; 16+ messages in thread
From: Lee Jones @ 2013-05-24  8:55 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, 24 May 2013, Lee Jones wrote:

> On Thu, 23 May 2013, Ulf Hansson wrote:
> 
> > From: Ulf Hansson <ulf.hansson@linaro.org>
> > 
> > This patchset includes especially enablement for UHS-I SD cards, but
> > also some cleanups and additional enabling of SD/SDIO/(e)MMC features.
> > 
> > These changes shall also be adapted to the corresponding DT files,
> > but that is left as a separate task and outside this patchset.
> > 
> > Ulf Hansson (6):
> >   ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices
> >   ARM: ux500: Don't set plf ocr mask for SD/MMC device
> >   ARM: ux500: Enable support for RPMB and Reliable Write for eMMC
> >   ARM: ux500: Enable support for discard for MMC/SD
> >   ARM: ux500: Set eMMC and WLAN card slot as non-removable
> >   ARM: ux500: Enable support for UHS-I SD-cards
> > 
> >  arch/arm/mach-ux500/board-mop500-sdi.c |   34 +++++++++++++++++++++-----------
> >  1 file changed, 22 insertions(+), 12 deletions(-)
> > 
> 
> All patches look good to me, although you should probably try to use
> the full 72 char limit per line in all of your commit messages.

Whoops! In case you couldn't tell that was an:

Acked-by: Lee Jones <lee.jones@linaro.org>

-- 
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 1/6] ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices
  2013-05-23 13:13 ` [PATCH 1/6] ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices Ulf Hansson
@ 2013-05-27 11:10   ` Linus Walleij
  0 siblings, 0 replies; 16+ messages in thread
From: Linus Walleij @ 2013-05-27 11:10 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 23, 2013 at 3:13 PM, Ulf Hansson <ulf.hansson@stericsson.com> wrote:

> From: Ulf Hansson <ulf.hansson@linaro.org>
>
> We are able to cope with an SDMMC clock of 100MHz so let's
> make use of the full frequency instead of the half.
>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

Patch applied to my ux500-core changes tree.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 2/6] ARM: ux500: Don't set plf ocr mask for SD/MMC device
  2013-05-23 13:13 ` [PATCH 2/6] ARM: ux500: Don't set plf ocr mask for SD/MMC device Ulf Hansson
@ 2013-05-27 11:21   ` Linus Walleij
  0 siblings, 0 replies; 16+ messages in thread
From: Linus Walleij @ 2013-05-27 11:21 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 23, 2013 at 3:13 PM, Ulf Hansson <ulf.hansson@stericsson.com> wrote:

> From: Ulf Hansson <ulf.hansson@linaro.org>
>
> The mmci host driver overrides platform ocr mask when a vmmc regulator
> can be used. This is the case for sdi0(SD-card) and for sdi4(eMMC).
> Thus it is pointless of specifing these mask and why we do remove them.
>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

This rids some boot noise as well, thanks!
Patch applied for ux500-core.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 3/6] ARM: ux500: Enable support for RPMB and Reliable Write for eMMC
  2013-05-23 13:13 ` [PATCH 3/6] ARM: ux500: Enable support for RPMB and Reliable Write for eMMC Ulf Hansson
@ 2013-05-27 11:30   ` Linus Walleij
  2013-05-27 13:29     ` Ulf Hansson
  0 siblings, 1 reply; 16+ messages in thread
From: Linus Walleij @ 2013-05-27 11:30 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 23, 2013 at 3:13 PM, Ulf Hansson <ulf.hansson@stericsson.com> wrote:

> From: Ulf Hansson <ulf.hansson@linaro.org>
>
> By adding MMC_CAP_CMD23 for the eMMC devices, we can support RPMB
> and Reliable Write. Additionally it will mean CMD12 will not be sent
> to end a successful data transfer.
>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

Patch applied to ux500-core, thanks,
but Houston, we have a problem:

I wanted to enable this also for the device tree boot
path. But currently there are no bindings to state in the
DT boot that CMD23 is supported.

Could you create another patch that:

- Add bindings to Documentation/devicetree/bindings/mmc/mmc.txt
  for indicating that a host controller supports CMD23
- Patch the ux500 DTS files to enable it.
- Write a patch to mmci.c to augment
  mmci_dt_populate_generic_pdata() to read the binding and
  augment the caps from the device tree.

There is also a complicated refactoring that need to happen any
of these days:

- Augment the MMC core and all drivers using DT boots to
  parse any standard caps from the device tree insteaf of
  putting code like mmci_dt_populate_generic_pdata() into
  every driver.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 4/6] ARM: ux500: Enable support for discard for MMC/SD
  2013-05-23 13:13 ` [PATCH 4/6] ARM: ux500: Enable support for discard for MMC/SD Ulf Hansson
@ 2013-05-27 11:32   ` Linus Walleij
  0 siblings, 0 replies; 16+ messages in thread
From: Linus Walleij @ 2013-05-27 11:32 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 23, 2013 at 3:13 PM, Ulf Hansson <ulf.hansson@stericsson.com> wrote:

> From: Ulf Hansson <ulf.hansson@linaro.org>
>
> By enabling MMC_CAP_ERASE for the SD/MMC devices the mmc block
> layer will now act on DISCARD requests.
>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

Patch applied for ux500-core.

On the DT boot path this has the same problems and
comments as for patch 3: not supported on DT boots.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 5/6] ARM: ux500: Set eMMC and WLAN card slot as non-removable
  2013-05-23 13:13 ` [PATCH 5/6] ARM: ux500: Set eMMC and WLAN card slot as non-removable Ulf Hansson
@ 2013-05-27 11:34   ` Linus Walleij
  0 siblings, 0 replies; 16+ messages in thread
From: Linus Walleij @ 2013-05-27 11:34 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 23, 2013 at 3:13 PM, Ulf Hansson <ulf.hansson@stericsson.com> wrote:

> From: Ulf Hansson <ulf.hansson@linaro.org>
>
> For several reasons, the mmc protocol layer expects devices
> being non-removable to use MMC_CAP_NONREMOVABLE, so then we
> adapt to this expectation.
>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

Patch applied for ux500-core.

On the DT boot path this has the same problems and comments
as patches 3 & 4.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 6/6] ARM: ux500: Enable support for UHS-I SD-cards
  2013-05-23 13:13 ` [PATCH 6/6] ARM: ux500: Enable support for UHS-I SD-cards Ulf Hansson
@ 2013-05-27 11:35   ` Linus Walleij
  0 siblings, 0 replies; 16+ messages in thread
From: Linus Walleij @ 2013-05-27 11:35 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, May 23, 2013 at 3:13 PM, Ulf Hansson <ulf.hansson@stericsson.com> wrote:

> From: Ulf Hansson <ulf.hansson@linaro.org>
>
> By setting the host capabilities MMC_CAP_UHS_SDR12|25 for
> the SD card device we enable support for UHS cards. The
> supported mode is SDR12 and SDR25.
>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

Patch applied for ux500-core.

On the DT boot path this patch has the same problems
and comments as patches 3,4,5.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 3/6] ARM: ux500: Enable support for RPMB and Reliable Write for eMMC
  2013-05-27 11:30   ` Linus Walleij
@ 2013-05-27 13:29     ` Ulf Hansson
  0 siblings, 0 replies; 16+ messages in thread
From: Ulf Hansson @ 2013-05-27 13:29 UTC (permalink / raw)
  To: linux-arm-kernel

On 27 May 2013 13:30, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Thu, May 23, 2013 at 3:13 PM, Ulf Hansson <ulf.hansson@stericsson.com> wrote:
>
>> From: Ulf Hansson <ulf.hansson@linaro.org>
>>
>> By adding MMC_CAP_CMD23 for the eMMC devices, we can support RPMB
>> and Reliable Write. Additionally it will mean CMD12 will not be sent
>> to end a successful data transfer.
>>
>> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
>
> Patch applied to ux500-core, thanks,
> but Houston, we have a problem:
>
> I wanted to enable this also for the device tree boot
> path. But currently there are no bindings to state in the
> DT boot that CMD23 is supported.

I should have realized that you were digging into this and should have
added such information in the commit msg/patch info. Sorry for that.
Anyway, I guess you see why I wanted to totally split the DT from
non-DT patches. :-)

>
> Could you create another patch that:
>
> - Add bindings to Documentation/devicetree/bindings/mmc/mmc.txt
>   for indicating that a host controller supports CMD23
> - Patch the ux500 DTS files to enable it.
> - Write a patch to mmci.c to augment
>   mmci_dt_populate_generic_pdata() to read the binding and
>   augment the caps from the device tree.
>
> There is also a complicated refactoring that need to happen any
> of these days:
>
> - Augment the MMC core and all drivers using DT boots to
>   parse any standard caps from the device tree insteaf of
>   putting code like mmci_dt_populate_generic_pdata() into
>   every driver.

Some parts of this is already done, the mmc common DT parse function
is called "mmc_of_parse". As of today it does not support CMD23 cap
though.
mmci should switch to use this function and drop the mmci specific dt function.

Kind regards
Ulf Hansson

>
> Yours,
> Linus Walleij

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-05-27 13:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-23 13:13 [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Ulf Hansson
2013-05-23 13:13 ` [PATCH 1/6] ARM: ux500: Enable 100MHz for SD/SDIO/MMC devices Ulf Hansson
2013-05-27 11:10   ` Linus Walleij
2013-05-23 13:13 ` [PATCH 2/6] ARM: ux500: Don't set plf ocr mask for SD/MMC device Ulf Hansson
2013-05-27 11:21   ` Linus Walleij
2013-05-23 13:13 ` [PATCH 3/6] ARM: ux500: Enable support for RPMB and Reliable Write for eMMC Ulf Hansson
2013-05-27 11:30   ` Linus Walleij
2013-05-27 13:29     ` Ulf Hansson
2013-05-23 13:13 ` [PATCH 4/6] ARM: ux500: Enable support for discard for MMC/SD Ulf Hansson
2013-05-27 11:32   ` Linus Walleij
2013-05-23 13:13 ` [PATCH 5/6] ARM: ux500: Set eMMC and WLAN card slot as non-removable Ulf Hansson
2013-05-27 11:34   ` Linus Walleij
2013-05-23 13:13 ` [PATCH 6/6] ARM: ux500: Enable support for UHS-I SD-cards Ulf Hansson
2013-05-27 11:35   ` Linus Walleij
2013-05-24  8:54 ` [PATCH 0/6] ARM: ux500: Update configurations for SD/SDIO/(e)MMC Lee Jones
2013-05-24  8:55   ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.