Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6482814rwi; Mon, 24 Oct 2022 01:56:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7hyBXxL8VOg8f+RIFAXLJ7nOb92p9xcOuMOxX2bzkzndpaTv7Cs+4Fc91X3ujt3xoSCWXo X-Received: by 2002:a17:907:78d:b0:740:33e1:998 with SMTP id xd13-20020a170907078d00b0074033e10998mr27086712ejb.162.1666601791536; Mon, 24 Oct 2022 01:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666601791; cv=none; d=google.com; s=arc-20160816; b=IVreSJZlmPfweL616a4tiucUorKtjJm56HR7b8yLMK+OdhJ0tkPWURwxtV+DlXqUF8 AZeVfFlFKB1j9sPKC3y9GVtLyYjHLuPRfCLLA7QpUw2DZrf1+/PswsKO/RN2GgMh9uIG 35iXLW9p51mM4kuiv5FEcr/UTX6+3rhoIEerJEmPWsV7HA1NdzfgRV2uTYHht//3/k0/ dQxg9kqCWP1Ip2/tqy4Ew5oSi/7sa6C6u2YXyfheeHrk5VR65lNSAaZ/hlsjqRfj0W7D 7xBwaLihxYtI+Ip4dimjQRYqx1hEe/gOm/QhLkI8kI/fItuhPRXxyDI+LW+wooUjlYvG 8RbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=Ca2SlBb+oCFVhPJMig3EC5BwDT2x57boD25CeuYlGAY=; b=bqfqtrFcU49jb+urogCosdf6I/CgZ2GkRQHm7rfcuNgiTYdsbd7NHKVtx15vV+9gnn Ojsd7d1HXibOti1UMgzPAP1T2rBhreAW5TFqMI3hXcjnR/oSDexWVmCSwQfKf3L3ZmKv aDkUGHsg78D+KXJ7DTDypj38ekHPEfu00PFlqWdalxvY0B98Q4W3rLax8zxES0R4D6QP BzoRfHqY9D7yQu8oAf8JZebk21Sp8g0YKhSedF7tCPjMLwPLXTqPF67X4uMAl8WmI5n6 IKf6Ht0RjkUWQz0ollWLNmVQIsUZT7rov/FhTiEr4inmSaGTmrmve9ZafcJbyDZz+nUe 8dPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a17090666ce00b0078dce2b1985si24186139ejp.134.2022.10.24.01.56.05; Mon, 24 Oct 2022 01:56:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231132AbiJXI2u (ORCPT + 99 others); Mon, 24 Oct 2022 04:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbiJXI2R (ORCPT ); Mon, 24 Oct 2022 04:28:17 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6E5C50718; Mon, 24 Oct 2022 01:27:52 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id ADAF51B8F42; Mon, 24 Oct 2022 10:27:18 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 75B801B8F3B; Mon, 24 Oct 2022 10:27:18 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 0DD901834868; Mon, 24 Oct 2022 16:27:16 +0800 (+08) From: Richard Zhu To: l.stach@pengutronix.de, bhelgaas@google.com, robh+dt@kernel.org, lorenzo.pieralisi@arm.com, shawnguo@kernel.org, kishon@ti.com, kw@linux.com, frank.li@nxp.com Cc: hongxing.zhu@nxp.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com Subject: [RESEND v4 10/14] misc: pci_endpoint_test: Add i.MX8 PCIe EP device support Date: Mon, 24 Oct 2022 16:06:39 +0800 Message-Id: <1666598803-1912-11-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1666598803-1912-1-git-send-email-hongxing.zhu@nxp.com> References: <1666598803-1912-1-git-send-email-hongxing.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set the DEVICE_ID of i.MX8 PCIe and add i.MX8 PCIE EP device support in pci_endpoint_test driver. Signed-off-by: Richard Zhu --- drivers/misc/pci_endpoint_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index 11530b4ec389..e2687229955d 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -72,6 +72,7 @@ #define PCI_DEVICE_ID_TI_J7200 0xb00f #define PCI_DEVICE_ID_TI_AM64 0xb010 #define PCI_DEVICE_ID_LS1088A 0x80c0 +#define PCI_DEVICE_ID_IMX8 0x0808 #define is_am654_pci_dev(pdev) \ ((pdev)->device == PCI_DEVICE_ID_TI_AM654) @@ -980,6 +981,7 @@ static const struct pci_device_id pci_endpoint_test_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, 0x81c0), .driver_data = (kernel_ulong_t)&default_data, }, + { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, PCI_DEVICE_ID_IMX8),}, { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, PCI_DEVICE_ID_LS1088A), .driver_data = (kernel_ulong_t)&default_data, }, -- 2.25.1