From patchwork Wed Jul 22 11:03:16 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: 247008 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp427851ilg; Wed, 22 Jul 2020 04:04:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmisMYiFUD455FyVQTAcu4DaPJoNrDyHTvQX9hYhcXSuaO8xEO5AiEI5xt11d2921IO+5G X-Received: by 2002:a17:906:d963:: with SMTP id rp3mr28694199ejb.54.1595415885272; Wed, 22 Jul 2020 04:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595415885; cv=none; d=google.com; s=arc-20160816; b=aa9Y4WzR8+I8eKDtf2Or65RYGANLdykMA9OwAbgcZk1KxAkUAz7rBPP4czDUGckOMA 8tAn+TyD5upmqFpFcXaCwCzuVcDRHJUOozsOPD+NGRybwqRPfOftpRB5bfRcv9FurDhx jEA1MWmGL+u7nTHiy7IDWqG6c5utHvuYUieyKEiAcvJuWar8ZsQSHodBFdMBn4+8M3U1 poKnoxFk/42hzTF4fzFm0FLXV0ttz6F8TNu1snMZ1j56IeD7JTTXAXFMhlv++MPOj8gp bJRFPrRsJYA+cZXn1CBCCgCTU1Zv4diQSn0iduzZFDkC1nnS3r3kRZdY64ZBZQBTJL8t IRqg== 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=QxHrpJ9SnF6oOHJ6c30WHCvfM5Bzbzpx6RQyZ3Y7LYLkE459g4Epyadzh9ubUmBHFA PWwTbFpdqiBYEr6WF+DslgnUhISOCrRQtwW54wWtpkA2iEE07lRzYlxtdqU+KhRWjrcp oF9wyyZDIZAN4dpMMkbrDj3invXPOx6wQdHXaMP4cSiBEr9V1f6BO+7fJ3L9WezVFZjF sXhTzzPd3YXp3pfKdaFvp8PSsrnGAm+k9jGLksxtAEH1QJrlGU4knkWIqHG+QwZst84S NoD3RvxTwlnyY7ELGlt9J1fE0dssNEQ8A+msxXoFrtg3TA/OF8iJ2o1BD82YEbVMjJLc RMZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VsREedDg; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 g26si14016011edu.253.2020.07.22.04.04.45; Wed, 22 Jul 2020 04:04:45 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=VsREedDg; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1732262AbgGVLEa (ORCPT + 6 others); Wed, 22 Jul 2020 07:04:30 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:51530 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726821AbgGVLE1 (ORCPT ); Wed, 22 Jul 2020 07:04:27 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06MB4Gjs036565; Wed, 22 Jul 2020 06:04:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1595415856; bh=7OcnyXAqbvLTfoWs7cVYpAjSlZ1UufTOUaO13t5B4CY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VsREedDgc0HKAg6sGjP8rVFh1iJjfyBhIpgRp8rpaP83ZFTQTVcrCMylTRSHxgaNy CFXUCqfpMdOzhl4AYKfRK6n12bRe9AktDym8dafHkpO8Lr1a6ni43dSpbX9WqBNpFb oiMgb01PLyjPZDOdhPvnGNJgPfU480I/rHjbgcgQ= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 06MB4GA3020614 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 22 Jul 2020 06:04:16 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 22 Jul 2020 06:04:16 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE112.ent.ti.com (10.64.6.33) 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, 22 Jul 2020 06:04:16 -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 06MB3IFm078616; Wed, 22 Jul 2020 06:04:13 -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 v8 14/15] misc: pci_endpoint_test: Add J721E in pci_device_id table Date: Wed, 22 Jul 2020 16:33:16 +0530 Message-ID: <20200722110317.4744-15-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200722110317.4744-1-kishon@ti.com> References: <20200722110317.4744-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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);