All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joonyoung Shim <jy0922.shim@samsung.com>
To: Jaehoon Chung <jh80.chung@samsung.com>, linux-mmc@vger.kernel.org
Cc: ulf.hansson@linaro.org, shawn.lin@rock-chips.com,
	"jy0922.shim@samsung.com >> Joonyoung Shim"
	<jy0922.shim@samsung.com>
Subject: Re: [PATCH] mmc: dw_mmc: add missing codes for runtime resume
Date: Fri, 25 Nov 2016 11:55:09 +0900	[thread overview]
Message-ID: <5837A80D.3020902@samsung.com> (raw)
In-Reply-To: <4478096a-4d57-f739-d746-17c506548981@samsung.com>

Hi jaehoon,

On 11/25/2016 11:37 AM, Jaehoon Chung wrote:
> Hi Joonyoung,
> 
> On 11/23/2016 06:33 PM, Joonyoung Shim wrote:
>> The commit 64997de4fd17 ("mmc: dw_mmc: remove system PM callback") is
>> missing to call dw_mci_ctrl_reset(). This adds to call
>> dw_mci_ctrl_reset() and to handle error of clocks.
>>
>> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> 
> Applied on my dwmmc repository. Thanks!
> 

Thanks, but i found one more issue.

> Best Regards,
> Jaehoon Chung
> 
>> ---
>>  drivers/mmc/host/dw_mmc.c | 11 +++++++++++
>>  1 file changed, 11 insertions(+)
>>
>> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
>> index d426fa41bcce..25e21a20ee04 100644
>> --- a/drivers/mmc/host/dw_mmc.c
>> +++ b/drivers/mmc/host/dw_mmc.c
>> @@ -3303,6 +3303,17 @@ int dw_mci_runtime_resume(struct device *dev)
>>  	if (ret)
>>  		return ret;

Here, error handling about biu_clk should be consider.

>>  
>> +	if (!dw_mci_ctrl_reset(host, SDMMC_CTRL_ALL_RESET_FLAGS)) {
>> +		clk_disable_unprepare(host->ciu_clk);
>> +
>> +		if (host->cur_slot &&
>> +		    (mmc_can_gpio_cd(host->cur_slot->mmc) ||
>> +		     !mmc_card_is_removable(host->cur_slot->mmc)))
>> +			clk_disable_unprepare(host->biu_clk);
>> +
>> +		return -ENODEV;
>> +	}
>> +
>>  	if (host->use_dma && host->dma_ops->init)
>>  		host->dma_ops->init(host);
>>  
>>

I will send patch v2, could you review and apply patch v2 instead of v1?

Thanks.


  reply	other threads:[~2016-11-25  2:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20161123094435epcas1p358457576f3e08aa57b19012efc8c7ad1@epcas1p3.samsung.com>
2016-11-23  9:33 ` [PATCH] mmc: dw_mmc: add missing codes for runtime resume Joonyoung Shim
2016-11-25  2:37   ` Jaehoon Chung
2016-11-25  2:55     ` Joonyoung Shim [this message]
2016-11-25  2:37   ` 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=5837A80D.3020902@samsung.com \
    --to=jy0922.shim@samsung.com \
    --cc=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.