mci: Use tran_speed field to fix highspeed MMC card clock
The tran_speed field as decoded from csd is valid in most cases,
so use it to determine the maximum clock we can support. It is
not valid though for MMC highspeed cards, in this case the
csd contains invalid values and we have to set tran_speed explicitly
to the maximum speed. As the values passed into mci_set_clock are
now based on tran_speed we no longer have to limit the rate to
tran_speed in mci_set_clock.

The (intended) effect of this patch is that highspeed MMC cards are
no longer limited to non highspeed rates.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9590d6f commit dee6282fbfc974c4103895d1ccb1cffb3c0a3412
@Sascha Hauer Sascha Hauer authored on 3 Jun 2013
Showing 2 changed files
View
drivers/mci/mci-core.c
View
include/mci.h