Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752135AbdGVNJq (ORCPT ); Sat, 22 Jul 2017 09:09:46 -0400 Received: from lucky1.263xmail.com ([211.157.147.132]:33256 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbdGVNJp (ORCPT ); Sat, 22 Jul 2017 09:09:45 -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: 220.200.4.143 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: <20b27423db473fb0425e1ed02c68641a> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH 058/102] phy: rockchip-pcie: explicitly request exclusive reset control To: Philipp Zabel References: <20170719152646.25903-1-p.zabel@pengutronix.de> <20170719152646.25903-59-p.zabel@pengutronix.de> Cc: linux-kernel@vger.kernel.org, shawn.lin@rock-chips.com, linux-rockchip@lists.infradead.org, Heiko Stuebner , Kishon Vijay Abraham I From: Shawn Lin Message-ID: <8d913686-5765-c808-772f-da389e991b71@rock-chips.com> Date: Sat, 22 Jul 2017 21:09:05 +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-59-p.zabel@pengutronix.de> Content-Type: text/plain; charset=windows-1252; 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: 1583 Lines: 43 Hi Philipp 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 > --- > drivers/phy/rockchip/phy-rockchip-pcie.c | 2 +- This driver is under reconstruction and would probably go via pci tree later. So I would mention your change to the reconstruction work if that's applied. > 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, > -- Best Regards Shawn Lin