Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934921AbcJZUPX (ORCPT ); Wed, 26 Oct 2016 16:15:23 -0400 Received: from bear.ext.ti.com ([198.47.19.11]:36984 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932987AbcJZUPW (ORCPT ); Wed, 26 Oct 2016 16:15:22 -0400 Subject: Re: [PATCH] phy: Add reset callback for not generic phy To: John Youn , Randy Li , "linux-usb@vger.kernel.org" References: <1477404934-7425-1-git-send-email-ayaka@soulik.info> <8c8d86e6-a3b1-a381-dd3f-70e43768cfb9@synopsys.com> CC: "felipe.balbi@linux.intel.com" , "mark.rutland@arm.com" , "linux-rockchip@lists.infradead.org" , "randy.li@rock-chips.com" , "linux-kernel@vger.kernel.org" From: Kishon Vijay Abraham I Message-ID: <8899b220-5f6b-5c26-d966-68d1d79e5fc7@ti.com> Date: Thu, 27 Oct 2016 01:44:46 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <8c8d86e6-a3b1-a381-dd3f-70e43768cfb9@synopsys.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1039 Lines: 54 On Wednesday 26 October 2016 02:17 AM, John Youn wrote: > On 10/25/2016 7:15 AM, Randy Li wrote: >> I forget to add a dummy function in case the CONFIG_GENERIC_PHY >> is disabled. >> >> Signed-off-by: Randy Li > > Fixes: cac18ecb6f44 ("phy: Add reset callback") > Tested-by: John Youn > > Hi Kishon, > > Can you take this for 4.9-rc? sure, merged now. Thanks Kishon > > Thanks, > John > > > >> --- >> include/linux/phy/phy.h | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h >> index ee1bed7..78bb0d7 100644 >> --- a/include/linux/phy/phy.h >> +++ b/include/linux/phy/phy.h >> @@ -253,6 +253,13 @@ static inline int phy_set_mode(struct phy *phy, enum phy_mode mode) >> return -ENOSYS; >> } >> >> +static inline int phy_reset(struct phy *phy) >> +{ >> + if (!phy) >> + return 0; >> + return -ENOSYS; >> +} >> + >> static inline int phy_get_bus_width(struct phy *phy) >> { >> return -ENOSYS; >> >> > > >