Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1144781pxf; Fri, 26 Mar 2021 01:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvduPaRE9uEJLJtKDnZ53cRn7gYBNDsJAqZRdwmiWfD61gofhWZIDHGhohrlP2ru7Nng+P X-Received: by 2002:a17:906:3643:: with SMTP id r3mr13692648ejb.527.1616748929475; Fri, 26 Mar 2021 01:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616748929; cv=none; d=google.com; s=arc-20160816; b=IO+nOwt5SObTZuUOEwiKb+JKpa0Igt4Gd4JdiB/YzlwQ98MyI+ZKLT1Uq0WNhTsz6M qdJFTutp6qFbYYqab4r1soi+6j33+c2a2X0aflN9vMiZzmkc66GqY3FJQsDnXzIv67ua bySqPEqMYSkcBiEESA6Bg9E+mqJV1uGPmz3oXVGkV8yjxKORRPkyE/4k1HjZwQ15bMyg dRFIpSuWGG4o4QN5zXanKME0CQ+vffbK6CnBKMqfz0psewr70QdcwewiGUhwhgkql1jA QWv8ZhKlo1q9OhLtCh/6J2+03f6KrMx2ld/oJ1NntZqyMRwpG8s9UdSkp2jsUNAwpiy+ bIBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qXKllH4DZp+PJmXaj590vznrjlQGXwA3qvbOlc3azSk=; b=jDh2WcQVOagw5KpiR2O2AaAZdheBUDDJgq6rXtjFAl9UxBM0aiDufRUOgjMh0aW3eJ 4he+YLN4lr8OdFhJfAYylEe6BXreQuUO/AzZ8U8O7A8pbx3aySck/EB7I5+4C143ABDU xtKNopP7x/B+DVV8nrEIHILlFjFw/7DHlNQ0PGknskE5sdvJkOhqxrMBQH6c08d6DsgC aDYXwwDjIXIimG0xHrYq1zeuTX9tdLyHmH2p2CjVEor4bJ+wma3TSn4I+94hXQN24ZLZ wMPDlQUc3GKdRIlKObayJKechnAkyQEsw3ned2vB4RMKS63E32GdcL9Yep0JdXgVKtfO ugow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ltSxYvjp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si6240414ejr.564.2021.03.26.01.55.06; Fri, 26 Mar 2021 01:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ltSxYvjp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229474AbhCZIvi (ORCPT + 99 others); Fri, 26 Mar 2021 04:51:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229869AbhCZIvI (ORCPT ); Fri, 26 Mar 2021 04:51:08 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1081C0613AA for ; Fri, 26 Mar 2021 01:51:07 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id t20so578681plr.13 for ; Fri, 26 Mar 2021 01:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qXKllH4DZp+PJmXaj590vznrjlQGXwA3qvbOlc3azSk=; b=ltSxYvjpQGcstE6G4k6RSWbKDuooSNtXutRV7H9eO2h9Zv2zjf+ZAzz61K0k44DHGr PCxVLcXDNOIzp+TLmyR0OATS79z+AhvwDets+g6U/0pSS/ThoipATd4Nj3EmJWF6reHq 4FEET9pD965Ozqoc2ODcX5rD3b+RBRHHEzkrHzSpaOnaQ0OTjA5oHbEojmruiPqdxuti j6r6Of49aUn6n15klnZ8sVm5ZBvjjL23MFY6rhQp1RYZYNEs1bX1AKWrK02Exblg5oGh skemN90BZ8S7UTC7Kj/DVhyvqC5BmzNm829KjUX7Mx4uxUfw38KkLVrWwAPOZrSjX7in X1EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qXKllH4DZp+PJmXaj590vznrjlQGXwA3qvbOlc3azSk=; b=RLO2SThDzOB+JjAMqgspEGF4h+0mJS8mf2WXVZ+dNoCoptUVX715sW3Cwk+uDL15Tc eeoZXsATUq/ubQfa7fFLxdLsPNHp4L1uwCtP4Gibx6Ks2mUbazVYDjEH2s3gIeUrr4zF uEW785MgI8otVpwR4qv+poEh/E62Ieo/agbTiOVR12EDU2wtwN6z3Wwpfekh7XiH8eAo ZCgMZXHWKwucrKwbk262FQsfHWYOQ8yBGaz37Z0wL2WmmxikjB+JVOkSgFD5XxO+vHPd PkVLDeDvwQC+Asc8x758X7cupA3Bpu3bAePvIjhttVJGuhaBM02IeTlz6isq4OupHTMs 98og== X-Gm-Message-State: AOAM533OyFMQaOL/CTcQhKWOUQVDhyksvk+1xxNbP/7ZluQdG5cPGtJ9 xj7vZLDcuoPLCxliTD5nsEDz X-Received: by 2002:a17:902:c1c4:b029:e6:7bc9:71fd with SMTP id c4-20020a170902c1c4b02900e67bc971fdmr13788321plc.5.1616748667147; Fri, 26 Mar 2021 01:51:07 -0700 (PDT) Received: from work ([103.77.37.139]) by smtp.gmail.com with ESMTPSA id o76sm7036325pfg.217.2021.03.26.01.51.04 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Mar 2021 01:51:06 -0700 (PDT) Date: Fri, 26 Mar 2021 14:21:02 +0530 From: Manivannan Sadhasivam To: Mauro Carvalho Chehab Cc: Rob Herring , Binghui Wang , Bjorn Helgaas , Lorenzo Pieralisi , Xiaowei Song , "linux-kernel@vger.kernel.org" , PCI Subject: Re: [PATCH v2 04/11] PCI: dwc: pcie-kirin: add support for Kirin 970 PCIe controller Message-ID: <20210326085102.GA25371@work> References: <4c9d6581478aa966698758c0420933f5defab4dd.1612335031.git.mchehab+huawei@kernel.org> <20210326093936.02ba3a03@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326093936.02ba3a03@coco.lan> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2021 at 09:39:36AM +0100, Mauro Carvalho Chehab wrote: > Em Wed, 3 Feb 2021 08:34:21 -0600 > Rob Herring escreveu: > > > On Wed, Feb 3, 2021 at 1:02 AM Mauro Carvalho Chehab > > wrote: > > > > > > From: Manivannan Sadhasivam > > > > > > Add support for HiSilicon Kirin 970 (hi3670) SoC PCIe controller, based > > > on Synopsys DesignWare PCIe controller IP. > > > > > > [mchehab+huawei@kernel.org: fix merge conflicts] > > > Signed-off-by: Manivannan Sadhasivam > > > Signed-off-by: Mauro Carvalho Chehab > > > --- > > > drivers/pci/controller/dwc/pcie-kirin.c | 723 +++++++++++++++++++++++- > > > 1 file changed, 707 insertions(+), 16 deletions(-) > > > > > > diff --git a/drivers/pci/controller/dwc/pcie-kirin.c b/drivers/pci/controller/dwc/pcie-kirin.c > > > index 026fd1e42a55..5925d2b345a8 100644 > > > --- a/drivers/pci/controller/dwc/pcie-kirin.c > > > +++ b/drivers/pci/controller/dwc/pcie-kirin.c > > > @@ -29,6 +29,7 @@ > > [...] > > This looks like it is almost all phy related. I think it should all be > > moved to a separate phy driver. Yes, we have some other PCI drivers > > controlling their phys directly where the phy registers are > > intermingled with the PCI host registers, but I think those either > > predate the phy subsystem or are really simple. I also have a dream to > > move all the phy control to the DWC core code. > > Please notice that this patch was not written by me, but, instead, > by Mannivannan. So, I can't change it. Feel free to move the PHY pieces to a separate PHY driver as suggested. My driver code was merely WIP one and I don't have any objection to change the patch. I'd be happy if you add my Co-developed tag to the PCIe driver patch with the SoB ofc. > What I can certainly do is to > write a separate patch at the end of this series moving the Kirin 970 > phy to a separate driver. Would this be accepted? > Ah, please don't do that. I know that you've already followed the same process for other HiSi drivers but that looks messy IMO. > Btw, what should be done with the Kirin 960 PHY code that it is > already embedded on this driver, and whose some of the DT properties > are for its phy layer? > You might need to create a PHY driver for both 960 and 970. I don't see any harm there. But please make sure you test the patches on both boards. Thanks, Mani > Thanks, > Mauro