Revert "PCI: endpoint: Fix DMA sanity for Linux v6.11"

This reverts commit 2f3e25b601c241bf50a30b07a0aaa64413c57925.

Reason for revert: Changing this to tests-oot directory

Bug 4865361

Change-Id: I19002466616450cf073e2a66a1dd27da9e3409a2
Signed-off-by: Srishti Goel <srgoel@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3246783
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Srishti Goel
2024-11-12 04:41:49 +00:00
committed by Jon Hunter
parent 806b6cec9c
commit 64e63a9ca3

View File

@@ -1,8 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#include <nvidia/conftest.h>
/*
* SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#include <linux/debugfs.h>
#include <linux/module.h>
#include <linux/msi.h>
@@ -350,11 +349,7 @@ static const struct pci_epf_device_id pcie_dma_epf_sanity_ids[] = {
};
static const struct pci_epc_event_ops pci_epf_dma_sanity_event_ops = {
#if defined(NV_PCI_EPC_EVENT_OPS_STRUCT_HAS_EPC_INIT) /* Linux v6.11 */
.epc_init = pcie_epf_dma_sanity_core_init,
#else
.core_init = pcie_epf_dma_sanity_core_init,
#endif
};
static struct pci_epf_ops ops = {