On Dec 15, 2011, at 9:06 AM, Subhash Jadavani wrote:

> 
> 
>> -----Original Message-----
>> From: [email protected] [mailto:linux-mmc-
>> [email protected]] On Behalf Of Girish K S
>> Sent: Thursday, December 15, 2011 5:28 PM
>> To: [email protected]
>> Cc: [email protected]; [email protected]; Girish K S;
>> Philip Rakity; Arindam Nath; Chris Ball
>> Subject: [PATCH] mmc: core: Fix voltage select in DDR mode
>> 
>> This patch fixes the wrong comparison before setting the interface
>> voltage in DDR mode.
>> 
>> The assignment to the variable ddr before comaprison is either
>> ddr = MMC_1_2V_DDR_MODE; or ddr == MMC_1_8V_DDR_MODE. But the
>> comparison
>> is done wth the extended csd value if (ddr ==
>> EXT_CSD_CARD_TYPE_DDR_1_2V)
>> 
>> cc: Philip Rakity <[email protected]>
>> cc: Arindam Nath <[email protected]>
>> cc: Chris Ball <[email protected]>
>> Signed-off-by: Girish K S <[email protected]>
>> ---
>> drivers/mmc/core/mmc.c |    2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>> 
>> diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
>> index 006e932..f0a9f1f 100644
>> --- a/drivers/mmc/core/mmc.c
>> +++ b/drivers/mmc/core/mmc.c
>> @@ -1058,7 +1058,7 @@ static int mmc_init_card(struct mmc_host *host,
>> u32 ocr,
>>                       *
>>                       * WARNING: eMMC rules are NOT the same as SD DDR
>>                       */
>> -                    if (ddr == EXT_CSD_CARD_TYPE_DDR_1_2V) {
>> +                    if (ddr == MMC_1_2V_DDR_MODE) {
> 
> Looks fine. 
> Acked-by: Subhash Jadavani <[email protected]>

Acked-by: Philip Rakity <[email protected]>

NOTE:  standard sdhci controller (version 3.0) does not support 1.2v signaling.

> 
>>                              err = mmc_set_signal_voltage(host,
>>                                      MMC_SIGNAL_VOLTAGE_120, 0);
>>                              if (err)
>> --
>> 1.7.1
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
>> the body of a message to [email protected]
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to