Re: [PATCH v3] OMAP: Fix for bus width which improves SD card's peformance.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nishanth Menon
Date: Tuesday, April 6, 2010 - 5:57 pm

Chikkature Rajashekar, Madhusudhan had written, on 04/06/2010 07:16 PM, 
the following:
Point noted. try n++:
switch(mmc_slot(host).wires) {
case 8:
         mmc->caps |= MMC_CAP_8_BIT_DATA;
         /* Fall through */
case 4:
         mmc->caps |= MMC_CAP_4_BIT_DATA;
         break;
case 0:
         /* assuming nothing was given by board, use 1 */
case 1:
         /* nothing to crib here */
         break;
default:
         /* Completely unexpected.. try 1 bit instead  */
         dev_crit(mmc_dev(host->mmc), "Invalid width %d"
                         " used! using 1 instead\n",
                         mmc_slot(host).wires);
}

note: we should crib if the board file made a mistake here.. say it gave 
10 wire or so.. I agree that we can recover by stepping back to 1 bit 
mode.. but we gotta tell the log that something aint right..

-- 
Regards,
Nishanth Menon
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] OMAP: Fix for bus width which improves SD card's ..., kishore kadiyala, (Thu Feb 11, 7:20 am)
[PATCH-V2] OMAP: Fix for bus width which improves SD card' ..., kishore kadiyala, (Tue Mar 30, 11:07 pm)
Re: [PATCH-V2] OMAP: Fix for bus width which improves SD c ..., kishore kadiyala, (Wed Mar 31, 12:03 am)
Re: [PATCH-V2] OMAP: Fix for bus width which improves SD c ..., kishore kadiyala, (Wed Mar 31, 11:31 pm)
[No subject], Madhusudhan, (Tue Apr 6, 9:16 am)
[No subject], Felipe Balbi, (Tue Apr 6, 9:32 am)
[No subject], Nishanth Menon, (Tue Apr 6, 9:55 am)
[No subject], Felipe Balbi, (Tue Apr 6, 9:57 am)
Re: [PATCH v3] OMAP: Fix for bus width which improves SD c ..., Nishanth Menon, (Tue Apr 6, 5:57 pm)