From patchwork Fri Jul 28 13:13:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daire McNamara X-Patchwork-Id: 13331896 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C9D5C001DE for ; Fri, 28 Jul 2023 13:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/+wuTFlZWWKVRRhakAZo+71dMi+ni1V7UP/FiThNEic=; b=mS0rw2wIDzPjbT ugEfyosMaDrYTZAOGMF/fyowNXtTFS6UNJcdi2gE5TBSpRGy++Qw1u5mpAAklJX5JPUt7j7557EH3 tpInoQq7wBuagfZL9HvlvoGxRjiKtj1BWsFvDllPUPVv34sRp07D6FJXY5RzQllwrMXUDU8oUaNOz o2pfAx1g9yq0iBXvjUknVdD8ChyH8m/wWLV56O/kyCLqbUUWxpNctD5ZqCu3vXgXrRviEF3kKzrdr iQxsntSo3KGDWA1e+0GJrwA9D5T524BLc/Mqcsj4gLZFLTwX/4U0AZ6OCQOe3WXhm/9cK89l641SQ 15XAeobqDsSgdOQ9O/dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qPNIR-003VFs-1x; Fri, 28 Jul 2023 13:14:19 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qPNIM-003VD2-18 for linux-riscv@lists.infradead.org; Fri, 28 Jul 2023 13:14:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1690550055; x=1722086055; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=z0fwAPNzFg8lhlVnwCKJCYD81rl4C9MhpAaVh5wSuOo=; b=GlKxS0T6tEHh+LzngXD5SmNOn+E4jjT4TsXlFBswBbZFVQ0KRwWDPvy/ /vfVRgCWLETlH3WXrVlLluEs7a3ey+YGl3KUHF08NjlC5/fpYHRkE+W3m v/vAmbGNCs8dvnZ/kX0uZnJen1SsI/WKXJe4bKcPHrigpsdH/fpcbf5uE gyUY98eGHjwPtY378F+8ao4FyAuMi3as6f+OkHumJraOOq15UkB7ZDyAa Yd0KOwbj0zA48cJIuQc2n87pN9tVMsRYq5u3PplLTHNMlD8x6JAPpALW6 aBRp407sWu74BY6A36YsAaXXiS0alakDb5o6hKEZzXMQabA+FJhLWChlK w==; X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="222752993" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Jul 2023 06:14:07 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Jul 2023 06:14:05 -0700 Received: from daire-X570.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 28 Jul 2023 06:14:04 -0700 From: To: , , , , , , CC: Daire McNamara Subject: [PATCH v3 0/7] PCI: microchip: Fixes and clean-ups Date: Fri, 28 Jul 2023 14:13:54 +0100 Message-ID: <20230728131401.1615724-1-daire.mcnamara@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230728_061414_452236_AAECA813 X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Daire McNamara This patch series contains fixes and clean-ups for the Microchip PolarFire SoC PCIe driver These patches are extracted from the link below to separate them from the outbound and inbound range handling which is taking considerable time. Link: https://lore.kernel.org/linux-riscv/20230111125323.1911373-1-daire.mcnamara@microchip.com/ Resending with correct e-mail address list These patches are regenerated on v6.5-rc3. Main changes from v2: - Reworked "Gather MSI information..." as suggested by Bjorn - merged 'Gather MSI Information..." and "Rename and refactor" as suggested by Bjorn - Re-generated on v6.5-rc3 Main Changes from v1: - Dropped "Remove cast warning for devm_add_action_or_reset()". This has been overtaken by a patch series from Krzysztof Wilczynski. - Improved the comment for "Enable building driver as a module" to clarify what enables building the driver as a module. - Split "Gather MSI information from hardware config registers", for clarity, into: - "Gather MSI information from hardware config registers" purely changing the of source of MSI-related information (Num MSIs and MSI address) from #defines (which can be incorrect) to FPGA configuration registers (which is the ultimate source of truth), and a - "Rename and refactor ..." patch as a function's code is now clearly unrelated to its current name. cc: Conor Dooley cc: Lorenzo Pieralisi cc: "Krzysztof WilczyƄski" cc: Rob Herring cc: Bjorn Helgaas cc: linux-riscv@lists.infradead.org cc: linux-pci@vger.kernel.org Daire McNamara (8): PCI: microchip: Correct the DED and SEC interrupt bit offsets PCI: microchip: Enable building driver as a module PCI: microchip: Align register, offset, and mask names with hw docs PCI: microchip: Enable event handlers to access bridge and ctrl ptrs PCI: microchip: Clean up initialisation of interrupts PCI: microchip: Gather MSI information from hardware config registers PCI: microchip: Re-partition code between probe() and init() drivers/pci/controller/Kconfig | 2 +- drivers/pci/controller/pcie-microchip-host.c | 393 +++++++++++-------- 2 files changed, 233 insertions(+), 162 deletions(-) base-commit: 6eaae198076080886b9e7d57f4ae06fa782f90ef