From patchwork Mon Jan 16 05:41:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Zhu X-Patchwork-Id: 43978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1041626wrn; Sun, 15 Jan 2023 22:09:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXsKZdYBuCd53ry63l2YFifyc3vd9715dh9YerwZFQmsHtMqzZ9Hh50kG6okmQwXA7NE67QF X-Received: by 2002:a17:906:6dcb:b0:7c0:d60b:2887 with SMTP id j11-20020a1709066dcb00b007c0d60b2887mr77555822ejt.69.1673849340978; Sun, 15 Jan 2023 22:09:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673849340; cv=none; d=google.com; s=arc-20160816; b=Dp+t9cm7HHZ2QiMrRwQj+WMB/qB8tfjfa7zYVCkC3j94+950/sWDmEcX4BxDIK0yj+ f1UvRIn0L9nNky6Zaku+/nQGyZ6YtR7n3kCopXpFvIejw///vHcAzC0nkowteY1b1Phz ChovrJQtQ8Qpku7/YrA1XuCketZ3rsBJ4FeomVLGzKnqAwMimi2gfhS5Wnh58ms//0Tz EVpiLtg8YST7nZb9guX/BdRPq9vitgj5o2Vo45ITlc/rguA3RkYE/sUmGglQDLRav7x8 +fvkL2/YR0KfNq8BG7L4H5YtXssiJtAm4Db3eCRT9h79XaNNbPsef96SehpIjFaKTksq 3xvA== 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=e9IVpnOdxeQ2PEDdfrzkbsN1Y2tusm9SZnhMycrh9LvN42gP4x/U3G3akyW+6E5n8W ugpL69r49vdCW2KB9duJK+srJNSBl75Zm4rBD8MFJxTqicjUKToIErGzF2ehWO5TSSPH 8drjGaPQ1wRYD78TfGXM12ouorWsqkKAeSw08Q07BQ8VnhQugwFttoKnN2rePubZBYpM hK+AK2NjnK71UHY/ofXvcWt+sowlD2VosTeSeDypJdAg7UhHmNtOHL/yegT6e9D543uH 3CIxWVzDhKUIzS9KZlhbTwTtXfEDDEex0Cr0JOTxV4JnQvseYOz8N5JdYE8iKtcMwF1D IFWw== 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 i7-20020a1709064fc700b0084d34979424si31823792ejw.334.2023.01.15.22.08.38; Sun, 15 Jan 2023 22:09:00 -0800 (PST) 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 S231972AbjAPGGz (ORCPT + 99 others); Mon, 16 Jan 2023 01:06:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231952AbjAPGGO (ORCPT ); Mon, 16 Jan 2023 01:06:14 -0500 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35F4DB44C; Sun, 15 Jan 2023 22:06:08 -0800 (PST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A759A1A06C5; Mon, 16 Jan 2023 07:06:07 +0100 (CET) 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 6F59D1A06BD; Mon, 16 Jan 2023 07:06:07 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 9E009183ABF3; Mon, 16 Jan 2023 14:06:05 +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: [PATCH v5 10/14] misc: pci_endpoint_test: Add i.MX8 PCIe EP device support Date: Mon, 16 Jan 2023 13:41:20 +0800 Message-Id: <1673847684-31893-11-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1673847684-31893-1-git-send-email-hongxing.zhu@nxp.com> References: <1673847684-31893-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?1755158246681120334?= X-GMAIL-MSGID: =?utf-8?q?1755158246681120334?= 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, },