]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: sg2042: Fix a reference count issue in sg2042_pcie_remove()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 29 Sep 2025 18:13:22 +0000 (20:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:32 +0000 (14:02 +0100)
commita43afb170963876684ac895c4ea1bdb2f2bbf978
treee335035eea3bddc28f18019c77cd687155c6cb75
parent12b413f5460c393d1151a37f591140693eca0f84
PCI: sg2042: Fix a reference count issue in sg2042_pcie_remove()

[ Upstream commit 932ec9dff6da40382ee63049a11a6ff047bdc259 ]

devm_pm_runtime_enable() is used in the probe, so pm_runtime_disable()
should not be called explicitly in the remove function.

Fixes: 1c72774df028 ("PCI: sg2042: Add Sophgo SG2042 PCIe driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Tested-by: Chen Wang <unicorn_wang@outlook.com> # on Pioneerbox.
Acked-by: Chen Wang <unicorn_wang@outlook.com>
Link: https://patch.msgid.link/242eca0ff6601de7966a53706e9950fbcb10aac8.1759169586.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/cadence/pcie-sg2042.c