Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3521069ybl; Mon, 12 Aug 2019 01:46:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqw47l9BLjKcFiQo5d2Ns414wd0mZpSNFUzJyWy8P4ki14mwqwHALWp4oDWo6ncO6mHbVvVs X-Received: by 2002:a17:902:36e:: with SMTP id 101mr20619376pld.51.1565599574545; Mon, 12 Aug 2019 01:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565599574; cv=none; d=google.com; s=arc-20160816; b=TXvLS3wp6UiqLd6IMcjP5eE5dhxlQi/jkiwzl6Ys7nQPvSHF3nwkFv2C2ecM013oA9 GXYzduGF8BWDnv2CUmCzJ7WykbeSJwU/6iwTO6sR4HDZMYmlJM5jDN7fz4Om/RyzEiJT 2UJ96gSYCvSEVHt1p+4x8XGSzqSY17dGCxKWu8flNkJtop6f0DclG93rrGMax8714E3w l/CKxEY00KOL8W62UVy4ZwaxEKe6zBOg/xN9ABJcmDXFdm5MOwb2/cGYcUJq0DmE3Nv1 cyeci3dlOW0Dcahtok/PNQ0tctfv4gJe7ZZdsLQAPdqkQWPsdxH6VBxQ+AfObHiy0vrE zV3Q== 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=e88mekLZwiT09gX7QbgY7cxNBz505dfDtl7D33T8qd4=; b=iMl0G1cdg4I0tP8hSbOBT3p0BiHqeyEWtj35Kj90PSMpF/OqPScNtZMMNDwS40MtMB tenvIUZgmHfmk15HhAN0/wSXKP5CWFWsEn/NFCsTTkGx6hGPqX07VZ+tDaxvUgb7j6zs NI7wPZ8DD8AEFnc42eYLfmsvQk3N2qjo190XYxLRtGFayLtXr8FvIZ71eJP7I6731Dj6 RY3NowYr6fkcFEhqi0APTFMumcldCTIIc49q0e8YLQoLePRzxywJyzWCWgTHhOQqk4DB wJszhO7FcegG4lJKFW0rw2TX61e2c2NehgrfX6lV3QFMBIqNCVtOt95T09uZ2YB+E2HU aZSw== 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 205si33934725pge.295.2019.08.12.01.45.59; Mon, 12 Aug 2019 01:46:14 -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 S1727167AbfHLIpV (ORCPT + 99 others); Mon, 12 Aug 2019 04:45:21 -0400 Received: from foss.arm.com ([217.140.110.172]:45354 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727092AbfHLIpU (ORCPT ); Mon, 12 Aug 2019 04:45:20 -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 E936D15A2; Mon, 12 Aug 2019 01:45:19 -0700 (PDT) Received: from localhost (unknown [10.37.6.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 696BF3F718; Mon, 12 Aug 2019 01:45:19 -0700 (PDT) Date: Mon, 12 Aug 2019 09:45:17 +0100 From: Andrew Murray To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "gustavo.pimentel@synopsys.com" , "jingoohan1@gmail.com" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "M.h. Lian" , Kishon Vijay Abraham I , Gabriele Paoloni Subject: Re: [PATCH 1/4] dt-bingings: PCI: Remove the num-lanes from Required properties Message-ID: <20190812084517.GW56241@e119886-lin.cambridge.arm.com> References: <20190812042435.25102-1-Zhiqiang.Hou@nxp.com> <20190812042435.25102-2-Zhiqiang.Hou@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812042435.25102-2-Zhiqiang.Hou@nxp.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, Aug 12, 2019 at 04:22:16AM +0000, Z.q. Hou wrote: > From: Hou Zhiqiang > > The num-lanes is not a mandatory property, e.g. on FSL > Layerscape SoCs, the PCIe link training is completed > automatically base on the selected SerDes protocol, it > doesn't need the num-lanes to set-up the link width. > > It has been added in the Optional properties. This > patch is to remove it from the Required properties. For clarity, maybe this paragraph can be reworded to: "It is previously in both Required and Optional properties, let's remove it from the Required properties". I don't understand why this property is previously in both required and optional... It looks like num-lanes was first made optional back in 2015 and removed from the Required section (907fce090253). But then re-added back into the Required section in 2017 with the adition of bindings for EP mode (b12befecd7de). Is num-lanes actually required for EP mode? Thanks, Andrew Murray > > Signed-off-by: Hou Zhiqiang > --- > Documentation/devicetree/bindings/pci/designware-pcie.txt | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt b/Documentation/devicetree/bindings/pci/designware-pcie.txt > index 5561a1c060d0..bd880df39a79 100644 > --- a/Documentation/devicetree/bindings/pci/designware-pcie.txt > +++ b/Documentation/devicetree/bindings/pci/designware-pcie.txt > @@ -11,7 +11,6 @@ Required properties: > the ATU address space. > (The old way of getting the configuration address space from "ranges" > is deprecated and should be avoided.) > -- num-lanes: number of lanes to use > RC mode: > - #address-cells: set to <3> > - #size-cells: set to <2> > -- > 2.17.1 >