[PATCH 4/6] mci: Use csd_max_dtr when appropriate
Juergen Beisert
jbe at pengutronix.de
Fri May 31 03:37:48 EDT 2013
Sascha Hauer wrote:
> The csd_max_dtr tells us at which speed a card is able to operate,
> so use it to adjust the cards clock where appropriate.
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
> drivers/mci/mci-core.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
> index d7b8fc9..54660dc 100644
> --- a/drivers/mci/mci-core.c
> +++ b/drivers/mci/mci-core.c
> @@ -919,7 +919,7 @@ static int mci_startup_sd(struct mci *mci)
> if (mci->card_caps & MMC_MODE_HS)
> mci_set_clock(mci, 50000000);
> else
> - mci_set_clock(mci, 25000000);
> + mci_set_clock(mci, mci->csd_max_dtr);
>
> return 0;
> }
This one needs some discussion. See my other answer to your "PATCH 2/6".
Some SD card experts here?
jbe
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
More information about the barebox
mailing list