Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp128857ybk; Thu, 14 May 2020 18:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu7UTvlYNBLGQmxZsP06ryX0fZ3/jZ4KJgSc/mCj7E5kO5k6sAyWXYasZwodS8xcXfNZsE X-Received: by 2002:a17:906:1e47:: with SMTP id i7mr714548ejj.61.1589506205412; Thu, 14 May 2020 18:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589506205; cv=none; d=google.com; s=arc-20160816; b=FPrMmyWAz1KBmviWDXoLhp0dHBo4BV/+/tOv71NGdp6r5IN7n2WI2ef9cb4zRNcgGM mz2dQPr+Yo32/UB4KtXfLLF7Tpt6yb9SjBMjy8hMtEmeY6VCho8sVe9ZUalg2umn8+eJ eBO0rc4Yx9i+sOalrJN9Oyhc8Ewff89h5EmMszwRsb/f0epWg8UazI4GcdxVFpG2tGTF w9TCk1HtkMuDfmuz7Jn68Bdff7YVyb1NfOAaoEE1KOcfs/Hpm6yAz3K9IvxqP6bFaFn9 EeVlfD4AnVOlSTGwv7ZcqKGIszx7FTvu1/JPM44GA2uSCCHSxpruXIEOsYz+qlVBiKbV iQ/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Wsc4hMTnHuwhsi46+QqUDyrhQ0OtoDC7KhII4LKYNds=; b=DcGgXxh+kVZkgL+QiBf45LltO4cZHt4fzW99Hvdb+89Ejg3askhMCLBVTaApyPNfbO ojPX13N51CLA2Jw3wjVLrqwX+SoPpLVNPFvEeZ3fk2iI1cMEskaK4Kxmp09QItza+1X6 53RBd2fT+M7t2/gCrGJTqlkULeaNKDG3rvV2BoDLpifcwHDhNn5FSA6OM7BoDzFtOHrp rYAmgSPSCFKu/Q8vhgvaQnmmC3TQbnStAt+EXS6jU9LdzeU4k2vzeMVLGr0HQxPH2SYH 3iJO2gfZShqZEps/lP+iv8s9VAiywIDJcdriKl+s3xzKl1d+Dqg/lznPjVT8P0U5E4aL DvZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si333933ejk.350.2020.05.14.18.29.42; Thu, 14 May 2020 18:30:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728018AbgENWDu (ORCPT + 99 others); Thu, 14 May 2020 18:03:50 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:49331 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726126AbgENWDt (ORCPT ); Thu, 14 May 2020 18:03:49 -0400 X-IronPort-AV: E=Sophos;i="5.73,392,1583161200"; d="scan'208";a="47110216" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 15 May 2020 07:03:47 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id C74C741043A0; Fri, 15 May 2020 07:03:45 +0900 (JST) From: Lad Prabhakar To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann , Greg Kroah-Hartman Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Lad Prabhakar Subject: [PATCH] misc: pci_endpoint_test: Add Device ID for RZ/G2E PCIe controller Date: Thu, 14 May 2020 23:03:29 +0100 Message-Id: <1589493809-2602-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Renesas R8A774C0 in pci_device_id table so that pci-epf-test can be used for testing PCIe EP on RZ/G2E. Signed-off-by: Lad Prabhakar Reviewed-by: Yoshihiro Shimoda --- This patch is similar to [1], except device-id is now added in same file. [1] https://patchwork.kernel.org/patch/11471421/ --- drivers/misc/pci_endpoint_test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index ef5a1af..41c4097 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -73,6 +73,8 @@ #define is_am654_pci_dev(pdev) \ ((pdev)->device == PCI_DEVICE_ID_TI_AM654) +#define PCI_DEVICE_ID_RENESAS_R8A774C0 0x002d + static DEFINE_IDA(pci_endpoint_test_ida); #define to_endpoint_test(priv) container_of((priv), struct pci_endpoint_test, \ @@ -942,6 +944,8 @@ static const struct pci_device_id pci_endpoint_test_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_AM654), .driver_data = (kernel_ulong_t)&am654_data }, + { PCI_DEVICE(PCI_VENDOR_ID_RENESAS, PCI_DEVICE_ID_RENESAS_R8A774C0), + }, { } }; MODULE_DEVICE_TABLE(pci, pci_endpoint_test_tbl); -- 2.7.4