Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp506975rdd; Tue, 9 Jan 2024 10:32:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IETwmQBfJB322Ls7jMoWawnjHU/VkvNuj/Kh1t2e8+EFBGZfDhT9HVDS2JN8nOs2nc6gt1J X-Received: by 2002:a2e:a310:0:b0:2cc:f586:ce9a with SMTP id l16-20020a2ea310000000b002ccf586ce9amr2667520lje.93.1704825172935; Tue, 09 Jan 2024 10:32:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704825172; cv=none; d=google.com; s=arc-20160816; b=YWVn5H5oImQ8QB8XPS0buoSpSbgPuOS53PcfZZQd9I3XW3QKQ44zgbuvB9DdMI6Mwc TfP1Uc/lXrW1dbnMeYgdNztkv9UpYhjr5ExxZzi/B/FZPg3I9hZJ0MP9w0KLysBBwitx 8lqVqA2OryGWXv+FaZbXEXb3d7Ead6qHxe2Xw2CTAQF3h0CnaWcQk3qXvxp0HujPFavG 4Lxu3cZBPsaLqjz0X2ZyKLNw5orjWCuootv41uj04mNKAXLaqI3pAbbK6dBLnHZJ/iWK r8hBvdLBdqUE6xCN1BdKMXqSHW+/Pa61oapxRRASI9cRHdxH2ymytn8kaDYiZFXXmcCN N74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mfI0N9NFKCvK3x/MesNdMTC8SnFgQFrHy1n1+ToS0Tw=; fh=ETDK+miPTV5yAeAcbG/sMxcaVgthiqvsaEWDDQZUDO4=; b=V99+lfdjBwhjgLJG/dPUWd6rWwepnweX2TxzYlqil0m0XtjO7KTNgzdVf3KDrwH7qt n2ELrB0kWT1ccOTtqOwbRGxBarIPoDVQSQgrQHchkdvOYEY7tTtWJJQXNU3yE2owQ1co 9lSVf1zJ7LSqCSgKuQxjXS1347hpy80ON+Ccdo+ht+oFBkndsLajyXPDWEungpidG2FS 7b7oA4cD4Cwov/ONWXW7RzZyXMhgZwDhJY2FeX5vrjQG8G64kQD5Q2+1oeVMPduH0Ieu wQkDTDpdEyr9dhNR3kWF1OndS/19VNXG3hMsiXCEFe2n0Hjg/63QpCNG9EZ82W2D2yq5 KQ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FqfcIAoy; spf=pass (google.com: domain of linux-kernel+bounces-21253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cx7-20020a05640222a700b0055468afa598si942757edb.125.2024.01.09.10.32.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 10:32:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FqfcIAoy; spf=pass (google.com: domain of linux-kernel+bounces-21253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1CAA51F29866 for ; Tue, 9 Jan 2024 18:24:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9546F3C489; Tue, 9 Jan 2024 18:24:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FqfcIAoy" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B98443C461; Tue, 9 Jan 2024 18:24:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8EACC43390; Tue, 9 Jan 2024 18:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704824666; bh=ORDcydzdI4WqaEgEC+N/AtgYAWYt9TwVHCyZQqFzwkk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FqfcIAoytbaSHClCub3k0jxMaJaWgOI2FQwjtJxIXh7UOH/yf0c7CdjZhcio43w8y SesPyKyuELEZu5lUvXZklbsirfkcCwTXGK/7Em8UUraHtVQvdplLUU7GmEAEVk+uBr rndLi8n+vAFCO3qvf9msB4n87DUT/S8pZdlnlMkgb0BMmte9VDshXW++Na/DC4io8H /ABNg6zrJonmMswfLb92UHFPVuKY2qwTHcd/z7qcoN4x3G4N+ZAPRDQ+EW+Eym9qSE DpIcz+KvZzUWyOkdsSIT/C3/uOHcGfGa4Dfgof0hebZMpLpFnQUviGPidOmuPJqH0/ b23KHxffuk75g== Received: (nullmailer pid 2900974 invoked by uid 1000); Tue, 09 Jan 2024 18:24:20 -0000 Date: Tue, 9 Jan 2024 12:24:20 -0600 From: Rob Herring To: Frank Li Cc: krzysztof.kozlowski@linaro.org, bhelgaas@google.com, conor+dt@kernel.org, devicetree@vger.kernel.org, festevam@gmail.com, helgaas@kernel.org, hongxing.zhu@nxp.com, imx@lists.linux.dev, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, kw@linux.com, l.stach@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lpieralisi@kernel.org, manivannan.sadhasivam@linaro.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: Re: [PATCH v8 04/16] dt-bindings: imx6q-pcie: Add linux,pci-domain as required for iMX8MQ Message-ID: <20240109182420.GA2896319-robh@kernel.org> References: <20240108232145.2116455-1-Frank.Li@nxp.com> <20240108232145.2116455-5-Frank.Li@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240108232145.2116455-5-Frank.Li@nxp.com> On Mon, Jan 08, 2024 at 06:21:33PM -0500, Frank Li wrote: > iMX8MQ have two pci controllers. Adds "linux,pci-domain" as required > property for iMX8MQ to indicate pci controller index. > > This adjustment paves the way for eliminating the hardcoded check on the > base register for acquiring the controller_id. > > ... > if (dbi_base->start == IMX8MQ_PCIE2_BASE_ADDR) > imx6_pcie->controller_id = 1; > ... > > The controller_id is crucial and utilized for certain register bit > positions. It must align precisely with the controller index in the SoC. > An auto-incremented ID don't fit this case. The DTS or fuse configurations > may deactivate specific PCI controllers. > > Signed-off-by: Frank Li > --- > > Notes: > Keep current to avoid DTB_CHECK warning. After these patch merged. Will add > linux,pci-domain in all dts file. So dt-binding can remove condition check > by soc. Please don't. No need to make required everywhere. Besides not needed, it is an ABI break. Rob