From patchwork Mon Dec 9 09:21:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 181001 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4098274ile; Mon, 9 Dec 2019 01:21:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxPkpZU0ryOsY/kknrOcJFKrQtNUqSARtgqDHrynxEV1Qh73eXmXCdiVBX8E1RntEIYbqj9 X-Received: by 2002:aca:72cd:: with SMTP id p196mr21736840oic.99.1575883294355; Mon, 09 Dec 2019 01:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575883294; cv=none; d=google.com; s=arc-20160816; b=JPZ3t6lliYqDVvbkf+6DnQHzb/G01vn1wnRqQlVYrFObvjkIX8zMw68621Wo8IWFCD nPvudNdnZwhWo4Y/4ssAwCLu1ZWWjNZMnt5EPmIe/6I+wOfdBzC/C4TMHSqsEewdHr98 HarBmER/CfYRaHcS4SeIcb7d5qCeJBOJLNGdKNR1dow6JWqx5eKB0EOtDPe5s8GCLMvB vcE8F6Ktyu+KigQUcjhlm1IipvNIJqy/CpS2aydz1x4HVm4N0xjLwqPBkPAE3rVDMFtc WAyoy6ihZ307+kExLJQw2mBIp3JMY0zSxdPZQrTHc/iDE0Jdb+28/vjUvd9z0vKWbBZJ ogRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=OE+CQaY8YINUAl14yThoqiQN60PdlpJALyII5dYryI0=; b=eKlka06w5A/ivHRHPsFqAdMVsLetqZzstoyfIeACIOp6poLAzfLAMZFT4YAx9FSm93 41ho/WGTjULBH6Z8q+ENWr+JTzQ4I3Q0zOr/hV7HyZ75CHh60Fi9sdq/oU36FNE+9gIm 38bXpHEo8KgSakcIjtZpmDDfdySFZqe9kXkqUKlmKdqbZySkXCRE1+6q2wolDpjwq70w VRedKKllWx/n50Xy4bes1lcS1VTqaU1XKq3aXCkIRdryeyGWe4ZYK8xmtF/tuHIbSJcH xWaqkv1uYaYs7iBoBK1OAE5JzuNH7dYn+3z9xr42J7eLKMle6hYpBYarvEP/CgzM7wq5 nL+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pSdh0Hcw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si5634492otk.179.2019.12.09.01.21.34; Mon, 09 Dec 2019 01:21:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pSdh0Hcw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727729AbfLIJVc (ORCPT + 27 others); Mon, 9 Dec 2019 04:21:32 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:49978 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727706AbfLIJVa (ORCPT ); Mon, 9 Dec 2019 04:21:30 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xB99LMCJ080999; Mon, 9 Dec 2019 03:21:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1575883282; bh=OE+CQaY8YINUAl14yThoqiQN60PdlpJALyII5dYryI0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=pSdh0HcwFe5UPzyR7XLR935NQiaefE9pxrgC7ov4I7AJP2++kvpTtY5jjClpvWc1z 1E05v/KVDYPevpFv4WEPkzBxfeuJO/dCL6Ugtm83IMPVemXMPod1wGrrizXRhUcTg1 0/ZlOmZsEZK+tRzZQs/iEbdkGWnPNfOVjRi2N+ic= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xB99LM8E006138 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 9 Dec 2019 03:21:22 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 9 Dec 2019 03:21:22 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 9 Dec 2019 03:21:22 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xB99KcdA087697; Mon, 9 Dec 2019 03:21:19 -0600 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , Arnd Bergmann , Andrew Murray CC: , , , , Kishon Vijay Abraham I Subject: [PATCH 12/13] misc: pci_endpoint_test: Add J721E in pci_device_id table Date: Mon, 9 Dec 2019 14:51:46 +0530 Message-ID: <20191209092147.22901-13-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191209092147.22901-1-kishon@ti.com> References: <20191209092147.22901-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add J721E in pci_device_id table so that pci-epf-test can be used for testing PCIe EP in J721E. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.17.1 diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index a5e317073d95..215f9b8432a3 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -64,6 +64,7 @@ #define PCI_ENDPOINT_TEST_IRQ_TYPE 0x24 #define PCI_ENDPOINT_TEST_IRQ_NUMBER 0x28 +#define PCI_DEVICE_ID_TI_J721E 0xb00d #define PCI_DEVICE_ID_TI_AM654 0xb00c #define is_am654_pci_dev(pdev) \ @@ -789,6 +790,11 @@ static const struct pci_endpoint_test_data am654_data = { .irq_type = IRQ_TYPE_MSI, }; +static const struct pci_endpoint_test_data j721e_data = { + .alignment = 256, + .irq_type = IRQ_TYPE_MSI, +}; + static const struct pci_device_id pci_endpoint_test_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_DRA74x) }, { PCI_DEVICE(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_DRA72x) }, @@ -797,6 +803,9 @@ 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_TI, PCI_DEVICE_ID_TI_J721E), + .driver_data = (kernel_ulong_t)&j721e_data, + }, { } }; MODULE_DEVICE_TABLE(pci, pci_endpoint_test_tbl);