Title: [3904] trunk/drivers/mmc/spi_mmc/spi_mmc_core.c: [#3682]
Fix bug when fail to detect MMC on BF537
- Revision
- 3904
- Author
- cooloney
- Date
- 2007-11-20 20:17:05 -0600 (Tue, 20 Nov 2007)
Log Message
[#3682] Fix bug when fail to detect MMC on BF537
SPI_MMC use SPI_MMC_INIT_SPEED to detect MMC card. Actually,
before SVN commit 3801, the SPI framework uses the default
max_speed_hz from board file to detect MMC card. And it works.
In SVN commit 3801, it modified the SPI framework Blackfin driver
to setup SPI baud rate according to every spi_transfer.speed_hz.
Then it fail to detect MMC.
So as a result, use lower SPI_MMC_INIT_SPEED to detect MMC card
will always fail. Use default SPI_MMC_MAX_SPEED to fix this bug.
Diffstat
spi_mmc_core.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Modified Paths
Diff
Modified: trunk/drivers/mmc/spi_mmc/spi_mmc_core.c (3903 => 3904)
--- trunk/drivers/mmc/spi_mmc/spi_mmc_core.c 2007-11-20 23:20:25 UTC (rev 3903)
+++ trunk/drivers/mmc/spi_mmc/spi_mmc_core.c 2007-11-21 02:17:05 UTC (rev 3904)
@@ -663,7 +663,7 @@
#ifdef CONFIG_SPI_MMC_BFIN_PIO_SPI
bfin_pio_spi_set_hz(SPI_CLOCK_INIT_HZ);
#else
- pdev->spi_speed_hz = SPI_CLOCK_INIT_HZ;
+ pdev->spi_speed_hz = SPI_CLOCK_MAX_HZ;
#endif
// MMC card init
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits