#1376 NORM Trial-2: "Lumistar 1G" SD card not detected by Linux.

Zarro Boogs per Child bugtracker at laptop.org
Sat Jun 9 05:40:32 EDT 2007


#1376: "Lumistar 1G" SD card not detected by Linux.
---------------------+------------------------------------------------------
  Reporter:  cjb     |       Owner:  dilinger
      Type:  defect  |      Status:  new     
  Priority:  normal  |   Milestone:  Trial-2 
 Component:  kernel  |     Version:          
Resolution:          |    Keywords:          
  Verified:  0       |  
---------------------+------------------------------------------------------
Comment (by PierreOssman):

 Found the problem (with CAFE, not the card). The timeout is dependent on
 the current active clock, not TMCLK. If you compansate for this bug,
 things work fine:

 {{{
 diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
 diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
 index d4db7d2..4eba6b5 100644
 --- a/drivers/mmc/host/sdhci.c
 +++ b/drivers/mmc/host/sdhci.c
 @@ -379,6 +379,7 @@ static void sdhci_prepare_data(struct sdhci_host
 *host, stru
          */
         count = 0;
         current_timeout = (1 << 13) * 1000 / host->timeout_clk;
 +       current_timeout *= host->max_clk / host->clock;
         while (current_timeout < target_timeout) {
                 count++;
                 current_timeout <<= 1;
 }}}

 Now, who wants to inform Marvell that their chip is even more incompliant?

-- 
Ticket URL: <http://dev.laptop.org/ticket/1376#comment:12>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list