Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4378462ybg; Mon, 21 Oct 2019 08:08:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgJIcT/mrOin04lkf0ZnIdUnoI4dnjJPYZgqQhQxwpt6Q38L56hW2EYUL1f8eq2OZ1Nzpy X-Received: by 2002:aa7:d8c6:: with SMTP id k6mr25564041eds.87.1571670493642; Mon, 21 Oct 2019 08:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571670493; cv=none; d=google.com; s=arc-20160816; b=iBbKDtYnGJaAfygvel03zqxQBAHYUZqQDEgq2HdCXEyuhJ5xfwial0pIEQFSZLqgkp LKudqWe/0RGAC87ti4M48+gCDl+DUdz009X9SrSF8N5hujZr+OZPvDN/X2mwTZDbNmi0 iUJD9psTNoM4Z+47lgMYrn3xLeDF4xH8g2s5KHZ5jbLqB/TgGLWFypyau9owlfBMX0Nr lwqtZdKSjtEzZa9dP96JqojuX3mtqL7yM7qqUVs+Z41EhwWdnrBiRAUvR9HaDJ5hfXTk zWA0Ip9FEtBNPhIXqvNCUsEympX8zYOntaS/f316vezRVzPydQwYwZn13LqpjIu8Q3Y5 qg6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/6vqy85DJNBOhFlHZNlIiPo2QcGE4p1AorGrnhpURDs=; b=hRNBc77hRjcbzgwyCKhttt7/fRMER55jFWxOhXb4IoBkQde/bTcUikm/7IY/mLKYMm x6u+/3sApAxo84FYLqsWWsZFjkJX2m0q+Wz1hpJ8xcAvtf2aJ45Ni78scPckWypQUgm0 ZKCbWR7Ww0J8a7r3JcqLSCzKn4ZGr+NMX6Y1r611owho/ZrBLBJUyeqFbpYyDG/Hfu/z gtTKbOti7rn1W+sdEwU2ro8N0umZZ+xkS6gAX9eWW2pe9mfGWx7EPmwWLqSJXnxg2kwg PNohftzxQoR3wYzaX4Mh91eglKUhTuO5s0VjUx8QsKef4GLCgy84SECa31Ai2KPh03jM hy6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f47si10389572ede.263.2019.10.21.08.07.43; Mon, 21 Oct 2019 08:08:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729339AbfJUPFH (ORCPT + 99 others); Mon, 21 Oct 2019 11:05:07 -0400 Received: from [217.140.110.172] ([217.140.110.172]:55178 "EHLO foss.arm.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1726289AbfJUPFH (ORCPT ); Mon, 21 Oct 2019 11:05:07 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BB0841007; Mon, 21 Oct 2019 08:04:43 -0700 (PDT) Received: from localhost (unknown [10.37.6.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 334183F71F; Mon, 21 Oct 2019 08:04:43 -0700 (PDT) Date: Mon, 21 Oct 2019 16:04:41 +0100 From: Andrew Murray To: Pankaj Dubey , robh+dt@kernel.org, Kishon Vijay Abraham I Cc: 'Anvesh Salveru' , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, gustavo.pimentel@synopsys.com, jingoohan1@gmail.com, mark.rutland@arm.com Subject: Re: [PATCH 1/2] dt-bindings: PCI: designware: Add binding for ZRX-DC PHY property Message-ID: <20191021150441.GV47056@e119886-lin.cambridge.arm.com> References: <1571660755-30270-1-git-send-email-anvesh.s@samsung.com> <20191021141541.GS47056@e119886-lin.cambridge.arm.com> <05ba01d5881f$b98989a0$2c9c9ce0$@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <05ba01d5881f$b98989a0$2c9c9ce0$@samsung.com> User-Agent: Mutt/1.10.1+81 (426a6c1) (2018-08-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 21, 2019 at 08:26:28PM +0530, Pankaj Dubey wrote: > > > > -----Original Message----- > > From: Andrew Murray > > Sent: Monday, October 21, 2019 7:46 PM > > To: Anvesh Salveru > > Cc: linux-pci@vger.kernel.org; devicetree@vger.kernel.org; linux- > > kernel@vger.kernel.org; bhelgaas@google.com; > > gustavo.pimentel@synopsys.com; jingoohan1@gmail.com; robh+dt@kernel.org; > > mark.rutland@arm.com; Pankaj Dubey > > Subject: Re: [PATCH 1/2] dt-bindings: PCI: designware: Add binding for > ZRX-DC > > PHY property > > > > On Mon, Oct 21, 2019 at 05:55:55PM +0530, Anvesh Salveru wrote: > > > Add support for ZRX-DC compliant PHYs. If PHY is not compliant to > > > ZRX-DC specification, then after every 100ms link should transition to > > > recovery state during the low power states which increases power > > consumption. > > > > > > Platforms with ZRX-DC compliant PHY can use "snps,phy-zrxdc-compliant" > > > property in DesignWare controller DT node. > > > > > > Signed-off-by: Anvesh Salveru > > > Signed-off-by: Pankaj Dubey > > > --- > > > Documentation/devicetree/bindings/pci/designware-pcie.txt | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt > > > b/Documentation/devicetree/bindings/pci/designware-pcie.txt > > > index 78494c4050f7..9507ac38ac89 100644 > > > --- a/Documentation/devicetree/bindings/pci/designware-pcie.txt > > > +++ b/Documentation/devicetree/bindings/pci/designware-pcie.txt > > > @@ -38,6 +38,8 @@ Optional properties: > > > for data corruption. CDM registers include standard PCIe > configuration > > > space registers, Port Logic registers, DMA and iATU (internal > Address > > > Translation Unit) registers. > > > +- snps,phy-zrxdc-compliant: This property is needed if phy complies > > > +with the > > > > Strictly speaking, this is a property of the phy - not the controller that > uses it. > > > > If I understand correctly, there are some DW based PCI controllers that > use a > > phandle reference in DT to a Phy (such as fsl,imx6q-pcie.txt). Therefore > it feels > > like this is in the wrong place. Is there a reason this isn't described in > the Phy? > > > > Yes, from HW point of view this is a property of the PHY. As PHY is the one > which is ZRXDC compliant or non-compliant. > But as the DW controller programming needs to be altered for handling such > phys, so we added it as a DT binding of DW controller driver. > Also it might be possible that, some other PCIe controller (other than > DesignWare), do not have any such provision in controller H/W and they > expect PHY itself should expose some SFR to handle such scenario. In such > cases it is straight-forward to add this binding as part of PHY node. > > We can add this as part of PHY binding, but in that case we will end up > checking PHY binding in DWC driver via PHY nodes which seems little a bit of > hack. > > Do you have any other better approach to handle this? I think there may be others that have more informed opinions, such as Kishon and Rob (on CC). Thanks, Andrew Murray > > > Thanks, > > > > Andrew Murray > > > > > + ZRX-DC specification. > > > RC mode: > > > - num-viewport: number of view ports configured in hardware. If a > platform > > > does not specify it, the driver assumes 2. > > > -- > > > 2.17.1 > > > >