Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp358350lqp; Wed, 12 Jun 2024 03:58:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXwX+PMPSfb7XGqPItDvOYMmQQmpZ5pYQ6ZF7gjNQCfj82Q++FeftwVd75GJECLG1A5JgEgbn5oRreRx9FfwzUXHKV1JSMF6HfGfK+xPA== X-Google-Smtp-Source: AGHT+IFLg8JCLuNWrpnSFCSaWEgYHnRsSTifNNGhu3QG7IOiqhI1d0QoebuiFgZERQ6EUpQNbvPH X-Received: by 2002:ac8:5acb:0:b0:43f:f615:c5d6 with SMTP id d75a77b69052e-4413b2da161mr81283251cf.21.1718189907497; Wed, 12 Jun 2024 03:58:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718189907; cv=pass; d=google.com; s=arc-20160816; b=zKuSGvcaJEiuIZNKC6cYTQ4hekCW5uAHnmAtnPLIi/40WWERjHnHNv6A0gbBZWrdq3 KLkLQ+ozTwzfj0NWgYin7VuYCYL798KFlHbCPjAL6h3TVjxKk8ClaueBuR+giB4XOzA0 3+GnlAAKnTtkc3dtZIxvcrRyreqnlrgYUCGziNqTxRcr1MgqE+7bXVOfs5rHwWwm/1TZ 1LF3Xw+kP8UyaQgImucPHH6dJXVl3QFqdqMt1EinjZTWS8FTleDkB3hPrrHTcvxv9SlI ZPF+AJmRLA+XSfcpDgAJT92eBepvJ55QxlgQSRJIYs3LwWYd7TOaBIpR94RWUqScoVEn hGJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=llPEU5zJ8fjSkE7HcafEEMz75piYcKif+vS0AMPdhSs=; fh=PsxxNhqVj0jadXiuKJtwWS+rA1qmOgY2alBJP92nw5o=; b=sU5NKC6I8uoT4HHChilDWcuvso+jGPvhJR3LkYUbrQl9oJI7s3GVgTXWuZdQF1uDsM XU3TtZx6XxHQ4toY+/cXfJ5A6zIBODC/alTr4FT6xfigk9uB80rwM9esLe2eKC5a5q1/ TuuDF7fNpLBi7mXkYP+0NZBBJtAjdsxIg1BQYuvEjSwiZViVenX/zhVi0x2HIbqKtxSA sPbdvf1zJIYUiAAtCe72vL7JZvViAipiTUEjf4oqY0PGhtTyS6vUrxlcaxWZHvz5do3p U2M1xXukWDMmjiD3G6wweam5pVBaGj9kc/SjjOdwZdt8IooJMlTq4cylCbdouOPAHxp/ HmlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=khTMS+5M; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-440545d6a98si105911271cf.289.2024.06.12.03.58.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 03:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=khTMS+5M; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211385-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 155411C20C27 for ; Wed, 12 Jun 2024 10:58:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C2E816F0C6; Wed, 12 Jun 2024 10:58:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="khTMS+5M" 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 75F9E16E888; Wed, 12 Jun 2024 10:58:15 +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=1718189895; cv=none; b=JRrK4yLCJN/aYGhX3uMbQefbTrhRluKfhrxvDloVX8rPPxFTz+OtNOYB7XgvlpfavsnO/+GgQDqiw+pa4o8ozgMBKVX39VGzVxSZeqR9iTs5+MJ/eI7ZezkSkm7HjIdMUJuJbPiLcuxdbP3BXlANnKDQ7h2GaZ0R2rohGYO2AFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718189895; c=relaxed/simple; bh=47DU7S/KIbzHjqDBoxXBhMyQV6hLuFO+cJiT7+VrD4I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=nEWluwW7e53Y26MEoJ8v1FL6IfasRyMKLTEjhduznXVed6wHawdcSdpouM+zJIwbpYEniS56jCs1gjYMVU24dl1vXOXY27HwLCDYZkyEjCXNyqx+9JUiJZGk06FQrTStGYMjpsTTWPV/Uv5xKCqvr5jP6Ct4M1w0qpMRgYfLcjY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=khTMS+5M; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57448C3277B; Wed, 12 Jun 2024 10:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718189895; bh=47DU7S/KIbzHjqDBoxXBhMyQV6hLuFO+cJiT7+VrD4I=; h=From:To:Cc:Subject:Date:From; b=khTMS+5MJFTFb8yXw4fHZGUMGkTy8jxGN/TYfeg32VavACwiQNP9s2rXch8BHSweR WpHYVXLktmu7p0efcsOa4riHw1M+RVmhP3Me3ta8rbWC6AJU/lwiOM+hi0+4GiNUNZ P0K9IHurqQauRbCFrRwd9pV3E6ueaCUZtyLTMeuDYEGExD5miK96AbcZtdkr98VZ7P UvpL72If+ABOYLaHr68LHClktRQdPDvq3EJ9uN2da6OpFIL051Wh1YWu6VEdqITra7 3+x3xedBNEbIRhBfReG4/aw/lEGQu4x9K9hRmoqPtUeX3ht1rr0ilGgB94N8zDO47N djVEKrl4Kl75g== From: Conor Dooley To: linux-pci@vger.kernel.org Cc: conor@kernel.org, Conor Dooley , Daire McNamara , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 0/2] PCI: microchip: support using either instance 1 or 2 Date: Wed, 12 Jun 2024 11:57:54 +0100 Message-ID: <20240612-outfield-gummy-388a36d95100@spud> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1555; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=zil4c1af9kgKB/4JC67HHkNcqLGWhATVWxa9QRrypgU=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDGmZ9cY/Z7BPfVS3ag4/59Wal/d9DX7mfPdpzvrvbnDi4 qLiUyJKHaUsDGIcDLJiiiyJt/tapNb/cdnh3PMWZg4rE8gQBi5OAZjIKweG3+zbtq39aFjD7sk7 8V+ZYEja/xMFWuU1Ng8MPi9arCWxkY/hn07HFjfLrHKvyMMr/eSOWAeumNNT8eP6pzWpWxi/12x x4AUA X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Conor Dooley The current driver and binding for PolarFire SoC's PCI controller assume that the root port instance in use is instance 1. The second reg property constitutes the region encompassing both "control" and "bridge" registers for both instances. In the driver, a fixed offset is applied to find the base addresses for instance 1's "control" and "bridge" registers. The BeagleV Fire uses root port instance 2, so something must be done so that software can differentiate. This series splits the second reg property in two, with dedicated "control" and "bridge" entries so that either instance can be used. Cheers, Conor. v2: - try the new reg format before the old one to avoid warnings in the new case - reword $subject for 2/2 CC: Daire McNamara CC: Lorenzo Pieralisi CC: Krzysztof WilczyƄski CC: Rob Herring CC: Bjorn Helgaas CC: Krzysztof Kozlowski CC: Conor Dooley CC: linux-pci@vger.kernel.org CC: devicetree@vger.kernel.org CC: linux-kernel@vger.kernel.org CC: linux-riscv@lists.infradead.org Conor Dooley (2): dt-bindings: PCI: microchip,pcie-host: fix reg properties PCI: microchip: rework reg region handing to support using either instance 1 or 2 .../bindings/pci/microchip,pcie-host.yaml | 10 +- drivers/pci/controller/pcie-microchip-host.c | 155 +++++++++--------- 2 files changed, 79 insertions(+), 86 deletions(-) -- 2.43.0