From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932298AbcHSNg1 (ORCPT ); Fri, 19 Aug 2016 09:36:27 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:35944 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754871AbcHSNgZ (ORCPT ); Fri, 19 Aug 2016 09:36:25 -0400 Subject: Re: [PATCH v4 2/2] phy: add a driver for the Rockchip SoC internal PCIe PHY To: Shawn Lin References: <1469755326-10263-1-git-send-email-shawn.lin@rock-chips.com> <1469755326-10263-2-git-send-email-shawn.lin@rock-chips.com> CC: , , Heiko Stuebner , Doug Anderson , Brian Norris , Wenrui Li , Rob Herring , From: Kishon Vijay Abraham I Message-ID: <57B70B2F.5090302@ti.com> Date: Fri, 19 Aug 2016 19:05:43 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1469755326-10263-2-git-send-email-shawn.lin@rock-chips.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Friday 29 July 2016 06:52 AM, Shawn Lin wrote: > This patch to add a generic PHY driver for rockchip PCIe PHY. > Access the PHY via registers provided by GRF (general register > files) module. > > Signed-off-by: Shawn Lin > > --- > > Changes in v4: > - remove laneoff symbol as we still fail to get a workable solution > except for exporting symbol. But I will be back with some other possible > routine once finished. > > Changes in v3: None > Changes in v2: None > > drivers/phy/Kconfig | 7 + > drivers/phy/Makefile | 1 + > drivers/phy/phy-rockchip-pcie.c | 357 ++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 365 insertions(+) > create mode 100644 drivers/phy/phy-rockchip-pcie.c > > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 02afc624..824b568 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -371,6 +371,13 @@ config PHY_ROCKCHIP_DP > help > Enable this to support the Rockchip Display Port PHY. > > +config PHY_ROCKCHIP_PCIE > + tristate "Rockchip PCIe PHY Driver" > + depends on ARCH_ROCKCHIP && OF add COMPILE_TEST here. I'm planning to fix this for other drivers as well in drivers/phy. > + select GENERIC_PHY select MFD_SYSCON as well. Thanks Kishon