From nobody Sun Feb 8 05:29:33 2026 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 1885512CDAE; Fri, 2 May 2025 19:00:44 +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=1746212445; cv=none; b=jD7RdEJWSNYccAlYUBcklvVfFL2htOv1cY7TzI5fYtgRMDJYNfQFdV+M5dbWoUds6U1q3nxKmEkxapMaV7aMsqxzlpJTBDZdkFLdeGEFjtAOhV8EXDXb0vg5H/o72u8NrC/B9sE5iFQ3jVBM9Zwb31HqPcDoqIExSHwZR+Q/K5U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746212445; c=relaxed/simple; bh=vXaXCEnytVJuFEeQkEbX7/pKBg2a7GeFNnk0YyHXzz8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Tkyxr94VSin21pSIo92BbQY1XHzClTGv5au5c8Dl2JDanmffsvNkUHRFCDa8VpEXtzeh5ZmMiezUPwXFQB253G2eoV7t0QxoiNq/QlYzIrr8dE7m+zZxtuSzfnfmQ92Mn9Co+TMTdsGLAmzMzVpN+QKs3Lifs8l4uO8y1YGjO1A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LWtQ38pH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LWtQ38pH" Received: by smtp.kernel.org (Postfix) with ESMTPS id A02CEC4CEED; Fri, 2 May 2025 19:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746212444; bh=vXaXCEnytVJuFEeQkEbX7/pKBg2a7GeFNnk0YyHXzz8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=LWtQ38pHo/Yrv8BQE28Ry2jM8EPgFF1ojO+brYE244/p5eNOGlyJhFQvbZgIudlLk SL+j/AKe/TtTzF0qbA5AGNBZoivreYwDtIyiPXe2AZzWI0EcgWxejHiAC4qmzw2Rcq aQu0b7MBgz1fl22MsHTqRmaVZMIyeIvwE3de5vRoIiDBaWXoJzXUYLVnGoSqTqjx6x orcfqpZFnvwI1nmg/WqM3pI/hZiXXnTwsRvZMaMmN6mhSzgdnNc1T2AFDT2BkGkw1s lYlyuBdqDsPlWRBL3vHjfoPAGU3qdImYMlIHBt8HvNbgvmOxHMFFrrNnHf3gBq8eGD Ic7kL4WMcCdeA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C049C3ABB0; Fri, 2 May 2025 19:00:44 +0000 (UTC) From: Aaron Kling via B4 Relay Date: Fri, 02 May 2025 14:00:29 -0500 Subject: [PATCH v3 1/4] irqdomain: Export irq_domain_free_irqs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250502-pci-tegra-module-v3-1-556a49732d70@gmail.com> References: <20250502-pci-tegra-module-v3-0-556a49732d70@gmail.com> In-Reply-To: <20250502-pci-tegra-module-v3-0-556a49732d70@gmail.com> To: Thomas Gleixner , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, Aaron Kling X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1746212443; l=788; i=webgeek1234@gmail.com; s=20250217; h=from:subject:message-id; bh=WmKEd3TO9tPKzFNggls+Iy5PtWJNMd2mTPJMCu0pPuI=; b=5j2exqFnp877XdJQRSpPH1+pl+krTkOiipDlqB1XtSl0j/ACPysLiY9RIWoW1Ior+5VwHyQWD fkDQkbov+V3B3j8ZePdrczxtPlJqWbji8Hjns5IP/C56zBrmuRIJUfY X-Developer-Key: i=webgeek1234@gmail.com; a=ed25519; pk=TQwd6q26txw7bkK7B8qtI/kcAohZc7bHHGSD7domdrU= X-Endpoint-Received: by B4 Relay for webgeek1234@gmail.com/20250217 with auth_id=342 X-Original-From: Aaron Kling Reply-To: webgeek1234@gmail.com From: Aaron Kling Add export for irq_domain_free_irqs() so that we can allow drivers like the pci-tegra driver to be loadable as a module. Signed-off-by: Aaron Kling --- kernel/irq/irqdomain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index ec6d8e72d980f604ded2bfa2143420e0e0095920..36cd79a8a2ce960b07b03c40067= 343ec8f632452 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -1890,6 +1890,7 @@ void irq_domain_free_irqs(unsigned int virq, unsigned= int nr_irqs) irq_domain_free_irq_data(virq, nr_irqs); irq_free_descs(virq, nr_irqs); } +EXPORT_SYMBOL_GPL(irq_domain_free_irqs); =20 static void irq_domain_free_one_irq(struct irq_domain *domain, unsigned in= t virq) { --=20 2.48.1 From nobody Sun Feb 8 05:29:33 2026 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 189401B393C; Fri, 2 May 2025 19:00:44 +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=1746212445; cv=none; b=RuhXZW21bm3mNGlA68HBpHviSIh2B11j2Yw1AfS0LUXxDYiWb2wY0QbvH3VlecIO/3fb+ZU43QlF5vLXQILHFwZo4mt8kJIkgyytqzF8pzx9WnGhS3VVR8bgtEfg7wCzGxxfDJWUMYLg483ekFXglEKjAwW2Ld0icieryPgHXko= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746212445; c=relaxed/simple; bh=EM6ElMfbJozbwi36h7rM3Qknfs+VrjA5AmrU9DsF36s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nWwgvHWbJQUuUr45EoeRhzMfDwloSxbbUY4PeBD6AbxfPreEdEdKjkwpEQ+B704+pEgZUisujfH9jLVuPF3ttbWj8QqK0h/Nl5kF5cnoibGjmDvF4GfImUNlbSJj0M4VMHMoAPwZ2VkSwZO2XuPpPgaIrXj94p9M70IPVSu4Ycc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VYk9O1ao; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VYk9O1ao" Received: by smtp.kernel.org (Postfix) with ESMTPS id A607DC4CEE9; Fri, 2 May 2025 19:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746212444; bh=EM6ElMfbJozbwi36h7rM3Qknfs+VrjA5AmrU9DsF36s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=VYk9O1aoPmu0AGsHsWYGcOvFTNkG5k5HBdSxIUgQ23nsQNxBzq3joz4pEGPw6mKxO JDybJA8k62Lol1jHhn881y1JWwbMpAX/6GBmbqy0fOhH01Saj9u62opFFwhyop8aUf VG6zeavbM4q44h2RqPRZFWEF7bAdR2FD7rBK98GboC0oH3FBgnEIw4v3S0VtazC/j1 4GWK74R9qB71A4Doq+S9/UKRWCFzxoLQAmH/0ssO5I/szHmqpdOIf9Kx60muo5Bj8h Bo4ZoVJXVXphVo89bafFJCONslJZl/MLaS5qMgwNp/A4kt/tnsFaauDaaKAfHFPxoe 2heui5+ACIEkg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9791FC3ABAA; Fri, 2 May 2025 19:00:44 +0000 (UTC) From: Aaron Kling via B4 Relay Date: Fri, 02 May 2025 14:00:30 -0500 Subject: [PATCH v3 2/4] cpuidle: tegra: Export tegra_cpuidle_pcie_irqs_in_use Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250502-pci-tegra-module-v3-2-556a49732d70@gmail.com> References: <20250502-pci-tegra-module-v3-0-556a49732d70@gmail.com> In-Reply-To: <20250502-pci-tegra-module-v3-0-556a49732d70@gmail.com> To: Thomas Gleixner , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, Aaron Kling X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1746212443; l=830; i=webgeek1234@gmail.com; s=20250217; h=from:subject:message-id; bh=xVyHjzSr7wHYXMLNGdp54ReYaOCWfcLl7SzVd0MbeFs=; b=SqXjWEAxLjXZ8IA642yInZJFT5zVd1nLIm+wRIuqLxf1ecpSS54HDkd1vt24WdaR5cLTNfshs VuuD0ygtyLJB4jBitbzfc2U5jSgSfnU+RV8dUr8yaJ//yilQWNe53IS X-Developer-Key: i=webgeek1234@gmail.com; a=ed25519; pk=TQwd6q26txw7bkK7B8qtI/kcAohZc7bHHGSD7domdrU= X-Endpoint-Received: by B4 Relay for webgeek1234@gmail.com/20250217 with auth_id=342 X-Original-From: Aaron Kling Reply-To: webgeek1234@gmail.com From: Aaron Kling Add export for tegra_cpuidle_pcie_irqs_in_use() so that we can allow drivers like the pci-tegra driver to be loadable as a module. Signed-off-by: Aaron Kling --- drivers/cpuidle/cpuidle-tegra.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpuidle/cpuidle-tegra.c b/drivers/cpuidle/cpuidle-tegr= a.c index b203a93deac5f378572be90e22c73e7417adb99e..aca907a62bb5de4ee4c71c1900e= acedd4b90bc0a 100644 --- a/drivers/cpuidle/cpuidle-tegra.c +++ b/drivers/cpuidle/cpuidle-tegra.c @@ -336,6 +336,7 @@ void tegra_cpuidle_pcie_irqs_in_use(void) pr_info("disabling CC6 state, since PCIe IRQs are in use\n"); tegra_cpuidle_disable_state(TEGRA_CC6); } +EXPORT_SYMBOL_GPL(tegra_cpuidle_pcie_irqs_in_use); =20 static void tegra_cpuidle_setup_tegra114_c7_state(void) { --=20 2.48.1 From nobody Sun Feb 8 05:29:33 2026 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 188F51AA1DB; Fri, 2 May 2025 19:00:44 +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=1746212445; cv=none; b=QzedvakBL9wQIjP49SjzLuJ8OUVfJKAmGjo469YrLJnAdUIztBYXlYDqb9InDdpIhzQZCAL0a/XkUV0KDpYIPIYZc3nSyCtitg2V1DAavZUxD7tX4z0E2eeP4qQ/roX+HEoQvRD8snrC+4nTmXPLcYCYfTDi3xfeh9csaTwMiVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746212445; c=relaxed/simple; bh=0kd70aDRShcJ+DgP88hGfkolBgZTKMYLZwsSsPfBMro=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=swEcHaR3Tyu+oTz4lj0X3Zbp6oQQGkTQB2jCCn6TcfvyZDsPt2/sQL3PQfUDB6E9YUgMbo0qZ1c8AQilFcW4LSMIQh8Umu35Ydv3Jbc7r3nVUL+tUkN9l2xLvTPXTfFO9JCdexPXryIOfbOfAwcYrci7rXuzFLNtOhrfrKicwyk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Rm4rEMps; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Rm4rEMps" Received: by smtp.kernel.org (Postfix) with ESMTPS id AEFB8C4CEEF; Fri, 2 May 2025 19:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746212444; bh=0kd70aDRShcJ+DgP88hGfkolBgZTKMYLZwsSsPfBMro=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Rm4rEMpsdLZGkjUckftL5noeRRyE3cY6vhhIxPEIYMEGl6IM7G0WYyJyC15uLRezs r1fPrZZ/eypIuyjeUbjM54YwwghgnxjaGlqiRkn0uGQf+hxTfF21RoMO6XrlLeJMrW RaLJGlZIxGn6glFAA7/5y9vqgAVdLqHGLsKvGr9Uspko1+29pa+5hBhFCwoTQhQsWW 7GaKwa8l1nzGhgFR8qHvomuSfUSXS5QtkaGm2IHQo0HoOe3z1I1WXOcVmTIWwmq+lz JhE2l19GJhqmMFVOSD2bNL86C27RyGGx/Hq1R3FIBaOi2HjVuVdorptHtVtd9BLHHO 4r3SgQQ/cKYRg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A44C0C3ABB6; Fri, 2 May 2025 19:00:44 +0000 (UTC) From: Aaron Kling via B4 Relay Date: Fri, 02 May 2025 14:00:31 -0500 Subject: [PATCH v3 3/4] PCI: tegra: Allow building as a module Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250502-pci-tegra-module-v3-3-556a49732d70@gmail.com> References: <20250502-pci-tegra-module-v3-0-556a49732d70@gmail.com> In-Reply-To: <20250502-pci-tegra-module-v3-0-556a49732d70@gmail.com> To: Thomas Gleixner , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, Aaron Kling X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1746212443; l=1592; i=webgeek1234@gmail.com; s=20250217; h=from:subject:message-id; bh=ediBwXdejZJpog3kftYSmvTQosQLVWrtV7PiuRz9nKw=; b=fyglllN1LQYdTPKsWYdjPwSOuvVIV4KKD8qg16D+m+tf7wg1uxixsLEoVSt6kfqC6bVH7RkdF eJc4roXh56OA3OSFyYtJtmoQOpNwkVRFxpGPXAYe5fmMsQgBaDCXRUv X-Developer-Key: i=webgeek1234@gmail.com; a=ed25519; pk=TQwd6q26txw7bkK7B8qtI/kcAohZc7bHHGSD7domdrU= X-Endpoint-Received: by B4 Relay for webgeek1234@gmail.com/20250217 with auth_id=342 X-Original-From: Aaron Kling Reply-To: webgeek1234@gmail.com From: Aaron Kling This changes the module macro back to builtin, which does not define an exit function. This will prevent the module from being unloaded. There are concerns with modules not cleaning up IRQs on unload, thus this needs specifically disallowed. Signed-off-by: Aaron Kling --- drivers/pci/controller/Kconfig | 2 +- drivers/pci/controller/pci-tegra.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig index 9800b768105402d6dd1ba4b134c2ec23da6e4201..a9164dd2eccaead5ae9348c24a5= ad75fcb40f507 100644 --- a/drivers/pci/controller/Kconfig +++ b/drivers/pci/controller/Kconfig @@ -224,7 +224,7 @@ config PCI_HYPERV_INTERFACE driver. =20 config PCI_TEGRA - bool "NVIDIA Tegra PCIe controller" + tristate "NVIDIA Tegra PCIe controller" depends on ARCH_TEGRA || COMPILE_TEST depends on PCI_MSI help diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pc= i-tegra.c index b3cdbc5927de3742161310610dc5dcb836f5dd69..1539d172d708c11c3d085721ab9= 416be3dea6b12 100644 --- a/drivers/pci/controller/pci-tegra.c +++ b/drivers/pci/controller/pci-tegra.c @@ -2802,4 +2802,7 @@ static struct platform_driver tegra_pcie_driver =3D { .probe =3D tegra_pcie_probe, .remove =3D tegra_pcie_remove, }; -module_platform_driver(tegra_pcie_driver); +builtin_platform_driver(tegra_pcie_driver); +MODULE_AUTHOR("Thierry Reding "); +MODULE_DESCRIPTION("NVIDIA PCI host controller driver"); +MODULE_LICENSE("GPL"); --=20 2.48.1 From nobody Sun Feb 8 05:29:33 2026 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 188182F2E; Fri, 2 May 2025 19:00:44 +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=1746212445; cv=none; b=fgxG3H3ktHYjAd0FkPuzlxEJOJZLwNrNpx/lwXSbWZw+Cgs/uO0VqGGlQXGgns6zLocC5KP5FPaVKQwi0Tk1P74PLzDY5itTtUarg33k9XRwv1VBf0GuACf0D0kdDB0aCFSUkBfrRQ8kJfA/x94yrRbPtbpThN8hdxLn8isb0pQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746212445; c=relaxed/simple; bh=LRTzkroHpUqBBS66F+/5iJ/bP7dLfCm5QyQ+g9hrpLk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jYP+IdN6Q26kLppO/T7rNO3fOTLbw7jqXpSXFG0SpGCqI3pWyIGR2+F5xW1q1GXrJAH6lCoMmcfmbHPJ7+3ePZyfgg+BGlhfx+RT49+W+OIdIfi5wA7GbCcwlWARbBnIKTy4SDVVypqaS+ssHgbzXD6lhhL1dXgABO678qWUR/g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RVCxA7Fi; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RVCxA7Fi" Received: by smtp.kernel.org (Postfix) with ESMTPS id BE755C4AF0D; Fri, 2 May 2025 19:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746212444; bh=LRTzkroHpUqBBS66F+/5iJ/bP7dLfCm5QyQ+g9hrpLk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=RVCxA7Fi2kC70zTldFhPrK12iBLCevvXON41AsQDhiT1fNWYAKJzGGtG2vHmHgeQz kjELgmD5yS/RwhIz6ZsP4qOmmrnBCBAI42KTEdcI36beuHzh6rrohOww0jH7VCepXq niPchHhpAF6xaYAvHHj71qbjmogoNEPbk5PS/ZTMFIQPFLJc1/b/7cjvbZq5TS1z3B raweVQ0sMEm2uUVth8Puo6kpl5vNGooYCbCs5hfBrUX4Am9pMc3eK51s2xuQPhU2Df W7P1tgBzpvX8TxFZ3rsLRfHw6ga1iEdjKpHK53zdXnOwsfm3v+nNaelfk5T9Es7/1Z iyvrzzxvfnmKA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B00CDC3ABAC; Fri, 2 May 2025 19:00:44 +0000 (UTC) From: Aaron Kling via B4 Relay Date: Fri, 02 May 2025 14:00:32 -0500 Subject: [PATCH v3 4/4] PCI: tegra: Drop unused remove callback Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250502-pci-tegra-module-v3-4-556a49732d70@gmail.com> References: <20250502-pci-tegra-module-v3-0-556a49732d70@gmail.com> In-Reply-To: <20250502-pci-tegra-module-v3-0-556a49732d70@gmail.com> To: Thomas Gleixner , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, Aaron Kling X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1746212443; l=1781; i=webgeek1234@gmail.com; s=20250217; h=from:subject:message-id; bh=miAFNHWEF9RJxGC8gWXehC/2+WRlc/Ou80W+mmEfiFc=; b=Waqua4Tb7qWUjc1jh0Wel81cwJ28ZdHn3RtzwEJsCdSru2Wde97OIA4t1VBCcM2Gt/PaW64r4 m3PfBEnaE9fCLOlIe+Ks563X1TV6HHbYThvPTaXeCeMIL7ObcY64WHr X-Developer-Key: i=webgeek1234@gmail.com; a=ed25519; pk=TQwd6q26txw7bkK7B8qtI/kcAohZc7bHHGSD7domdrU= X-Endpoint-Received: by B4 Relay for webgeek1234@gmail.com/20250217 with auth_id=342 X-Original-From: Aaron Kling Reply-To: webgeek1234@gmail.com From: Aaron Kling Debugfs cleanup is moved to a new shutdown callback to ensure the debugfs nodes are properly cleaned up on shutdown and reboot. Signed-off-by: Aaron Kling --- drivers/pci/controller/pci-tegra.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pc= i-tegra.c index 1539d172d708c11c3d085721ab9416be3dea6b12..cc9ca4305ea2072b7395ee1f1e9= 79c24fdea3433 100644 --- a/drivers/pci/controller/pci-tegra.c +++ b/drivers/pci/controller/pci-tegra.c @@ -2674,27 +2674,12 @@ static int tegra_pcie_probe(struct platform_device = *pdev) return err; } =20 -static void tegra_pcie_remove(struct platform_device *pdev) +static void tegra_pcie_shutdown(struct platform_device *pdev) { struct tegra_pcie *pcie =3D platform_get_drvdata(pdev); - struct pci_host_bridge *host =3D pci_host_bridge_from_priv(pcie); - struct tegra_pcie_port *port, *tmp; =20 if (IS_ENABLED(CONFIG_DEBUG_FS)) tegra_pcie_debugfs_exit(pcie); - - pci_stop_root_bus(host->bus); - pci_remove_root_bus(host->bus); - pm_runtime_put_sync(pcie->dev); - pm_runtime_disable(pcie->dev); - - if (IS_ENABLED(CONFIG_PCI_MSI)) - tegra_pcie_msi_teardown(pcie); - - tegra_pcie_put_resources(pcie); - - list_for_each_entry_safe(port, tmp, &pcie->ports, list) - tegra_pcie_port_free(port); } =20 static int tegra_pcie_pm_suspend(struct device *dev) @@ -2800,7 +2785,7 @@ static struct platform_driver tegra_pcie_driver =3D { .pm =3D &tegra_pcie_pm_ops, }, .probe =3D tegra_pcie_probe, - .remove =3D tegra_pcie_remove, + .shutdown =3D tegra_pcie_shutdown, }; builtin_platform_driver(tegra_pcie_driver); MODULE_AUTHOR("Thierry Reding "); --=20 2.48.1