From fc47fbcebac5ed1d89b54b8a985b5e6ea11e61bb Mon Sep 17 00:00:00 2001 From: Manikanta Maddireddy Date: Wed, 31 Jan 2024 19:19:27 +0530 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3067109 Reviewed-by: Nagarjuna Kristam Reviewed-by: Bibek Basu GVS: Gerrit_Virtual_Submit --- drivers/misc/tegra-pcie-dma-test.c | 10 +++++----- drivers/pci/endpoint/functions/pci-epf-dma-test.c | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/misc/tegra-pcie-dma-test.c b/drivers/misc/tegra-pcie-dma-test.c index 7dea5be0..3bf21153 100644 --- a/drivers/misc/tegra-pcie-dma-test.c +++ b/drivers/misc/tegra-pcie-dma-test.c @@ -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 @@ -291,8 +291,8 @@ static void ep_test_dma_remove(struct pci_dev *pdev) } static const struct pci_device_id ep_pci_tbl[] = { - { PCI_DEVICE(0x10DE, 0x229a)}, - { PCI_DEVICE(0x10DE, 0x229c)}, + { PCI_DEVICE(0x10DE, 0x1AD4)}, + { PCI_DEVICE(0x10DE, 0x1AD5)}, {}, }; diff --git a/drivers/pci/endpoint/functions/pci-epf-dma-test.c b/drivers/pci/endpoint/functions/pci-epf-dma-test.c index 477ace80..977d2bf4 100644 --- a/drivers/pci/endpoint/functions/pci-epf-dma-test.c +++ b/drivers/pci/endpoint/functions/pci-epf-dma-test.c @@ -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 @@ -297,7 +297,7 @@ static int pcie_dma_epf_probe(struct pci_epf *epf) epf->event_ops = &pci_epf_dma_test_event_ops; 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.interrupt_pin = PCI_INTERRUPT_INTA; epf->header = &epfnv->header;