From mboxrd@z Thu Jan 1 00:00:00 1970 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 F266224A06D; Mon, 23 Jun 2025 13:21:14 +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=1750684875; cv=none; b=ufgzSECjA7i+Ou1W3RbdxS1tnNWEBYVBK94CmEH9CJT670nMB/ONdOKQAXdC03ZN66sBRwRYhD1dCE3JyHXUifOX//MXSMaZxlW9BQoFgRbNS/c5n57qy/OjZyOfjEBfVGlgMBRb7fTBcm7S8ExsR9m5SGcILIuitrb+xhsJtPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750684875; c=relaxed/simple; bh=7245eW1OC9nn+JrM6ci2t7RVCVX4ekgfhnQVbIz+ejA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NGnPW90svWVJwD1VFITEB6bFncz+Pnx7LhKrNAAkeqHDoIHqbGWuZXT4/HAtcfIyaHkYlacHKB4x5/vEynMfAxt0T6nFh63Zk3uekcVCBgumwneXgnrTsOoJcDFSLWB1rVZUfdPjyFPpAs2UeH7h7MVflnshJvNiQUSkElggCEk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EXkV+Tz8; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EXkV+Tz8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E266C4CEEA; Mon, 23 Jun 2025 13:21:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750684874; bh=7245eW1OC9nn+JrM6ci2t7RVCVX4ekgfhnQVbIz+ejA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EXkV+Tz8nof6WnVfLBDSNZBLlkuuuzKPJAJZ5dR+qrNaMWXWmLgoTkqyy8HEHtF6I 9FIPOu3cJRgpP+Y2z4SCdPGcYoeFuGRY3RiuQR60ka/frtzlvPESB3Tqb8cIEUh7jV L15Aqof+ggGLwk3st6qhRP0N1tFKByWqcwyeBha0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Janne Grunau , Alyssa Rosenzweig , Marc Zyngier , Manivannan Sadhasivam , "Rob Herring (Arm)" Subject: [PATCH 6.15 185/592] PCI: apple: Set only available ports up Date: Mon, 23 Jun 2025 15:02:23 +0200 Message-ID: <20250623130704.683039565@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130700.210182694@linuxfoundation.org> References: <20250623130700.210182694@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Janne Grunau commit 751bec089c4eed486578994abd2c5395f08d0302 upstream. Iterating over disabled ports results in of_irq_parse_raw() parsing the wrong "interrupt-map" entries, as it takes the status of the node into account. This became apparent after disabling unused PCIe ports in the Apple Silicon device trees instead of deleting them. Switching from for_each_child_of_node_scoped() to for_each_available_child_of_node_scoped() solves this issue. Fixes: 1e33888fbe44 ("PCI: apple: Add initial hardware bring-up") Fixes: a0189fdfb73d ("arm64: dts: apple: t8103: Disable unused PCIe ports") Signed-off-by: Janne Grunau Signed-off-by: Alyssa Rosenzweig Signed-off-by: Marc Zyngier Signed-off-by: Manivannan Sadhasivam Tested-by: Janne Grunau Reviewed-by: Rob Herring (Arm) Reviewed-by: Manivannan Sadhasivam Acked-by: Alyssa Rosenzweig Cc: stable@vger.kernel.org Link: https://lore.kernel.org/asahi/20230214-apple_dts_pcie_disable_unused-v1-0-5ea0d3ddcde3@jannau.net/ Link: https://lore.kernel.org/asahi/1ea2107a-bb86-8c22-0bbc-82c453ab08ce@linaro.org/ Link: https://patch.msgid.link/20250401091713.2765724-2-maz@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/pcie-apple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/controller/pcie-apple.c +++ b/drivers/pci/controller/pcie-apple.c @@ -754,7 +754,7 @@ static int apple_pcie_init(struct pci_co if (ret) return ret; - for_each_child_of_node_scoped(dev->of_node, of_port) { + for_each_available_child_of_node_scoped(dev->of_node, of_port) { ret = apple_pcie_setup_port(pcie, of_port); if (ret) { dev_err(pcie->dev, "Port %pOF setup fail: %d\n", of_port, ret);