mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 09:42:19 +03:00
PCI: endpoint: Fix DMA sanity for Linux v6.11
The Tegra PCI endpoint DMA sanity driver build fails for Linux v6.11 because the 'core_init' callback was renamed to 'epc_init'. Update the driver accordingly to fix the build for Linux v6.11. Bug 4749580 Change-Id: I66a3c848f3f01b607d045c221bcc2ed21ac3df61 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3242701 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Srishti Goel <srgoel@nvidia.com>
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
// SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||||
* SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
||||||
*/
|
#include <nvidia/conftest.h>
|
||||||
|
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/msi.h>
|
#include <linux/msi.h>
|
||||||
@@ -349,7 +350,11 @@ 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 = {
|
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,
|
.core_init = pcie_epf_dma_sanity_core_init,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_epf_ops ops = {
|
static struct pci_epf_ops ops = {
|
||||||
|
|||||||
Reference in New Issue
Block a user