Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755231AbdGVNO3 (ORCPT ); Sat, 22 Jul 2017 09:14:29 -0400 Received: from lucky1.263xmail.com ([211.157.147.130]:34056 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752154AbdGVNO2 (ORCPT ); Sat, 22 Jul 2017 09:14:28 -0400 X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: linux-mmc@vger.kernel.org X-SENDER-IP: 220.200.4.143 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: <361980314b1f56a84710ee3b1d5d9f47> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH 038/102] mmc: dw_mmc: explicitly request exclusive reset control To: Philipp Zabel References: <20170719152646.25903-1-p.zabel@pengutronix.de> <20170719152646.25903-39-p.zabel@pengutronix.de> Cc: linux-kernel@vger.kernel.org, shawn.lin@rock-chips.com, Jaehoon Chung , Ulf Hansson , linux-mmc@vger.kernel.org From: Shawn Lin Message-ID: Date: Sat, 22 Jul 2017 21:13:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170719152646.25903-39-p.zabel@pengutronix.de> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1392 Lines: 39 On 2017/7/19 23:25, Philipp Zabel wrote: > Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting > reset lines") started to transition the reset control request API calls > to explicitly state whether the driver needs exclusive or shared reset > control behavior. Convert all drivers requesting exclusive resets to the > explicit API call so the temporary transition helpers can be removed. > > No functional changes. > > Cc: Jaehoon Chung > Cc: Ulf Hansson > Cc: linux-mmc@vger.kernel.org > Signed-off-by: Philipp Zabel Reviewed-by: Shawn Lin > --- > 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 a9dfb26972f21..7c1e2dbc76776 100644 > --- a/drivers/mmc/host/dw_mmc.c > +++ b/drivers/mmc/host/dw_mmc.c > @@ -2950,7 +2950,7 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host) > return ERR_PTR(-ENOMEM); > > /* find reset controller when exist */ > - pdata->rstc = devm_reset_control_get_optional(dev, "reset"); > + pdata->rstc = devm_reset_control_get_optional_exclusive(dev, "reset"); > if (IS_ERR(pdata->rstc)) { > if (PTR_ERR(pdata->rstc) == -EPROBE_DEFER) > return ERR_PTR(-EPROBE_DEFER); > -- Best Regards Shawn Lin