All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: Shawn Lin <shawn.lin@rock-chips.com>, linux-mmc@vger.kernel.org
Cc: ulf.hansson@linaro.org
Subject: Re: [PATCH 1/2] mmc: dw_mmc: retry to switch voltage when failed
Date: Tue, 10 May 2016 10:55:21 +0900	[thread overview]
Message-ID: <57313F89.2020808@samsung.com> (raw)
In-Reply-To: <96613140-e5f9-1ffd-a9d3-84f3133913be@rock-chips.com>

Hi Shawn,

On 05/04/2016 07:41 PM, Shawn Lin wrote:
> 在 2016/5/4 15:14, Jaehoon Chung 写道:
>> If vqmmc is used and failed to switch voltage, then retry to switch
>> voltage. MMC core is providing the retrying scheame.
>>
>> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
>> ---
>>  drivers/mmc/host/dw_mmc.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
>> index 9dd1bd3..28602cc 100644
>> --- a/drivers/mmc/host/dw_mmc.c
>> +++ b/drivers/mmc/host/dw_mmc.c
>> @@ -1416,7 +1416,7 @@ static int dw_mci_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
>>              dev_dbg(&mmc->class_dev,
>>                       "Regulator set error %d - %s V\n",
>>                       ret, uhs & v18 ? "1.8" : "3.3");
>> -            return ret;
>> +            return -EAGAIN;
>>          }
>>      }
> 
> If not vqmmc is assigned, dw_mci_switch_voltage still returns success to
> mmc core?

There is comment in dw_mci_switch_voltage().. In some SoC, it's not harmful to switch voltage.
But we can decide this condition whether try to set both or not. 

Best Regards,
Jaehoon Chung

> 
>>      mci_writel(host, UHS_REG, uhs);
>>
> 
> 


  reply	other threads:[~2016-05-10  1:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-04  7:14 [PATCH 1/2] mmc: dw_mmc: retry to switch voltage when failed Jaehoon Chung
2016-05-04  7:14 ` [PATCH 2/2] mmc: dw_mmc: prevent to set the wrong value Jaehoon Chung
2016-05-04 10:35   ` Shawn Lin
2016-05-10  1:49     ` Jaehoon Chung
2016-05-04 10:41 ` [PATCH 1/2] mmc: dw_mmc: retry to switch voltage when failed Shawn Lin
2016-05-10  1:55   ` Jaehoon Chung [this message]
2016-05-10  9:24     ` Shawn Lin
2016-05-11  2:51       ` Jaehoon Chung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57313F89.2020808@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=shawn.lin@rock-chips.com \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.