Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp341804lqp; Tue, 11 Jun 2024 06:22:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGdzNp3e3fG7Q7S88R0hWytN5k4mnRukn6XGaStB1bagEdyvyReoCKETx26T5A7RLlHYKXjXSMhP8bRPBfIlCzW1E+0lmCdGl+LMXgJw== X-Google-Smtp-Source: AGHT+IGC6CcaGGChfW42vPaYqnk26j4BGmiLKXQgTnFIUksXa1SQOu7znS89AR5ff68of9l5iyfc X-Received: by 2002:a05:6358:9146:b0:19f:19dd:9023 with SMTP id e5c5f4694b2df-19f1ff9faeemr1281221155d.27.1718112137382; Tue, 11 Jun 2024 06:22:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718112137; cv=pass; d=google.com; s=arc-20160816; b=Smw3tjS4moElTYsc6zOstkQ7kjFyT95rElZf6IAEnJ9Jmn43f/KruSCTzza1WbKlXa qt7ANu+0XD30wc42wV8+7ZbRIx9RyE0JOdGAKpgIAasbIBJ4RGKsMRjsIu7P2uem7eP1 vam2K/Yx08ihYGIzjzYTrAwbU0jx/LTnR9N3YRulETnS542ZSAizDIZYkZIefhJibpT2 YKNeKDD71anzm1lP8aZ96bZF+gYDn+XRBJNJZhwd+V0okz7CxerHJFDDEqwerUt88TlY sfEVUx2wUAxZDjfstwGs1IZ3Iv4tyoIryRZXvIb7goBVwGa2fSHUsPVVLqxd4oaObXeh lTLw== 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=DsD5DMeN/nJ5vojTC/OywRqgYa9j3l6h+c3RuFPCV7w=; fh=JwKIhr743tpMqEkf4civGli5hh2nt6Epiu4UAbBZfT8=; b=qLGTMpQZepd5Y8X5bEelNA0/bCfkVK7U2LNSYKW853com6zsXOJdYzuwzDYDp4kaXy rgVC+mctRMCA5uFteUDZdK5n6rBugifHipMnzSnJM6MzTxKJMMaN9RdtHOKJlUoIelkJ A3E0L0VTDgRr80kop3zOctd86mPfqTsGEc/HAdapSg3bKC76J029mXoDJE+OUXRK2sCe YOMDQgI7+J8K4KwgkJaYHubHv9i4SQq7b2HTtfvnDuOqPkQjpmtuH9uiqCzZhRAZlkRK qdKlJmPN+xZ/u/LTPTZ5o4xgy4vMZYww4GUm34XZQjCspU33Zf13RgndNMdhBWqwIZ82 1YCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dkfn9bGA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e9ba0d24bcsi5076088a12.666.2024.06.11.06.22.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 06:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dkfn9bGA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209912-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 2D745B25194 for ; Tue, 11 Jun 2024 13:13:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70A6F17C7D8; Tue, 11 Jun 2024 13:12:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Dkfn9bGA" 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 8AAF1178CCF; Tue, 11 Jun 2024 13:12:50 +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=1718111570; cv=none; b=tbnxSbTcl0AzCuVwh/I30SFt7DjKf1crdgD68bGXnQp+/5VFZvl3cXbqgKPk1RHD1cVltMaWx4N01/BzL/+dPvk8hyFf6uFC58dgtlvo4Mi0vutPp6oyNL7OY+rrylyOMgWqxV3WNpkHZnD2alhoyggbfmIHKn9vatGLLshpBxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718111570; c=relaxed/simple; bh=OGe3r2/6pOkH3bSOKeGtF6RD1v4JiSo+hRENqhCkqew=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=naif1t1/8A/vUWp5zTkQW39GvJ4LcF96ztRwQqL59HiVfkhN1dBxyvm5Y/ntjhtCQYS1kmLU+l685dldwLnG27kaYH3n5IIAVZs1ilyBVKe5r9d9VJ0XQIylZE6YHpquHP2K+twkvbisrYBbewp9Wb7msrwxlXBrsmGKhE5S6qM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Dkfn9bGA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A823CC2BD10; Tue, 11 Jun 2024 13:12:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718111570; bh=OGe3r2/6pOkH3bSOKeGtF6RD1v4JiSo+hRENqhCkqew=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dkfn9bGAJxiqPyULSPh28vzRbnNR6uLlnIrDo64O2djHmmF+9RmhcOl1CvS6RlPCw pEJ2EeFIlvJ2EkvwVCxHDm6slBdVLgQr4kN+c7fu1vggrJNAQ9FU4FVyenGIoeEKIZ GepRVPGZdqhokEa+3vxMyNcH4/J0S6sBObj0+l1nCYzNlO0dGTz9njTbNCnfqNnsSW k2nXmY37Jup2keBhBI+3nFdUIX9sYSAJ+XVaGfcfvON3MDtvtB3cBR5RM/GwnlHNj1 +5k/Mos4HWpzcryvLv3rM0CC0LbLDh3IMsleknX2XOrTBCPVUhzp8aMzyluerjV77T PGUGdv3n3DVTA== Date: Tue, 11 Jun 2024 14:12:45 +0100 From: Conor Dooley To: Conor Dooley Cc: Daire McNamara , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v1 2/2] PCI: microchip: rework reg region handing Message-ID: <20240611-relapsing-hurt-3a5f37743784@spud> References: <20240527-slather-backfire-db4605ae7cd7@wendy> <20240527-flint-whacky-4fb21c38476b@wendy> 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="66+HdzG+IeYp/nLS" Content-Disposition: inline In-Reply-To: <20240527-flint-whacky-4fb21c38476b@wendy> --66+HdzG+IeYp/nLS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 27, 2024 at 10:37:17AM +0100, Conor Dooley wrote: > @@ -1150,28 +1129,44 @@ static int mc_host_probe(struct platform_device *= pdev) > =20 > port->dev =3D dev; > =20 > - port->axi_base_addr =3D devm_platform_ioremap_resource(pdev, 1); > - if (IS_ERR(port->axi_base_addr)) > - return PTR_ERR(port->axi_base_addr); > + /* > + * The original, incorrect, binding that lumped the control and > + * bridge addresses together still needs to be handled by the driver. > + */ > + axi_base_addr =3D devm_platform_ioremap_resource_byname(pdev, "apb"); I noticed yesterday that this will print an error during boot, which I don't really want for the devices using the updated format. I'll send a v2 tomorrow with the reg region probing inverted. Thanks, Conor. > + if (!IS_ERR(axi_base_addr)) { > + port->bridge_base_addr =3D axi_base_addr + MC_PCIE1_BRIDGE_ADDR; > + port->ctrl_base_addr =3D axi_base_addr + MC_PCIE1_CTRL_ADDR; > + goto addrs_set; > + } > =20 > + port->bridge_base_addr =3D devm_platform_ioremap_resource_byname(pdev, = "bridge"); > + if (IS_ERR(port->bridge_base_addr)) > + return dev_err_probe(dev, PTR_ERR(port->bridge_base_addr), > + "legacy apb register and bridge region missing"); > + > + port->ctrl_base_addr =3D devm_platform_ioremap_resource_byname(pdev, "c= trl"); > + if (IS_ERR(port->ctrl_base_addr)) > + return dev_err_probe(dev, PTR_ERR(port->ctrl_base_addr), > + "legacy apb register and ctrl region missing"); > + > +addrs_set: > --66+HdzG+IeYp/nLS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmhNTQAKCRB4tDGHoIJi 0m6kAP9Yi9S7w0ZvHdiZWSo84UEHKpHj2Y1/n5bHC+FrPclaqgD8DZbVakSMXx/j Ui6ZHfzPJVENrprpWkS4r/azLfon1A4= =qPrU -----END PGP SIGNATURE----- --66+HdzG+IeYp/nLS--