From patchwork Wed Oct 4 09:41:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Buddhabhatti, Jay" X-Patchwork-Id: 148212 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6f87:b0:13f:353d:d1ed with SMTP id tl7csp2498392rwb; Wed, 4 Oct 2023 02:43:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAa+NAKKIcIIMn5c5MHMG1hR4uLXsCfDt0VZ3dSFBiELnbmfMi/RsHWRf9XPiCviv3HyCW X-Received: by 2002:a17:902:bf49:b0:1c6:112f:5d02 with SMTP id u9-20020a170902bf4900b001c6112f5d02mr1728171pls.55.1696412630995; Wed, 04 Oct 2023 02:43:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696412630; cv=pass; d=google.com; s=arc-20160816; b=QCZDVRjYflPMGHCNcoKlJqhleA3gcQnzvZuO/cJbu5X+UHyEbM59vjBiWSmBQkMYOb FHxSlYcGHAcE3tbbakDfdVYo3ZDH6QOu/dwK8iy0bQLQioxSp9BFDqaCRx319WYXV/ll ya+EZvEjP02KF0voFW2Tzw205MAPVfwjRvcyeZr+ESnUOBmal6gTAqJtqMvIaQWIOnWw c2QJuGD91uiPp//H+l8U6xFXD5GeLMJWDY1Jq5FwKj9kB0EBu7t8IeM5LhzlOR+CKajt Aa1kAzHqTskFTeZH1pYhRshwYRIBCTlqgvyjJHpb1b3E5Ph1D2UZ2CwDLJxB3LGrmx73 /IRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1wY+XKMOzMftdW+wGm79wKtIRAsDu0sgkE4NmaF2aPc=; fh=OuU1HFJpcPD++FxvCYF0jPyLbYe5vBK7LllcrNKODlM=; b=ooEymx2ncE3OJ/vvTbAj8ZgPGWZK1npigkjzHLdT+kKO2cNkp7UJ5jjSybn9q66YEc nPMFhgorLN7VQepcLZdl5IMUSDFjhOohfTsDeuW6Cd8XsTdL3E9RfIal+SEZQDx2K1TI dbtKNOXhL/BjbhEmMvmU9rLta1bs9V1XQw5/Gdfjpwprm+N/nypTyxsU4Ovr6gRNYxi3 SvUqN/AwWGqRw9vyxbLPQZI6bB3UVj2rWdbOXOSDRTz/z/NpO1HQ4aEInIHMIHzT4Wrq 7giL9+u3r6edhYpoy6QlE6yAjWJA1s2heZLj6aU7cNXDk1YwMe+zqBce3expNjucBq0v W62A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SARugKS3; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id p8-20020a170902e74800b001bf01fee6bcsi3643302plf.610.2023.10.04.02.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:43:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SARugKS3; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2492681A0590; Wed, 4 Oct 2023 02:43:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242085AbjJDJnS (ORCPT + 18 others); Wed, 4 Oct 2023 05:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242046AbjJDJnG (ORCPT ); Wed, 4 Oct 2023 05:43:06 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2080.outbound.protection.outlook.com [40.107.220.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 364BAA7 for ; Wed, 4 Oct 2023 02:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uq0IK4KlJcyVGS+pIkw/+KlOwhR8fqMKE0IGOehBmdabsz85JP+NzfYCS3tY1RR2qb4UQdz5ZA2aCKRQviixBsXG/g7cTJkSyuN2sZV7FVSqhpgGECub91kj/ozz2JyJOyw05NdKCI02GOGA4Jy/R67oWNkd0Q5Joe1MukvqLvstVnkx4jRPQfEzeQFMGfeUvZvRiPdO27IqBFF3ZYK+WydP/j5AouhiOe8Ojgii3f22OmgA9qgj1A3BbwIATEyPsssYwljbgZtHuHoTYkQbiB11nMaUiPijKLhqs8AEJ8TgWrBlaXdwHGQWTEvEEMhg+mhN1GW7QTTYxbvmK9LMvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1wY+XKMOzMftdW+wGm79wKtIRAsDu0sgkE4NmaF2aPc=; b=Epf3Z+KyDSg+QjCQdgZBdqMtL1Gq5oH86rIFI7CpFaqoeLFy+udvGkpE++h/xVpJSIC6h8A59GbTVCWGdxTx6IIicAwPiNZH3yRNXk0oSGSGrxFOtQ5wAgT+TnMv7P9aXTn5EKdXlsaH3dzfIZH/14TZNDG3y8fCT+KSz/FegRYILrfEjcbnP20b5rxR+Xv3xx1+Svu4B+Jb/RRCO7yrfdSz4sXSZysuV0wgLcqnyE+Xlwd/h43rrXTqasurbGubyqpEaxida9RRlYxb7VvS/A9YO8lmYlSkV3TMczvm8SDkjrhrddEb476uRX7ZRJhqGJ1V9/2PrLizVdcJfuVxqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linuxfoundation.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1wY+XKMOzMftdW+wGm79wKtIRAsDu0sgkE4NmaF2aPc=; b=SARugKS3Ji9wTl4Y60iXBvm8WNN+S/B99ppxiJFsiclk31Y2FGa0LHWvaoBm4E5AOPyjJK3fTrWD8ZGuFr09wJQWkLy85FwhZHFmX8ZhxkDWU5jpHxG4ffOg9sqt5f7xUDigbhKumc1ipcyq1Aiu+qnSf5QnaxBvRz/CRvmHlf8= Received: from BL1PR13CA0248.namprd13.prod.outlook.com (2603:10b6:208:2ba::13) by SA3PR12MB8045.namprd12.prod.outlook.com (2603:10b6:806:31d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.35; Wed, 4 Oct 2023 09:43:00 +0000 Received: from BL02EPF0001A103.namprd05.prod.outlook.com (2603:10b6:208:2ba:cafe::cd) by BL1PR13CA0248.outlook.office365.com (2603:10b6:208:2ba::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.26 via Frontend Transport; Wed, 4 Oct 2023 09:43:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BL02EPF0001A103.mail.protection.outlook.com (10.167.241.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Wed, 4 Oct 2023 09:42:59 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 04:42:57 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 04:42:57 -0500 Received: from xsjarunbala50.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Wed, 4 Oct 2023 04:42:56 -0500 From: Jay Buddhabhatti To: , , , , , , , , , , , CC: , , Jay Buddhabhatti Subject: [PATCH v2 3/6] firmware: xilinx: Register event manager driver Date: Wed, 4 Oct 2023 02:41:13 -0700 Message-ID: <20231004094116.27128-4-jay.buddhabhatti@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231004094116.27128-1-jay.buddhabhatti@amd.com> References: <20231004094116.27128-1-jay.buddhabhatti@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A103:EE_|SA3PR12MB8045:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c9f2c04-7ae5-449b-590e-08dbc4be4bd8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bo8OYgmZYAx5pR764qMAXPKuILQik+JviCQseHZ4kWOesAcZf+7NeKEUYjKgy7qx08PoUzb+ZL4DmWAlWLz0M9P951Xx//mp+rkcAjghvR1UbYLrWMCPqTCnRyXuJWZOJZQZcoZI5fRrhmnz4adXaGjcWLYjChiLKC+suZW9JumWGoDZMn6fuU2vUa2nw3rrSflVC1V0nrAJSY6kR19O76VRLiDhL8c3S/TS6ncbSUujVOUvljD5+i66ZMQYfOkbcvf1sPNfZf7tG4pKach8l9aBkG6ybVUaXMBmBnWxoDcFsbwsAHvcnKBwC7tVuXp2KCLmKHksQGUp1vLCaWziaIPYP6LdEFS+H5PxbrRqMCOFGnZ2X+18b5NuIGRKKjNnG+00n8+wW8YwjcpUGZIQZcTVvGAkWgb4KcQ+AgfvY/6s8s4Mpt5P7S0AWlPENgtolPJFGXXSHmY85JOwr0ZbGuUZTo8Gsgqw+sn6qvQ5RFNgIFM4KeL1mD7yJD/quNc9qXQJac2ZYMtft9Q4QWircrOb2VRUkEf+dqZZw9nZV9CMRHu+2twvrbSM/0BiGk512gtIfK2GGahcDU6cpdCNUY3cxlqWqPo62G24DqZNOuCkgdmplZgd1gW3tnb18pDgTDMF6t42U9P5cU0mmwvOyupkotgnOCF2VmiZAFP9LlolBOn8CwvXGPlof39/PV2HjYZuJuojmHBbD7oLAbbox92Q64DUAG1yI4RFvGOKX6BsEY4bT//8KKBC97oZhdsvUOBow/fZUESLfhOcoLr3drx1Api4dDPOsot27nhU0ac= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(376002)(136003)(396003)(346002)(39860400002)(230922051799003)(1800799009)(64100799003)(82310400011)(186009)(451199024)(36840700001)(40470700004)(46966006)(40460700003)(336012)(40480700001)(86362001)(70586007)(54906003)(41300700001)(110136005)(70206006)(316002)(478600001)(2906002)(8936002)(8676002)(4326008)(5660300002)(44832011)(83380400001)(36860700001)(921005)(47076005)(81166007)(82740400003)(6666004)(356005)(2616005)(426003)(1076003)(26005)(36756003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 09:42:59.8044 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c9f2c04-7ae5-449b-590e-08dbc4be4bd8 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A103.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB8045 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:43:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778817570887194706 X-GMAIL-MSGID: 1778817570887194706 Use family code in order to register event manager driver for Versal and Versal NET platforms, instead of using compatible string. Signed-off-by: Jay Buddhabhatti --- drivers/firmware/xilinx/zynqmp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 5f40288f69a9..00ea2508f692 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -1953,7 +1953,6 @@ ATTRIBUTE_GROUPS(zynqmp_firmware); static int zynqmp_firmware_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct device_node *np; struct zynqmp_devinfo *devinfo; int ret; @@ -2016,14 +2015,12 @@ static int zynqmp_firmware_probe(struct platform_device *pdev) zynqmp_pm_api_debugfs_init(); - np = of_find_compatible_node(NULL, NULL, "xlnx,versal"); - if (np) { + if (pm_family_code == VERSAL_FAMILY_CODE) { em_dev = platform_device_register_data(&pdev->dev, "xlnx_event_manager", -1, NULL, 0); if (IS_ERR(em_dev)) dev_err_probe(&pdev->dev, PTR_ERR(em_dev), "EM register fail with error\n"); } - of_node_put(np); return of_platform_populate(dev->of_node, NULL, NULL, dev); }