public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: Dinh Nguyen <dinguyen@altera.com>
Cc: linux-mmc@vger.kernel.org, chris@printf.net,
	ulf.hansson@linaro.org, tgih.jun@samsung.com,
	zhangfei.gao@linaro.org
Subject: Re: [PATCH 5/5] mmc: dw_mmc: use the mmc regulator API into core.c
Date: Wed, 14 May 2014 13:55:45 +0900	[thread overview]
Message-ID: <5372F751.9020405@samsung.com> (raw)
In-Reply-To: <1399916514.5497.1.camel@linux-builds1>

On 05/13/2014 02:41 AM, Dinh Nguyen wrote:
> On Mon, 2014-05-12 at 20:14 +0900, Jaehoon Chung wrote:
>> Use the mmc regulator API into core.c instead of enabling locally.
>> It can use the "vmmc", and optional "vqmmc".
>>
>> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
>> ---
>>  drivers/mmc/host/dw_mmc.c |   61 ++++++++++++++++++---------------------------
>>  1 file changed, 24 insertions(+), 37 deletions(-)
>>
>> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
>> index e0e933d..3ab7231 100644
>> --- a/drivers/mmc/host/dw_mmc.c
>> +++ b/drivers/mmc/host/dw_mmc.c
>> @@ -937,6 +937,7 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
>>  	struct dw_mci_slot *slot = mmc_priv(mmc);
>>  	const struct dw_mci_drv_data *drv_data = slot->host->drv_data;
>>  	u32 regs;
>> +	int ret;
>>  
>>  	switch (ios->bus_width) {
>>  	case MMC_BUS_WIDTH_4:
>> @@ -975,16 +976,36 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
>>  
>>  	switch (ios->power_mode) {
>>  	case MMC_POWER_UP:
>> +		if (!IS_ERR(mmc->supply.vmmc))
>> +			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
>> +
>>  		set_bit(DW_MMC_CARD_NEED_INIT, &slot->flags);
>>  		regs = mci_readl(slot->host, PWREN);
>>  		regs |= (1 << slot->id);
>>  		mci_writel(slot->host, PWREN, regs);
>> +
> 
> Looks like stray newline here?

Will Remove?

> 
> Dinh
> 
> 
> 


  reply	other threads:[~2014-05-14  4:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12 11:14 [PATCH 0/5] mmc: dw_mmc: minor code cleanup Jaehoon Chung
2014-05-12 11:14 ` [PATCH 1/5] mmc: dw_mmc: fix the wrong condition checking Jaehoon Chung
2014-05-12 11:14 ` [PATCH 2/5] mmc: dw_mmc: remove the "supports-highspeed" property Jaehoon Chung
2014-05-12 15:48   ` Dinh Nguyen
2014-05-14  4:55     ` Jaehoon Chung
2014-05-14 20:17       ` Dinh Nguyen
2014-05-12 17:43   ` Dinh Nguyen
2014-05-14  4:55     ` Jaehoon Chung
2014-05-12 11:14 ` [PATCH 3/5] mmc: dw_mmc-exynos: add the MMC_CAP_ERASE by default Jaehoon Chung
2014-05-13 11:15   ` Seungwon Jeon
2014-05-13 12:27     ` Jaehoon Chung
2014-05-12 11:14 ` [PATCH 4/5] mmc: dw_mmc: add the specified capbilities2 of controller Jaehoon Chung
2014-05-12 11:14 ` [PATCH 5/5] mmc: dw_mmc: use the mmc regulator API into core.c Jaehoon Chung
2014-05-12 17:41   ` Dinh Nguyen
2014-05-14  4:55     ` Jaehoon Chung [this message]
2014-05-14  9:48   ` Yuvaraj Cd

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=5372F751.9020405@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=chris@printf.net \
    --cc=dinguyen@altera.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=tgih.jun@samsung.com \
    --cc=ulf.hansson@linaro.org \
    --cc=zhangfei.gao@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox