nvscic2c-pcie: epc: Drop calling of error reporting for Linux 6.6

The API pci_disable_pcie_error_reporting() is dropped from
Linux 6.6. Remove the calling of this APIs for Linux 6.6
and later.

Bug 4374520

Change-Id: Iabb66dda70e6fe3a70be5ff14199b32b9c0ca3fa
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3014988
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-11-12 18:39:28 +00:00
committed by mobile promotions
parent 091c57a1d8
commit a1cc281c17
2 changed files with 5 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ subdir-ccflags-y += -DNV_UNEXPORT_FD_HANDLE_CONVERSION
# FB Deferred IO helpers name alignment # FB Deferred IO helpers name alignment
subdir-ccflags-y += -DNV_FB_DEFERRED_IO_OPS_RENAME subdir-ccflags-y += -DNV_FB_DEFERRED_IO_OPS_RENAME
# Drop the API for pcie_disable_pcie_error_reporting
subdir-ccflags-y += -DNV_PCIE_DIABLE_PCIE_ERROR_REPORTING_DROP
# Crypto driver has major change in it ops, skip it # Crypto driver has major change in it ops, skip it
export CONFIG_SKIP_CRYPTO=y export CONFIG_SKIP_CRYPTO=y
endif endif

View File

@@ -290,7 +290,9 @@ deinit:
pci_release_region(pdev, 0); pci_release_region(pdev, 0);
pci_clear_master(pdev); pci_clear_master(pdev);
#if !defined(NV_PCIE_DIABLE_PCIE_ERROR_REPORTING_DROP)
pci_disable_pcie_error_reporting(pdev); pci_disable_pcie_error_reporting(pdev);
#endif
pci_disable_device(pdev); pci_disable_device(pdev);
dt_release(&drv_ctx->drv_param); dt_release(&drv_ctx->drv_param);