Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp555420rdb; Thu, 8 Feb 2024 13:52:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfB8GgU9+86dIB1BKa51QXwTNBhxaLsHh6BgxUzDjWecsk42ctduHX0bzeGij9OIkQmnzx X-Received: by 2002:a17:903:32cc:b0:1d9:bd7d:3c79 with SMTP id i12-20020a17090332cc00b001d9bd7d3c79mr569876plr.26.1707429133948; Thu, 08 Feb 2024 13:52:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707429133; cv=pass; d=google.com; s=arc-20160816; b=i9ecFI7vFimo5FOUl18s+fFGEfkWn8iVn9rrxF/1RyzarT9gFPq0/LBu1gImSlWWun B79xUhZwadHaKrfpOkol06vMEHoJpz7EVN3sLwHrGFf90lhhHpFBSGHXpFS7nc3lK1fo EggBljuzlxLgJ/0INL0FwDs4KLQ76SJXKH5RFDIVBOotols2LtLKPt6fYmUu84ARQ+st UITpg4V/qJyoFD95VW5dxUUJpPci3vKNI6Qpl7sRa9m/tHEkv0QF5JaXCvnH/YD0q7GL tgX0Bc2jHDgxXN1OJOPNCW6wFxDSR5VKvtLObHBWAYBOu9io3QjuTcWWf7evWEOUXeWO drGQ== ARC-Message-Signature: i=2; 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=dpYBJFoAf6Ha+IfuT0DPMEvAMdbmo4Y0eyvku/kV3Xw=; fh=5EIENZYk/Aaa+o+MejVg9DJ9Fjw9Xi35VT+uFY15zLk=; b=gD9MWVufzhRb2nGaCj7yl3ynQbvHv0in7rPtC/PdltMf5f7K7qIP0yb2C2m0GccfFR 90RYt2coxajosqVdFVV82AGC0W30q4TwUaqwqMq/IrZ3Q+IAmXKDxFR5UB0Q4/68JMB4 T6hmFGDBD8cXXZ9LbBlFjgWBqgn7FHtVytaTN0EuYp3wxb9EeXZ/xEsZmSpi9+4KY7kg TNXNuDmjwAUpD+T4rISr4E/V9aWz+HOxds97FFr0x+V+dZFNydXiIaBgN0NlTgqIBg6r dd0e3tNQOZOa20npNvLq3ncnSAn4cUoVivLyPhXBOAe+0fjmzmyEGX6WqoqXAuMavHLQ egGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XnjmVS27; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-58704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUlV2sY+anyLc+/AVtxqB5WCuGoZ9lrWeG5Bvnr8EE9HJTJi5D8msWP4pkGJ+ZMAA5nR1/zwsKk79cjZ2MiZYhVXMjDg9XICwFwoOOF4A== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lv13-20020a1709032a8d00b001d98fc60058si442658plb.190.2024.02.08.13.52.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:52:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XnjmVS27; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-58704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58704-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C6A7AB2676A for ; Thu, 8 Feb 2024 21:20:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 561B54F1E1; Thu, 8 Feb 2024 21:20:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XnjmVS27" 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 670AE4EB2B; Thu, 8 Feb 2024 21:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707427213; cv=none; b=dmeIXo94Lrz8gNUyVyPBP4ndmo/HYgFr7IlCVq9jJDGIbbUqz2qIzTjvIC0yIzxzstOAv4bbN017QyYZjmMKa9o7xRg4yjyU49ICBG15K1EJkoKksveURVyhQKiDmDE1Hi7C6WHaFA2ZU4ER4wkEjJFapd9mpq53BtKY1CQ2SDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707427213; c=relaxed/simple; bh=0wWe0YAzwZgyv/3+8weFv30HET9B4Cd2WgTwkK3SakI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=suo2fmeQpgJlpx20hQsTNcZN0CB/cF1IIqYuxmpkX0Fa9MN3yHH22k6AVB7fogcKYP86ggg+SR3hohAAmZFAl6XBK1LS5gQjzpHufiM+256Od4Tn2cCAnvc3eCvWG8Lwun/s3IrskzDJmsCKGktxqMcGksZrOvLQL/PvrHTsrHU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XnjmVS27; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC03BC433F1; Thu, 8 Feb 2024 21:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707427212; bh=0wWe0YAzwZgyv/3+8weFv30HET9B4Cd2WgTwkK3SakI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XnjmVS27glab5wa0li66EW96HAkQDCAhBiyH29TYFhy29nAcK/5BhDaJFbWoaCjhj uVw4X2CYYZCDBRVmHl0T9Z/2qfBm5ZWrtfZqDdQsNbPl9vghfAwICGDMLvvn6tWjVz D/HPwODfh8kD2e359ph+RiDuXWZEXJ4tSJSBTXYYIQ1CrVAH3CUV/GYAUFbGUrsXwb awQOO4R442XqoSaI8D5kiwo7XoP1r7aPL2hZ/7p4fqEjSwwbOIsMo8QKVxFz6+fSEa 7l35MmM1yClqLti6/QPyeV4fLNCKYhDEfEf4AAVicgm9EelSRA/UEfN164aNIenyZr ly4JxZeLc07EA== Date: Thu, 8 Feb 2024 21:20:08 +0000 From: Conor Dooley To: Frank Li Cc: Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "open list:PCI SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , imx@lists.linux.dev Subject: Re: [PATCH 1/1] dt-bindings: pci: layerscape-pci: Convert to yaml file Message-ID: <20240208-outing-nature-74b6fab0cdea@spud> References: <20240207062403.304367-1-Frank.Li@nxp.com> <20240207-yoga-mobility-90a728f6342c@spud> <20240208-jarring-frolic-8d4c9b409127@spud> <20240208-revoke-doorman-5ba34f39c743@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BkMhcd+HVPXZrhES" Content-Disposition: inline In-Reply-To: --BkMhcd+HVPXZrhES Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 08, 2024 at 03:20:50PM -0500, Frank Li wrote: > > > > > > > + reg: > > > > > > > + maxItems: 2 > > > > > > > + > > > > > > > + reg-names: > > > > > > > + items: > > > > > > > + - const: regs > > > > > > > + - const: addr_space > > > > > >=20 > > > > > > The example uses "regs" and "config". Where did addr_space come= from? > > > > >=20 > > > > > Example just show pcie-host part. Not show pcie-ep part. > > > > > pcie-ep part need 'addr_space'. > > > >=20 > > > > Okay. Again, please mention where this is coming from. > > >=20 > > > Ideally it comes from snsp,dwc-pcie-ep.yaml. but it is use 'dbi' inst= ead > > > of 'regs'. It needs extra effort to make driver code algin common > > > snps,dwc-pcie-ep.yaml, and update exist all dts files. > > >=20 > > > I think it will be deleted soon.=20 > >=20 > > What I am looking for here is you to explain in the commit message that > > the endpoint driver in linux and the dts have always used "addr_space". > > Checking that there's not a u-boot or *bsd that uses "config" would also > > be very helpful. >=20 > I confused. Actually this two part PCIE-RC and PCIE-EP. > PCIE-RC using 'config' > PCIE-EP using 'addr_spcae' Yeah, I get this. The text binding makes it seem like "config" should be used for both RC and EP, so I am just asking you to check that there are no drivers in other kernels or bootloaders that use "config" for EP mode. > I check old txt file, which have not mention it. I can remove it. if you drop "addr_space", you'll need to update the endpoint driver so that it supports both "addr_space" and "config". If there are no endpoint drivers using "config" in other operating systems, and all the dts files use "addr_space", documenting "reg" and "addr_space" for endpoint mode seems fair to me. Thanks, Conor. --BkMhcd+HVPXZrhES Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZcVFiAAKCRB4tDGHoIJi 0ncZAP426ohLG4dEVQblOtRj+sLza17dCRAZyQZGHBrzsJo9nAD+PL9tt9coV6Vx iDk3vgPZfq9rP5eThu72FRj53o6qtg0= =NA3v -----END PGP SIGNATURE----- --BkMhcd+HVPXZrhES--