From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Wed, 22 Nov 2017 10:09:17 +0100 Subject: [U-Boot] [PATCH 4/5] mmc: Fixed a problem with old sd or mmc that do not support High speed In-Reply-To: <1511277188-2923-5-git-send-email-jjhiblot@ti.com> References: <1511277188-2923-1-git-send-email-jjhiblot@ti.com> <1511277188-2923-5-git-send-email-jjhiblot@ti.com> Message-ID: <20171122100917.64a0fa9c@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 21 Nov 2017 16:13:07 +0100 Jean-Jacques Hiblot wrote: > As the legacy modes were not added to the list of supported modes, old > cards that do not support other modes could not be used. > > Signed-off-by: Jean-Jacques Hiblot > --- > drivers/mmc/mmc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c > index a30b6a2..67f21ff 100644 > --- a/drivers/mmc/mmc.c > +++ b/drivers/mmc/mmc.c > @@ -818,7 +818,7 @@ static int mmc_get_capabilities(struct mmc *mmc) > u8 *ext_csd = mmc->ext_csd; > char cardtype; > > - mmc->card_caps = MMC_MODE_1BIT; > + mmc->card_caps = MMC_MODE_1BIT | MMC_CAP(MMC_LEGACY); > > if (mmc_host_is_spi(mmc)) > return 0; > @@ -1171,7 +1171,7 @@ static int sd_get_capabilities(struct mmc *mmc) > int timeout; > u32 sd3_bus_mode; > > - mmc->card_caps = MMC_MODE_1BIT; > + mmc->card_caps = MMC_MODE_1BIT | MMC_CAP(SD_LEGACY); > > if (mmc_host_is_spi(mmc)) > return 0; Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: