mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] mci: core: the sd1.0 card can work in 4 bits mode
@ 2014-07-29  7:59 Bo Shen
  2014-07-29 12:31 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Bo Shen @ 2014-07-29  7:59 UTC (permalink / raw)
  To: s.hauer; +Cc: barebox

The sd 1.0 card can work in 4 bits mode also.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---

 drivers/mci/mci-core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index ce6e590..8221632 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -616,6 +616,9 @@ retry_scr:
 		break;
 	}
 
+	if (mci->scr[0] & SD_DATA_4BIT)
+		mci->card_caps |= MMC_CAP_4_BIT_DATA;
+
 	/* Version 1.0 doesn't support switching */
 	if (mci->version == SD_VERSION_1_0)
 		return 0;
@@ -634,9 +637,6 @@ retry_scr:
 			break;
 	}
 
-	if (mci->scr[0] & SD_DATA_4BIT)
-		mci->card_caps |= MMC_CAP_4_BIT_DATA;
-
 	/* If high-speed isn't supported, we return */
 	if (!(__be32_to_cpu(switch_status[3]) & SD_HIGHSPEED_SUPPORTED))
 		return 0;
-- 
1.8.5.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] mci: core: the sd1.0 card can work in 4 bits mode
  2014-07-29  7:59 [PATCH] mci: core: the sd1.0 card can work in 4 bits mode Bo Shen
@ 2014-07-29 12:31 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2014-07-29 12:31 UTC (permalink / raw)
  To: Bo Shen; +Cc: barebox

On Tue, Jul 29, 2014 at 03:59:09PM +0800, Bo Shen wrote:
> The sd 1.0 card can work in 4 bits mode also.
> 
> Signed-off-by: Bo Shen <voice.shen@atmel.com>

Applied, thanks

Sascha

> ---
> 
>  drivers/mci/mci-core.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
> index ce6e590..8221632 100644
> --- a/drivers/mci/mci-core.c
> +++ b/drivers/mci/mci-core.c
> @@ -616,6 +616,9 @@ retry_scr:
>  		break;
>  	}
>  
> +	if (mci->scr[0] & SD_DATA_4BIT)
> +		mci->card_caps |= MMC_CAP_4_BIT_DATA;
> +
>  	/* Version 1.0 doesn't support switching */
>  	if (mci->version == SD_VERSION_1_0)
>  		return 0;
> @@ -634,9 +637,6 @@ retry_scr:
>  			break;
>  	}
>  
> -	if (mci->scr[0] & SD_DATA_4BIT)
> -		mci->card_caps |= MMC_CAP_4_BIT_DATA;
> -
>  	/* If high-speed isn't supported, we return */
>  	if (!(__be32_to_cpu(switch_status[3]) & SD_HIGHSPEED_SUPPORTED))
>  		return 0;
> -- 
> 1.8.5.2
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2014-07-29 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-29  7:59 [PATCH] mci: core: the sd1.0 card can work in 4 bits mode Bo Shen
2014-07-29 12:31 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox