FYI to mailing list

Begin forwarded message:

> From: "Nath, Arindam" <[email protected]>
> Date: March 19, 2011 9:49:18 AM PDT
> To: Philip Rakity <[email protected]>
> Subject: RE: SD3.0 patches V3
> 
> Yes, I got your point. Probably it worked before because of the bit positions 
> being separate. I will look into it later, once I fix the culprit which is 
> breaking initialization on our controller.
> 
> Thanks,
> Arindam
> 
>> -----Original Message-----
>> From: Philip Rakity [mailto:[email protected]]
>> Sent: Saturday, March 19, 2011 10:14 PM
>> To: Nath, Arindam
>> Subject: Re: SD3.0 patches V3
>> 
>> 
>> understand but the code is wrong.   No & test for a value !  Need to
>> check against it.
>> 
>>> 
>>> 
>>>> -----Original Message-----
>>>> From: Philip Rakity [mailto:[email protected]]
>>>> Sent: Saturday, March 19, 2011 2:16 AM
>>>> To: Nath, Arindam
>>>> Subject: Re: SD3.0 patches V3
>>>> 
>>>> 
>>>> Did not yet look -- but fixed this in sdhci.c   === field is a value
>>>> not a bit field.
>>>> Also cleared added
>>>>            ctrl_2 &= ~SDHCI_CTRL_UHS_MASK;
>>>> 
>>>> to ensure field is 0 before you set it.
>>>> 
>>>>            ctrl_2 = sdhci_readw(host, SDHCI_HOST_CONTROL2);
>>>>            ctrl_2 &= ~SDHCI_CTRL_UHS_MASK;
>>>> 
>>>>            /* Select Bus Speed Mode for host */
>>>>            if (ios->timing == MMC_TIMING_UHS_SDR25)
>>>>                    ctrl_2 |= SDHCI_CTRL_UHS_SDR25;
>>>> 
>>>> 
>>>> 
>>>> 
>>>>    /*
>>>>     * Host Controller needs tuning only in case of SDR104 mode
>>>>     * and for SDR50 mode when Use Tuning for SDR50 is set in
>>>>     * Capabilities register.
>>>>     */
>>>>    if ( (ctrl & SDHCI_CTRL_UHS_MASK) == SDHCI_CTRL_UHS_SDR104 ||
>>>>        ((ctrl & SDHCI_CTRL_UHS_MASK) == SDHCI_CTRL_UHS_SDR50 &&
>>>>        (host->flags & SDHCI_SDR50_NEEDS_TUNING)))
>>>>            ctrl |= SDHCI_CTRL_EXEC_TUNING;
>>>>    else {
>>>>            spin_unlock_irqrestore(&host->lock, flags);
>>>>            return;
>>>>    }
>>>> 
>>>> 
>>>> 
>>>> add SDHCI_CTRL_UHS_MASK to sdhci.h
>>>> #define SDHCI_CTRL_UHS_MASK  0x7
>>>> 

--
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