All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: core: Fix voltage select in DDR mode
@ 2011-12-15 11:57 Girish K S
  2011-12-15 17:06 ` Subhash Jadavani
  2011-12-25  2:24 ` Chris Ball
  0 siblings, 2 replies; 5+ messages in thread
From: Girish K S @ 2011-12-15 11:57 UTC (permalink / raw)
  To: linux-mmc
  Cc: patches, linux-samsung-soc, Girish K S, Philip Rakity,
	Arindam Nath, Chris Ball

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 <prakity@marvell.com>
cc: Arindam Nath <arindam.nath@amd.com>
cc: Chris Ball <cjb@laptop.org>
Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
---
 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) {
 				err = mmc_set_signal_voltage(host,
 					MMC_SIGNAL_VOLTAGE_120, 0);
 				if (err)
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH] mmc: core: Fix voltage select in DDR mode
  2011-12-15 11:57 [PATCH] mmc: core: Fix voltage select in DDR mode Girish K S
@ 2011-12-15 17:06 ` Subhash Jadavani
  2011-12-19 17:19   ` Philip Rakity
  2011-12-25  2:24 ` Chris Ball
  1 sibling, 1 reply; 5+ messages in thread
From: Subhash Jadavani @ 2011-12-15 17:06 UTC (permalink / raw)
  To: 'Girish K S', linux-mmc
  Cc: patches, linux-samsung-soc, 'Philip Rakity',
	'Arindam Nath', 'Chris Ball'



> -----Original Message-----
> From: linux-mmc-owner@vger.kernel.org [mailto:linux-mmc-
> owner@vger.kernel.org] On Behalf Of Girish K S
> Sent: Thursday, December 15, 2011 5:28 PM
> To: linux-mmc@vger.kernel.org
> Cc: patches@linaro.org; linux-samsung-soc@vger.kernel.org; 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 <prakity@marvell.com>
> cc: Arindam Nath <arindam.nath@amd.com>
> cc: Chris Ball <cjb@laptop.org>
> Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
> ---
>  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 <subhashj@codeaurora.org>

>  				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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mmc: core: Fix voltage select in DDR mode
  2011-12-15 17:06 ` Subhash Jadavani
@ 2011-12-19 17:19   ` Philip Rakity
  2011-12-21  4:05     ` Girish K S
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Rakity @ 2011-12-19 17:19 UTC (permalink / raw)
  To: Subhash Jadavani
  Cc: Girish K S, linux-mmc, patches, linux-samsung-soc, Arindam Nath,
	Chris Ball


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

> 
> 
>> -----Original Message-----
>> From: linux-mmc-owner@vger.kernel.org [mailto:linux-mmc-
>> owner@vger.kernel.org] On Behalf Of Girish K S
>> Sent: Thursday, December 15, 2011 5:28 PM
>> To: linux-mmc@vger.kernel.org
>> Cc: patches@linaro.org; linux-samsung-soc@vger.kernel.org; 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 <prakity@marvell.com>
>> cc: Arindam Nath <arindam.nath@amd.com>
>> cc: Chris Ball <cjb@laptop.org>
>> Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
>> ---
>> 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 <subhashj@codeaurora.org>

Acked-by: Philip Rakity <prakity@marvell.com>

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 majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mmc: core: Fix voltage select in DDR mode
  2011-12-19 17:19   ` Philip Rakity
@ 2011-12-21  4:05     ` Girish K S
  0 siblings, 0 replies; 5+ messages in thread
From: Girish K S @ 2011-12-21  4:05 UTC (permalink / raw)
  To: linux-mmc; +Cc: Chris Ball

Hi Chris,
can you add this in your pull request. Its been Acked by the authors
for the correction

regards
Girish K S

On 19 December 2011 22:49, Philip Rakity <prakity@marvell.com> wrote:
>
> On Dec 15, 2011, at 9:06 AM, Subhash Jadavani wrote:
>
>>
>>
>>> -----Original Message-----
>>> From: linux-mmc-owner@vger.kernel.org [mailto:linux-mmc-
>>> owner@vger.kernel.org] On Behalf Of Girish K S
>>> Sent: Thursday, December 15, 2011 5:28 PM
>>> To: linux-mmc@vger.kernel.org
>>> Cc: patches@linaro.org; linux-samsung-soc@vger.kernel.org; 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 <prakity@marvell.com>
>>> cc: Arindam Nath <arindam.nath@amd.com>
>>> cc: Chris Ball <cjb@laptop.org>
>>> Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
>>> ---
>>> 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 <subhashj@codeaurora.org>
>
> Acked-by: Philip Rakity <prakity@marvell.com>
>
> 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 majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mmc: core: Fix voltage select in DDR mode
  2011-12-15 11:57 [PATCH] mmc: core: Fix voltage select in DDR mode Girish K S
  2011-12-15 17:06 ` Subhash Jadavani
@ 2011-12-25  2:24 ` Chris Ball
  1 sibling, 0 replies; 5+ messages in thread
From: Chris Ball @ 2011-12-25  2:24 UTC (permalink / raw)
  To: Girish K S
  Cc: linux-mmc, patches, linux-samsung-soc, Philip Rakity, Arindam Nath

Hi Girish,

On Thu, Dec 15 2011, Girish K S wrote:
> 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 <prakity@marvell.com>
> cc: Arindam Nath <arindam.nath@amd.com>
> cc: Chris Ball <cjb@laptop.org>
> Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>

Pushed to mmc-next for 3.3 with ACKs from Philip and Subhash and a
stable@ tag, thanks.  (It's too late for 3.2.)

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-25  2:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15 11:57 [PATCH] mmc: core: Fix voltage select in DDR mode Girish K S
2011-12-15 17:06 ` Subhash Jadavani
2011-12-19 17:19   ` Philip Rakity
2011-12-21  4:05     ` Girish K S
2011-12-25  2:24 ` Chris Ball

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.