PCI: Fix PCIe Endpoint device IDs

PCIe device ids 0x229a and 0x229c belongs to Root port, so this driver
is binding instead of pcieport. Tegra PCIe Endpoint production device ids
are 0x1ad4 and 0x1ad5, correct the device ids accordingly.

Bug 4477934

Change-Id: Ia86c4dcc6b4527e984a473c941713ef58dd6f74d
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3067109
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Manikanta Maddireddy
2024-01-31 19:19:27 +05:30
committed by mobile promotions
parent 2337fafd34
commit fc47fbceba
2 changed files with 9 additions and 9 deletions

View File

@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0-only
/* /*
* PCIe DMA test framework for Tegra PCIe * PCIe DMA test framework for Tegra PCIe.
* *
* Copyright (C) 2021-2023 NVIDIA Corporation. All rights reserved. * Copyright (c) 2021-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/ */
#include <nvidia/conftest.h> #include <nvidia/conftest.h>
@@ -291,8 +291,8 @@ static void ep_test_dma_remove(struct pci_dev *pdev)
} }
static const struct pci_device_id ep_pci_tbl[] = { static const struct pci_device_id ep_pci_tbl[] = {
{ PCI_DEVICE(0x10DE, 0x229a)}, { PCI_DEVICE(0x10DE, 0x1AD4)},
{ PCI_DEVICE(0x10DE, 0x229c)}, { PCI_DEVICE(0x10DE, 0x1AD5)},
{}, {},
}; };

View File

@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0-only
/* /*
* PCIe DMA EPF test framework for Tegra PCIe * PCIe DMA EPF test framework for Tegra PCIe.
* *
* Copyright (C) 2021-2024 NVIDIA Corporation. All rights reserved. * Copyright (c) 2021-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/ */
#include <nvidia/conftest.h> #include <nvidia/conftest.h>
@@ -297,7 +297,7 @@ static int pcie_dma_epf_probe(struct pci_epf *epf)
epf->event_ops = &pci_epf_dma_test_event_ops; epf->event_ops = &pci_epf_dma_test_event_ops;
epfnv->header.vendorid = PCI_VENDOR_ID_NVIDIA; epfnv->header.vendorid = PCI_VENDOR_ID_NVIDIA;
epfnv->header.deviceid = 0x1AD6; epfnv->header.deviceid = 0x1AD4;
epfnv->header.baseclass_code = PCI_BASE_CLASS_MEMORY; epfnv->header.baseclass_code = PCI_BASE_CLASS_MEMORY;
epfnv->header.interrupt_pin = PCI_INTERRUPT_INTA; epfnv->header.interrupt_pin = PCI_INTERRUPT_INTA;
epf->header = &epfnv->header; epf->header = &epfnv->header;