From 001dbdb2fce9dfca90f545dc6064071015648a2b Mon Sep 17 00:00:00 2001 From: Nitin Kumbhar Date: Thu, 27 Dec 2018 12:36:55 +0530 Subject: [PATCH] gpu: nvgpu: fix tegra_pcie_detach/attach_controller API for K4.14 For K4.14, the pci driver is enabled with CONFIG_PCIE_TEGRA=y. The check of dummy APIs doesn't capture this config. Fix this to use tegra_pcie_detach/attach_controller() APIs from the pci driver. Bug 200480179 JIRA NVGPU-1100 Change-Id: I3a2b4f243dce6ead1174b12bc8ce2ffb6700c86b Signed-off-by: Nitin Kumbhar Reviewed-on: https://git-master.nvidia.com/r/1982549 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/pci_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/os/linux/pci_power.c b/drivers/gpu/nvgpu/os/linux/pci_power.c index 91ac82034..cd352cc1c 100644 --- a/drivers/gpu/nvgpu/os/linux/pci_power.c +++ b/drivers/gpu/nvgpu/os/linux/pci_power.c @@ -380,7 +380,7 @@ static const struct file_operations debug_power_stats_fops = { .release = single_release, }; -#if !IS_ENABLED(CONFIG_PCIE_TEGRA_DW) || \ +#if (!IS_ENABLED(CONFIG_PCIE_TEGRA_DW) && !IS_ENABLED(CONFIG_PCIE_TEGRA)) || \ !IS_ENABLED(CONFIG_ARCH_TEGRA_19x_SOC) || \ LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0) void *tegra_pcie_detach_controller(struct pci_dev *pdev)