From patchwork Wed Jul 8 09:30:17 2020 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: 235058 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp265400ilg; Wed, 8 Jul 2020 02:31:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9DPPVufSUxWFdyAIQnRhQDsN4YdtLUAgvRs8dVY0PMALhlzY8a08h0MKV8V5yTrxXrZ+j X-Received: by 2002:a17:906:5203:: with SMTP id g3mr49562523ejm.58.1594200687398; Wed, 08 Jul 2020 02:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594200687; cv=none; d=google.com; s=arc-20160816; b=aug0A7lIfmAQVGDyB3ug9uG1AOeXLAmxnjmSMxtKz+QLKzxWL3//4uIi9yAobBvLra P3HHZOwnmJSqdeVg+GnTWwYPAbVAw/r3Dj/SoXY8f7+c1lsIIP5SuxJAsvvIGAb3fO8l XlvXvp7gbuvbLBO2lSrvQr+2F+qcYfLmIM3/Ek4SFQ0OdfXd8AxBI06o8h6ZLPCClU1X pkIkNzkdA4UXrbvXZEAPY/9xiTv8hAf/Lh4Yq1+jvMOBSCaV0K7rVRDKUcljBy/tF2al Z7YowboyK7BP3STbbeTOAMgLZIArTooCw3Iabm5hOVmvD/9mgRCrlO+xE26EBTJcEN1V K7qA== 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=7OcnyXAqbvLTfoWs7cVYpAjSlZ1UufTOUaO13t5B4CY=; b=CKVxqX3HOTScR/C1mrfKASQgWYGhDXxNCp+acescFQaPgKQ9uNWV906mecbY68vRGO v0dI1fGuAAg7GXrgtGZIm8hhNhwmQxKEu2XjOi/AWiDlTwOjaScpOa0SB9DPkJsMJEr9 6Zz6oWGsSRZ/BwYvgFT9MV5Dx0aWe0VqN3ut88QqrEPQLjKhh4WRgFegLCIROI2t48cR f53g1eKJNzwSNZ3RHw37Ec14eoiI8tjpcga8bUggkfV/mHDD9YIk/HaCoHcEMzhO6DLA WMOjDcSL0Y3ecKSlRZsjoBUF1lZPdQeQfYzHDaXYLAs4J43nXeuUL0YITjn8EiS6IPjA fj+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aTR2N0PO; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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. [23.128.96.18]) by mx.google.com with ESMTP id q20si8677018edw.521.2020.07.08.02.31.27; Wed, 08 Jul 2020 02:31:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aTR2N0PO; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 S1728516AbgGHJb0 (ORCPT + 4 others); Wed, 8 Jul 2020 05:31:26 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39054 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728550AbgGHJbY (ORCPT ); Wed, 8 Jul 2020 05:31:24 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0689VDUu109637; Wed, 8 Jul 2020 04:31:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1594200673; bh=7OcnyXAqbvLTfoWs7cVYpAjSlZ1UufTOUaO13t5B4CY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aTR2N0POKEBdioajxGaza1m3y89NwEVdHaGq2mh3d3/c8axJ/1QdHfG0eXnmnZfA+ x7KSnEeNC/Q2Q0ZSDI7paX7WaS5RYcofRWtdURUmAq2IyrbkKz82ATVVkNMvfJaokW 2N1qorqJ6ueo5KuOKXsXMFlEquxWtrvtPrAWN+WU= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0689VDWL096644 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 8 Jul 2020 04:31:13 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 8 Jul 2020 04:31:13 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 8 Jul 2020 04:31:13 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0689UJEU098512; Wed, 8 Jul 2020 04:31:10 -0500 From: Kishon Vijay Abraham I To: Tom Joseph , Bjorn Helgaas , Rob Herring , Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann CC: Greg Kroah-Hartman , , , , , Subject: [PATCH v6 13/14] misc: pci_endpoint_test: Add J721E in pci_device_id table Date: Wed, 8 Jul 2020 15:00:17 +0530 Message-ID: <20200708093018.28474-14-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200708093018.28474-1-kishon@ti.com> References: <20200708093018.28474-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add J721E in pci_device_id table so that pci-epf-test can be used for testing PCIe EP in J721E. Reviewed-by: Rob Herring 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 41c40971979e..e060796f9caa 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -68,6 +68,7 @@ #define PCI_ENDPOINT_TEST_FLAGS 0x2c #define FLAG_USE_DMA BIT(0) +#define PCI_DEVICE_ID_TI_J721E 0xb00d #define PCI_DEVICE_ID_TI_AM654 0xb00c #define is_am654_pci_dev(pdev) \ @@ -932,6 +933,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), .driver_data = (kernel_ulong_t)&default_data, @@ -946,6 +952,9 @@ static const struct pci_device_id pci_endpoint_test_tbl[] = { }, { PCI_DEVICE(PCI_VENDOR_ID_RENESAS, PCI_DEVICE_ID_RENESAS_R8A774C0), }, + { 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);