Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751946AbdHCAhX (ORCPT ); Wed, 2 Aug 2017 20:37:23 -0400 Received: from lucky1.263xmail.com ([211.157.147.134]:58097 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751188AbdHCAhW (ORCPT ); Wed, 2 Aug 2017 20:37:22 -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: kishon@ti.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: <00f2eb8788cc0df261cd58eeb2ab0394> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Cc: linux-kernel@vger.kernel.org, shawn.lin@rock-chips.com, linux-rockchip@lists.infradead.org, Heiko Stuebner , Kishon Vijay Abraham I Subject: Re: [PATCH 058/102] phy: rockchip-pcie: explicitly request exclusive reset control To: Philipp Zabel , Bjorn Helgaas References: <20170719152646.25903-1-p.zabel@pengutronix.de> <20170719152646.25903-59-p.zabel@pengutronix.de> From: Shawn Lin Message-ID: <70531cf6-4576-1619-7ec8-11b771af4c96@rock-chips.com> Date: Thu, 3 Aug 2017 08:37:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170719152646.25903-59-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: 1635 Lines: 42 [+ Bjorn] On 2017/7/19 23:26, 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: Kishon Vijay Abraham I > Cc: Heiko Stuebner > Cc: linux-rockchip@lists.infradead.org > Signed-off-by: Philipp Zabel some changes for phy-rockchip-pcie.c would go via pci tree for 4.14, so is it ok for Bjorn to pick this up if no objection from Kishon, in case of merge conflict? Anyway, Reviewed-by: Shawn Lin > --- > drivers/phy/rockchip/phy-rockchip-pcie.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c > index 6904633cad687..258220b7f481c 100644 > --- a/drivers/phy/rockchip/phy-rockchip-pcie.c > +++ b/drivers/phy/rockchip/phy-rockchip-pcie.c > @@ -305,7 +305,7 @@ static int rockchip_pcie_phy_probe(struct platform_device *pdev) > rk_phy->phy_data = (struct rockchip_pcie_data *)of_id->data; > rk_phy->reg_base = grf; > > - rk_phy->phy_rst = devm_reset_control_get(dev, "phy"); > + rk_phy->phy_rst = devm_reset_control_get_exclusive(dev, "phy"); > if (IS_ERR(rk_phy->phy_rst)) { > if (PTR_ERR(rk_phy->phy_rst) != -EPROBE_DEFER) > dev_err(dev, >