All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: Limit MMC speed to 25MHz if HIGHSPEED CAPS bit is not set.
@ 2012-05-14 20:11 Al Cooper
  2012-05-14 20:15 ` Adam Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Al Cooper @ 2012-05-14 20:11 UTC (permalink / raw)
  To: cjb, linux-mmc, cernekee; +Cc: Al Cooper

If the HIGHSPEED capabilities bit is not set, limit the MMC clock
speed to 25MHz.

Signed-off-by: Al Cooper <acooper@gmail.com>
---
 drivers/mmc/core/mmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 54df5ad..912c893 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1045,7 +1045,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
 				mmc_card_set_hs200(card);
 				mmc_set_timing(card->host,
 					       MMC_TIMING_MMC_HS200);
-			} else {
+			} else if (host->caps & MMC_CAP_MMC_HIGHSPEED) {
 				mmc_card_set_highspeed(card);
 				mmc_set_timing(card->host, MMC_TIMING_MMC_HS);
 			}
-- 
1.7.6



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

* Re: [PATCH] mmc: Limit MMC speed to 25MHz if HIGHSPEED CAPS bit is not set.
  2012-05-14 20:11 [PATCH] mmc: Limit MMC speed to 25MHz if HIGHSPEED CAPS bit is not set Al Cooper
@ 2012-05-14 20:15 ` Adam Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Cooper @ 2012-05-14 20:15 UTC (permalink / raw)
  To: cjb, linux-mmc, cernekee; +Cc: Al Cooper

This is not Al's email address. Please have him use his own email address.

On Mon, May 14, 2012 at 4:11 PM, Al Cooper <acooper@gmail.com> wrote:
> If the HIGHSPEED capabilities bit is not set, limit the MMC clock
> speed to 25MHz.
>
> Signed-off-by: Al Cooper <acooper@gmail.com>
> ---
>  drivers/mmc/core/mmc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
> index 54df5ad..912c893 100644
> --- a/drivers/mmc/core/mmc.c
> +++ b/drivers/mmc/core/mmc.c
> @@ -1045,7 +1045,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
>                                mmc_card_set_hs200(card);
>                                mmc_set_timing(card->host,
>                                               MMC_TIMING_MMC_HS200);
> -                       } else {
> +                       } else if (host->caps & MMC_CAP_MMC_HIGHSPEED) {
>                                mmc_card_set_highspeed(card);
>                                mmc_set_timing(card->host, MMC_TIMING_MMC_HS);
>                        }
> --
> 1.7.6
>
>

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

end of thread, other threads:[~2012-05-14 20:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-14 20:11 [PATCH] mmc: Limit MMC speed to 25MHz if HIGHSPEED CAPS bit is not set Al Cooper
2012-05-14 20:15 ` Adam Cooper

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.