From patchwork Mon Oct 24 08:06:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 8238 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp320237wru; Mon, 24 Oct 2022 01:29:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/v/3uqqbpszPF3qqf1dnHWRNk1/h6/li6JmEc0cn/w8R7sBNn1NofhFIKX2qWXuKc2bQA X-Received: by 2002:a17:902:f684:b0:17f:95cc:af8 with SMTP id l4-20020a170902f68400b0017f95cc0af8mr32307769plg.91.1666600170570; Mon, 24 Oct 2022 01:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666600170; cv=none; d=google.com; s=arc-20160816; b=1BndMMufaVaa8e65OXj/SI6GDdLkY2G7yL+I17Hl+ujbQy1SfvFX2sONu8pt3+BsBC 6WIIQd81d3UEv4xflG42ZZBSTLRrejxrh/KPESpKNVpwaZSmj8aUcEmqLHN9O/KS/u4g Nk/KQeZkuqDpcmx/0dmMrzet1C7OuIxgA2R4BFZjxS3A1eBW/qDjCEJYodlU2xE48K6s Dy7IMXqwQI6mSY7pz31Q7tCzGiY6OjvjwtXmEAHcRgSMW+g/R8INb4eCqunjRpp0gA/w LmmTleQVkBD9iAJmwJul70mQupfDzWWVlzxlyDd3AAipWSXh4aySvvw7oCgfMkDO7zhs iO0Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a63d352000000b0043158b8ca77si33509695pgi.123.2022.10.24.01.29.17; Mon, 24 Oct 2022 01:29:30 -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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747556940427235907?= X-GMAIL-MSGID: =?utf-8?q?1747556940427235907?= 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, },