[PATCH 2/6] mci: do not limit clock to card capabilities

Sascha Hauer s.hauer at pengutronix.de
Fri May 31 03:13:59 EDT 2013


No need to limit the clock to the cards capabilities since the values
passed to mci_set_clock are based on the cards capabilities. This
enables MMC high speed cards to operate at higher speeds since on
this cards the csd field only holds the non highspeed maximum clock.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mci/mci-core.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index 283df2f..895108f 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -664,10 +664,6 @@ static void mci_set_clock(struct mci *mci, unsigned clock)
 	if (clock < host->f_min)
 		clock = host->f_min;
 
-	/* check against the limit at the card's side */
-	if (mci->tran_speed != 0 && clock > mci->tran_speed)
-		clock = mci->tran_speed;
-
 	host->clock = clock;	/* the new target frequency */
 	mci_set_ios(mci);
 }
-- 
1.8.2.rc2




More information about the barebox mailing list