From patchwork Thu Dec 26 12:20:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Visavalia X-Patchwork-Id: 13921294 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2083.outbound.protection.outlook.com [40.107.220.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 233051D358B; Thu, 26 Dec 2024 12:20:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735215638; cv=fail; b=c6Oae5PjsVia5Hmuth481joxpcVG8ZsopT4CYp8+e2m7gKWPHTbMUsSwJBdYrmYdB+AlIwMGWLXgKT2cBCvlP4e8mAIAqyx4Ut/FXTqf/W0vLsiFVfUZos8cfKgcTZIY7xMRDGoI1Rq5nRkR2Adn1L8h1gFoPDQH1hyc0ioT8Fw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735215638; c=relaxed/simple; bh=4dK7t0fgyX1luITkUTjDlw0nC4mc/cCGGQJuLhAtsBY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cdNVTgpobSOSQuqi2p8+4hF6SzKbvB2yPB8ethjoLoJdrOkPswrXFQ3cm1x7tHJiQnYlODZ/CbHgizt1u4UFKINk3PC/jlXVvneB/NMiv3GdcBeV5q3XJvKmWI1OmGexJwfrz3XzvpWDvPPKyzo7vhF0nkBW3eaNGo7fumzXUgc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=T46aSBla; arc=fail smtp.client-ip=40.107.220.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="T46aSBla" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KbTD0E9tN7mjdw5P/vWdCqczPubRldb0cTNA85nAGZZVQheTxVexfDJzUsK7KTfH1V1kxccYIaBmvKvnKoTvG0gABmOSwPLOG+r/QuKjoXf1Lz3vl8yOKIoj11cmMZBtsIRA13sCG/VZLCybMdLREWpN4UR+qoxWM8wx04B+cIg1mNyWdY+UT61EQXr8vUcd6khxcifbxqDKiDZ+/0a6qiN41I0AIF1t5Vx20ruCxfnc7Obw1jg2x8XeUfiskQcr7utpR7mY73tbZXqKQpQ7XZFMIbSHpYrpsAwUCG92SPKiM+QzAnFLBLND/43SAOHqCmwLkPMiRGNoebyBmEAuSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=GVFD/D+DtQfgF1702wWPEIXtuc9PEWxzd3ob5QLZJX8=; b=LxaR80wse1qoMpwCiqPqitoarAc9o4NmI1qxzcbfj68W3j1B/40i0K/3Vui0sSXsIkoFuVP993XmfwUmJBLvV7d2sctD7rEre/IupR6yeFVFEcjRm2s+BtzYZobTB1Jpuf3brQ2U4IpiT6XBM086bTSSFgC9wDs2d/iE8DWYrHkBm0tCQYhcys6nouON/6xwWr0acLVmp65oEFBHM+SrUUJk1fLFHi2vpDQJKozDhiiTFvjBsdvGkXgtzYyFihQqQBEnVJ5TUWGaIrdxxDuo5hX/upr4+5Oa3Zjh3gqHkBt7kMWTkDidtzRmClhqw5OVZMd6+e1qUVBh4VloIEjm4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=baylibre.com 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 (0) 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=GVFD/D+DtQfgF1702wWPEIXtuc9PEWxzd3ob5QLZJX8=; b=T46aSBla+Zc1BK5cYXTyRXhsVlQW8cuBc+kJavVI89f0qYcLKR8dyj/020W8HoHTYayDjVBNCKp1FEPhqXdzcFZbKl1rZsiDY+2mEgFqbbPYx9/u9ikMeobdP82g3PapMaq5bpUjKB3kHeZXkckLeBGOz6y0TyjHkPWWLXulweM= Received: from MW4PR03CA0244.namprd03.prod.outlook.com (2603:10b6:303:b4::9) by DS7PR12MB5839.namprd12.prod.outlook.com (2603:10b6:8:7a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.21; Thu, 26 Dec 2024 12:20:30 +0000 Received: from SJ5PEPF000001EF.namprd05.prod.outlook.com (2603:10b6:303:b4:cafe::cf) by MW4PR03CA0244.outlook.office365.com (2603:10b6:303:b4::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8293.16 via Frontend Transport; Thu, 26 Dec 2024 12:20:29 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SJ5PEPF000001EF.mail.protection.outlook.com (10.167.242.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8293.12 via Frontend Transport; Thu, 26 Dec 2024 12:20:29 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 26 Dec 2024 06:20:28 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) 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.39; Thu, 26 Dec 2024 06:20:27 -0600 Received: from xsjssw-mmedia4.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 26 Dec 2024 06:20:27 -0600 From: Rohit Visavalia To: , , , CC: , , , , , , Rohit Visavalia Subject: [PATCH 1/3] clk: xilinx: vcu: Update vcu init/reset sequence Date: Thu, 26 Dec 2024 04:20:21 -0800 Message-ID: <20241226122023.3439559-2-rohit.visavalia@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241226122023.3439559-1-rohit.visavalia@amd.com> References: <20241226122023.3439559-1-rohit.visavalia@amd.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001EF:EE_|DS7PR12MB5839:EE_ X-MS-Office365-Filtering-Correlation-Id: d1d4180f-9d0f-43a4-18da-08dd25a7afc4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: DGLbCja8kD95pVHFe3d+a3vTz1/Ex8cPdbU6iatidhCC3SRIpJzDrz9U6TUVF32upUHoVFb1TqRhKhgZFDfBZ78+ZoHdfq/fQnfIiAvmyuwzhlZ9hxpjFZC08Z1DeWVsjV6rFEJqb3b2SSJECNkNXLVHL1jTPL+rQVc3ZrFlRj4X8jdBHduLyAIpMLZ23Q6IkYXR1FIRuEFArYN/kUXJORv/ZW4hPn7uYhGo4AqDsyxK5O5I1QJf1C44jl2k66dW5qZCBaKXPpuRw9NZmCliW42y7m1Lipqn1XVHVShK9Byzm3ZZzRqeYeZzQ1ByGT5ykW7XY8/u58+/ZCy8DmBceo/nPED71R5Y2xWPxDwHaHj000FTqC2lFVhft+j0gDyNC7mpCWjdyMvpqzb4Eas1oveA163MzQUlC9WfBZw9vY4TCFuhIfRvK9YA5Iynfkv+xutPEnuKtqlBKTh3eHDMGZq2yxR7eAUdgAcvK/Fd6P8ofRFuiG03f3VAgA2iu0+CCxVBQNvUARYPYwCcT5DV4OVVJRZGsQ1F++/5EWzxd9cS/afK6PXZlH3HYam/OYqse5LCTDkw0NkHIgcJGDmbiAxRkFWdaDbGIgoppmqEOeCxQ5v+EfOBIkFU7xukN7izqqUmoeUXsgE9aD5JKt3mu2kHLSJbKVfGe8bUJ8PvBPYMO5pw8Fnj6klOo4lQggdFi6QrzeuK4nH5FXigra6HAwwuCMFlFelz5Y/eWGChdu63u+1Z/S2qlzZJNpIqYUzb8GL47P2eD3W+RbLYBG/Mfd6dEBiW0RIUP/d0OhbjJmuRlbgDVpu1dYVUaig+BLVF4gQ/islL97qfd5LyM+afp+b6pANS+jRCVfGuMKc4eFRbK73+YqI35a1kioo9F1uTmWpBnSbLN84fR+Uzr1UlMIk/lD6qiCCPkF2fF5edmYZW/PiaoZtP/B0GsRtG1KbuNqBXXOnkYUYPc8jpoHEpGXxs1bGU/G2H2mUAjZ/XgMiJgKQE4HYxhinwWUshLZzbt15m50GO7jz60U7x1c/PPi56dUVs0mZVbadenBtXon8rSjzyQdl33c/uWlvbCnqP+Jeyf//cEGmrnZp9M792mi5vwh2FN1V4yJbhC4SOEbMbGa/xlHCqc9LJW5/nskobiHVzu60GB7XnGAZcm4n2jJXsBd00IRBRjHa5tbWXo0OotG6Ndf0cTfsk0pqsJk8z9UVfzxO6/mnIf3NsnmfuzlzaEJh4WPlE6EpAFL6tZy37TdDguY+f56kfn9P9B7cuttm9aNQZJSWl+ElrTrKSu0DB/f0ju747Zult5mOMElvCxMNGzI4znnUIwWOh47sU57FKz4ZtrRGic9O4aHE7eWvkoT02QZ0iSpYPlH9LG7a2SjiDgcg/Hay9DO8gHyEXVvhGYnu+9XH6TRLsQMwla8y/34bw0yl595tZPaRnei000Xeij+uO+y5Qxk/M9DTtW+NIdpXNOkptoYvbQVHUfw== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2024 12:20:29.3546 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1d4180f-9d0f-43a4-18da-08dd25a7afc4 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001EF.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5839 Updated vcu init/reset sequence as per design changes. If VCU reset GPIO is available then do assert and de-assert it before enabling/disabling gasket isolation. This GPIO is added because gasket isolation will be removed during startup that requires access to SLCR register space. Post startup, the ownership of the register interface lies with logiCORE IP Signed-off-by: Rohit Visavalia --- drivers/clk/xilinx/xlnx_vcu.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/clk/xilinx/xlnx_vcu.c b/drivers/clk/xilinx/xlnx_vcu.c index 81501b48412e..f294a2398cb4 100644 --- a/drivers/clk/xilinx/xlnx_vcu.c +++ b/drivers/clk/xilinx/xlnx_vcu.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -51,6 +52,7 @@ * @dev: Platform device * @pll_ref: pll ref clock source * @aclk: axi clock source + * @reset_gpio: vcu reset gpio * @logicore_reg_ba: logicore reg base address * @vcu_slcr_ba: vcu_slcr Register base address * @pll: handle for the VCU PLL @@ -61,6 +63,7 @@ struct xvcu_device { struct device *dev; struct clk *pll_ref; struct clk *aclk; + struct gpio_desc *reset_gpio; struct regmap *logicore_reg_ba; void __iomem *vcu_slcr_ba; struct clk_hw *pll; @@ -676,6 +679,24 @@ static int xvcu_probe(struct platform_device *pdev) * Bit 0 : Gasket isolation * Bit 1 : put VCU out of reset */ + xvcu->reset_gpio = devm_gpiod_get_optional(&pdev->dev, "reset", + GPIOD_OUT_LOW); + if (IS_ERR(xvcu->reset_gpio)) { + ret = PTR_ERR(xvcu->reset_gpio); + dev_err(&pdev->dev, "failed to get reset gpio for vcu.\n"); + goto error_get_gpio; + } + + if (xvcu->reset_gpio) { + gpiod_set_value(xvcu->reset_gpio, 0); + /* min 2 clock cycle of vcu pll_ref, slowest freq is 33.33KHz */ + usleep_range(60, 120); + gpiod_set_value(xvcu->reset_gpio, 1); + usleep_range(60, 120); + } else { + dev_warn(&pdev->dev, "No reset gpio info from dts for vcu. This may lead to incorrect functionality if VCU isolation is removed post initialization.\n"); + } + regmap_write(xvcu->logicore_reg_ba, VCU_GASKET_INIT, VCU_GASKET_VALUE); ret = xvcu_register_clock_provider(xvcu); @@ -690,6 +711,7 @@ static int xvcu_probe(struct platform_device *pdev) error_clk_provider: xvcu_unregister_clock_provider(xvcu); +error_get_gpio: clk_disable_unprepare(xvcu->aclk); return ret; } @@ -711,6 +733,13 @@ static void xvcu_remove(struct platform_device *pdev) xvcu_unregister_clock_provider(xvcu); /* Add the Gasket isolation and put the VCU in reset. */ + if (xvcu->reset_gpio) { + gpiod_set_value(xvcu->reset_gpio, 0); + /* min 2 clock cycle of vcu pll_ref, slowest freq is 33.33KHz */ + usleep_range(60, 120); + gpiod_set_value(xvcu->reset_gpio, 1); + usleep_range(60, 120); + } regmap_write(xvcu->logicore_reg_ba, VCU_GASKET_INIT, 0); clk_disable_unprepare(xvcu->aclk); From patchwork Thu Dec 26 12:20:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Visavalia X-Patchwork-Id: 13921295 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2054.outbound.protection.outlook.com [40.107.95.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 910E01D5146; Thu, 26 Dec 2024 12:20:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.95.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735215640; cv=fail; b=f0lTEp77G9qzI2G3xeYC+oiKE0pCn172bT5boH7CLG/1O87WlGCuBGuXoIJ4U6MpGU3V6eU3tiAVadtMbF4cBnQ20TQSVNp0j2H8HOwWPRIO71gDQEk2Vx04vt1aDJf++HWXCxMwngPCE7NN/P2XawOJr7y3lBJAKzkipiC97nE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735215640; c=relaxed/simple; bh=MY5RODbprPcJZ7riTWfPVBZ+B912sxrw2r0SiKQXYAU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lUihg4SMZihRac7JXlmyQEVn/JlgCVK1Iql5yOIs1WtA7nBZIezijf2XXMiGPWO273/ufsKz6N+ti/BCG827UjomwimMLfRNyUKDDNXskIMy5MZVaPHho0YwD7ykPP7vXwDyDaNlilrrAqZ1kO5PDTfUZ92oupZMK+dpW4VdQ2Q= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=WJZ6b3dx; arc=fail smtp.client-ip=40.107.95.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="WJZ6b3dx" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RwRTlrSsCIdBQDM/qPkFlN0JQpBU9pOkCpB2v9713wvAKYaRcSG8RhEESI8FJXGfJuiOzjCV+dnVn7DHBb1CK8som3waPz1QuEmz29zzaDDdo7fkl/mWhz5NeYSgXToRNJxEJw5NWsgsnDMt6FvFcZS7Oj2TdPwOIKqHqFMldhnNG7OI+GpnYKe4BwqJ8VKutZz8E9puVLQFHc9+DGE5Li8FymleQXOQnqcM1TNaqH4uo3j81H0F/j1kycG0MBqk+x7EDvNYgD/OC1WjFAgOklXM/srdw4NQBei6gG+6KL/D5zH/oy4O696foVggFknW0hXDkRKfIvy504bpbmDLvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=TSLEd1amywedVVw1F+Hwve/g5m/GjYaGpQXr/MuFVRM=; b=ZhFv/y5rwrldFUFlUSAtc+wDMZG5/Lx/HxJ8PtRlN6iwqUDfFyIxO7qIg2L3yZOIbyU1U6NB3nDFR9RDXYC+5FOzn9et/y5teUTJ4iYhuhc3whSAVJIboCc0HQBoJCWR8NkQWikTmi6aA/4t6NsDI8YdRLdkduj2iltf1fZsQNVPh2ye5776Vwo5cDfDbJVDqHfImMFis4srztuyXfwDAjSUfRM44ifWnJuq4s0VxUZjB75ZbDrmfzcsNwRlV/tBMQChqmmKN/CRTV3EtXi+DtHclDyWNkNccyy0e01v5BDgjpFH97IOQEwQipAZ00bohlYBWjZr2VhRJzZx3aYuGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=baylibre.com 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 (0) 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=TSLEd1amywedVVw1F+Hwve/g5m/GjYaGpQXr/MuFVRM=; b=WJZ6b3dxYYpJQThvrnz7mNWLbG7ztzbSdlFDvrwgMIKF6w9oXsq1HYbsFDBNyMwAov32u4MdOxiGRZUHcxN21c/4+RmEkI3u/+KDIVKMMHIplxk7kESz13OIIbWYWUpOMqYyCKnOjX3tr8jQ4jCjg+6flfWG8Jd2Dc1EYw3A3Ro= Received: from SJ0PR05CA0180.namprd05.prod.outlook.com (2603:10b6:a03:339::35) by SJ0PR12MB6854.namprd12.prod.outlook.com (2603:10b6:a03:47c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8293.15; Thu, 26 Dec 2024 12:20:30 +0000 Received: from SJ5PEPF00000206.namprd05.prod.outlook.com (2603:10b6:a03:339:cafe::b1) by SJ0PR05CA0180.outlook.office365.com (2603:10b6:a03:339::35) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8293.15 via Frontend Transport; Thu, 26 Dec 2024 12:20:30 +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 SJ5PEPF00000206.mail.protection.outlook.com (10.167.244.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8293.12 via Frontend Transport; Thu, 26 Dec 2024 12:20:29 +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.39; Thu, 26 Dec 2024 06:20:29 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) 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.39; Thu, 26 Dec 2024 06:20:28 -0600 Received: from xsjssw-mmedia4.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 26 Dec 2024 06:20:28 -0600 From: Rohit Visavalia To: , , , CC: , , , , , , Rohit Visavalia Subject: [PATCH 2/3] clk: xilinx: vcu: don't set pll_ref as parent of VCU(enc/dec) clocks Date: Thu, 26 Dec 2024 04:20:22 -0800 Message-ID: <20241226122023.3439559-3-rohit.visavalia@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241226122023.3439559-1-rohit.visavalia@amd.com> References: <20241226122023.3439559-1-rohit.visavalia@amd.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF00000206:EE_|SJ0PR12MB6854:EE_ X-MS-Office365-Filtering-Correlation-Id: 56f510e5-ac90-4da1-1ab0-08dd25a7aff7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|376014|1800799024; X-Microsoft-Antispam-Message-Info: Y1a7F9nnCFt50MNFPnNctHdqGP/GhsMr9BchgimrB4oo4yN3dm3s/cHVfxnm2uLC9kX0jBHXrY9yLccd47lp/lNVFbFjJV9Wa4QjKSGS1qLV6WxU4MJtxAIrpl048UOVl1EFK+hFLGAIFHWXpwhl7PBmCYurppXAg/QKoD/hkwv7cM8lFjuJJQPiQlFSQBNQ5rpCGP+8ywqBJhysErQKyEXtBPnK34yNV5oOJdhn494ZZcHJJUYxBhboHJT0tygwrKXelwgBGlQe4aExsuNqNRXFLeGWTtaiM12OaJiZzZ0Al+tFo4ljVvlRR4PWOFaiJuZvQnLClJCcPpgVsKkKYoL2T4yehqH9pfCCBqadTbJ9lIFGq4PP5ybEHaVdQ5Y51LAjNVHwkyBTbw7UBJ2zQJXt7WZLkZnmgfXb2kg3j8mNbJAyc297WKhD9xnjrja8hJ6qpH73Qw7vsIFBOwTryI1IwAFmOqPMjN4F4Eg+QqsF0P9/zH2qUir3jJ30UewKfxmNKDhCd+L6UgL7EghEL6Kz3gwD+hQqNpq178ZSHlPD0rpFKT/4BNT1R6My+e3f+77jGDdT+ck9de1j/V+0kLcp2YRaJsJ1Tpt28lUqxY95m0HCYI/e7l/KbJw6UNyJwEnAy9LZsm/BgiMZdb4WqveubuwG1ZR42kBb01zxNpC8JZKCNovUUgjMXf4wndlRc5R+cSd9Ca5+4Mil3WcqSRDUS2VRLRZk1Gd7kBghuTBPeSt6YWo0z56nRXWdnNJnyOByQD5aSX8FJLpZbvwMMMifM/hXh9lWwEiBQfOcVZL6MJqTQ2mYBNIWwzDKULOG+awQAjLQeI72KhRSwGOO65jC8ZxsWoblnFTFaT3pbIRRx2i3m47Og6zDXrLI8LVDHbyfxWlLtrGUqNXW7DUEWVsQEqJXteNN6otKGav76mYzEFMeeJ6bHm5Q+6ajpsdFRaKsa0Bb9wI+5DB7HNA3IKpXtMkV3qLdUU0OcwfcanIK4+bW1WM5anrdyi7ncFwEHn4xGw76++rcXjJboGMmkvNgb4KOZwRA5V7N1V8SQtnXrRV+HqOe1cpfRR/TYYfz9s3BK3N8H5WsjJuvbx59RT00reqO3ghYxx2c4nBpYGaB53OMG7EbDNCbT1Extbfw59yCeiNq9aNBoeXDLUGcXbuBT3cFBF/NoE8nlLh0kgETsnrNozLrqyJr236nw2kbTUbBfBxm+rk9qPzDvn/6CNohHnGyRP2hm0DGgH6P79VCxZjCiAXOWfqn5ud8djdyJei/Rig19lXOQ8C0xNqSi3wLfelqPVev4uIyEiKDd6t6dpIinScO6PSze3CxdVott/7KKpjv2OHhnsmvQlUO7yjEmJcWdYLOWoV0q/TPwlLgrtN30S65n496gxTbrP2y2TyucxT1zTM9livkkotybpQRtXiD4q8Ln5gxvqBZgk4SvvUYJq8kM0fVLfWqeW+HNEZENpgHaqDj0EorGCF+PRYJfQAIxWr2fAvGxWP2s1M= 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:(13230040)(36860700013)(82310400026)(376014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2024 12:20:29.6889 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 56f510e5-ac90-4da1-1ab0-08dd25a7aff7 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: SJ5PEPF00000206.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6854 CCF will try to adjust parent clock to set desire clock frequency of child clock. So if pll_ref is not a fixed-clock then while setting rate of enc/dec clocks pll_ref may get change, which may make VCU malfunction. Signed-off-by: Rohit Visavalia --- drivers/clk/xilinx/xlnx_vcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/xilinx/xlnx_vcu.c b/drivers/clk/xilinx/xlnx_vcu.c index f294a2398cb4..c3a4df7e325a 100644 --- a/drivers/clk/xilinx/xlnx_vcu.c +++ b/drivers/clk/xilinx/xlnx_vcu.c @@ -550,7 +550,7 @@ static int xvcu_register_clock_provider(struct xvcu_device *xvcu) return PTR_ERR(hw); xvcu->pll_post = hw; - parent_data[0].fw_name = "pll_ref"; + parent_data[0].fw_name = "dummy_name"; parent_data[1].hw = xvcu->pll_post; hws[CLK_XVCU_ENC_CORE] = From patchwork Thu Dec 26 12:20:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Visavalia X-Patchwork-Id: 13921296 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2071.outbound.protection.outlook.com [40.107.237.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FA3C1D5CE7; Thu, 26 Dec 2024 12:20:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735215642; cv=fail; b=qB2FalaDp/hB+y7qumF+BreLsVkmxixEOA1+fofrB+pBIFyOW5nVg/Pq2eA70hsVY9G6OEs//ECZWdmdBPieEd+pI4F1Sv07ug5NUc5Mw9yp4z59m9tSBoJXA9VtDsKGv/Cd/A6phKn4yGs3cqEMfSLux4slt5jS9R9ULHx0YVw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735215642; c=relaxed/simple; bh=ZTlmhJiGPnZ9ZcTnvbhJ0JLfK1ksbpl5XjzxFDPI2Ig=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bz+4mcDlA2q64fKDi+BHaROS1GrZEIzA0NIPecmZ1v/KSwoP9FqWDkdGjKURL71H8dyySGp9Bb71etjiVrEeD8fUJFt3YOUf32e//N7z7016NCdGRwxkPVb9iZ22LzxFcNBPgrCOUPVXnLtXYEdjBi6x4EJ0ApEvSYWvVGNGS7c= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=TcO+7fX1; arc=fail smtp.client-ip=40.107.237.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="TcO+7fX1" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=x6jQJ+4C+aS/Uj2wZTBHktjDkDYs0pcJNj8BDh5DfyvISgsGc/lT2lKB/ilIDQH1qU6ibp7RY7MVgXfeszrIPgS1Z8arK7de71x8JXbXbfxYVpMW2hqYnrvZhZaPLt6O80E+wNIvVqqA/jv7x+mGuRRvYEwVfkPcGaGcZLmaYHc+ITgQ6g0Tg28/+Bqw0lzzSl6JOrJ03RdFzmJOfbfsFeh+sh1pg971jdtPKN0EdzJC3iBly1LmNOvONV8f35lRi541BWVotniDBDotrNqxK24tN3zZQXsGcdmpbMprU769YutkNXoLlqapWiIDWnQ42pSpwUVudlJGK0zQJAQP5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=g8sIuBv/YDyXXnEUepXlgrse9zfwX57+Id6ZVXGcqys=; b=Sg1OpOik5S/rKf6HtwZODbEGL5jy4FAT9solLakj/GMjinmpzE/c/WRUQrvCCkoYUtPaReqhjHsh2HWQKK0724lzVXXAx2f76iidP1IqlYgcYSfoE5Wmoo3hEGRbsFFssjxOdT0RTCYQqWvvMRcCWiSSoSv1ly1RMB4SvYKUu7ZlL5PokkSlCfxpiX8LUpPeuWHy1ScrJfWM5YI41KBVwAv1AhEngVTS9tOWP/zsUNd03cfjFNduxl1qcHvVaAHr/kjbl9AaYrqL2wLfh8A6gGYfFck0XERLFzhpEK815AhhCTuuoftIBL+3lXF2T5q2uQmAQJtRU/tEz8faPDTC6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=baylibre.com 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 (0) 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=g8sIuBv/YDyXXnEUepXlgrse9zfwX57+Id6ZVXGcqys=; b=TcO+7fX1zhU9CAPowLrL4CM6iroUYBjJppMqfaHflrHoMwVXG4O/A9lC5vYevUbs/L6ysElNC49+4eHy674PIhx0KaoDmNDm5DDy0WU81CE/4Mq4obUu09B4hVgqieF6Pb3OBaNh8x0XSTorvZwh8C80ww0Y2qUAs9wnbhnqreM= Received: from MW4PR03CA0247.namprd03.prod.outlook.com (2603:10b6:303:b4::12) by DM4PR12MB6277.namprd12.prod.outlook.com (2603:10b6:8:a5::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8293.14; Thu, 26 Dec 2024 12:20:33 +0000 Received: from SJ5PEPF000001EF.namprd05.prod.outlook.com (2603:10b6:303:b4:cafe::1c) by MW4PR03CA0247.outlook.office365.com (2603:10b6:303:b4::12) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8293.14 via Frontend Transport; Thu, 26 Dec 2024 12:20:33 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SJ5PEPF000001EF.mail.protection.outlook.com (10.167.242.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8293.12 via Frontend Transport; Thu, 26 Dec 2024 12:20:33 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 26 Dec 2024 06:20:30 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 26 Dec 2024 06:20:29 -0600 Received: from xsjssw-mmedia4.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 26 Dec 2024 06:20:29 -0600 From: Rohit Visavalia To: , , , CC: , , , , , , Rohit Visavalia Subject: [PATCH 3/3] clk: xilinx: vcu: unregister pll_post only if registered correctly Date: Thu, 26 Dec 2024 04:20:23 -0800 Message-ID: <20241226122023.3439559-4-rohit.visavalia@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241226122023.3439559-1-rohit.visavalia@amd.com> References: <20241226122023.3439559-1-rohit.visavalia@amd.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: rohit.visavalia@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001EF:EE_|DM4PR12MB6277:EE_ X-MS-Office365-Filtering-Correlation-Id: 53e46894-93f9-405c-98e7-08dd25a7b20e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: KO1w30otSjd4T86OfQ4Lxi5RB78waHXQTLS4u7Uo7015pUPxn6Z41gCPwt+oqSmOOsUkp/2rpt52g7F4eCs7jPTNncNpeMEVAxQSYeZu4CnEkVBfY9xAFedMFHeo1AlcpKFlKAtBaiqiBIDjjeoAUVj3fvzLIoR78lqrWWgVrFe3IVt7LcbDRslkXZP0mWkUEolWPfPRu4Oeg6V++9aq8IzOjcRt462791W1tcySScZCZq3h5Xz6UJqDMhNoWKxz3ZjNctAJRRYOu4PlsPCGRUorrHzIL0Sm8NQq6a2EQnEjLSpKo+81kkzFNrmCbHKBPu9FvSkv/o5r5ZXro/8RGqGAs/9N+886DdrSbtBos8EMmz0qZlF72ZxU0540I7H/aH8j2l1HgWYID5wM6dEMKmqMuopGA3WF9JsdXpdX3w7v1y91/wAzQ84TLD5YEprI9HuM2w8lITacylP1FDp3BszbYjWOgt0r/4+0x3g9lioquRjsD5ImZ9Z6JttuEOlNe9FW0Rk5ZELkBnV9OWI3sK4T6I4McahQGosxXUxWryDU9IrYgsXR8gK9lsTSgNoRGwQZNyN0TOPXYEIGMHqCjTI2POedJx2xj6vBoGBDO4N01ExsvizhxueNrdhSTMXZ5EmM/o7F01tVUcjc8tMqTVJc5EZt0IdcMlghQ5Fuvogfs2A0TCPIyD7KKXwkimuBtDf5byU+l4NK1b7HRS0QE3LBjCW6Hu5LOcTXb+WOq8fbaQqOswq7WKONsv/PFCDPbuyJuYD8g1xKz84DbcxVoFWh3HK4Us/dpiHTSvzbJBG8RVYD+4l+SRZzLvViHnOdTs+n8fXBkcKbGivfBHhAgsMTymVjySMpCeEVhtGJoP8yAnB9HhHjXpBYbw+J1S9nh4a0WssONL5o3UVdDvOoE9L4wmkS2jihkDPIhLwhkc3+DHojccahToExjD9I1PEgAM3iMjVZKpyai0HmomKsHSZzTI8Rav1wIsowkniQt2q2JIgPK2ItV/wb0C5pNNzaiVeZ3aGmj1hTpoFJoKAJwX8c31A+25JdwmHCluaMBk+q+yjjIB6oVmHujH+5yExdhGOX6XShfDa0blbe7eF8CvRDQip9G8nEVk9eBtaRyFtkNFWEb1nmT7UHFIyT+57XspluZ8+oo3HstYvRyilg8esryDFooyGxq0Vi86stkENzzTQZY4PooOgV6mHs6BVc8UJW1kbjuhyAUX43TcptoiJFGO23z/yaFfT3pzQJpt43V/mcvik9yeiRCi9gWMk6g4ieN1AfhKQQ1LlJ7D4Jqhurg9QrhJ5HvNRV3oywZ/4AfAGMJ/FIvCAi8RTrU4xhkSsozyPAdd4vEep1Q+K7p04gCuV3y9iufgy4xmuzZI82H/eaS5fKade9GYdb6Nf9OIyU+DS6h6guIG9cOaOFe/5ekvDwv7xUE6YtYZWlQiUQ7AIf4V7G81tw6SaTa6oelC126s8XEybwv+w/Wurt+6T6JblDZElYa77h2/5n84Q= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Dec 2024 12:20:33.1826 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 53e46894-93f9-405c-98e7-08dd25a7b20e 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001EF.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6277 If registration of pll_post is failed, it will be set to NULL or ERR, unregistering same will fail with following call trace: Unable to handle kernel NULL pointer dereference at virtual address 008 pc : clk_hw_unregister+0xc/0x20 lr : clk_hw_unregister_fixed_factor+0x18/0x30 sp : ffff800011923850 ... Call trace: clk_hw_unregister+0xc/0x20 clk_hw_unregister_fixed_factor+0x18/0x30 xvcu_unregister_clock_provider+0xcc/0xf4 [xlnx_vcu] xvcu_probe+0x2bc/0x53c [xlnx_vcu] Signed-off-by: Rohit Visavalia --- drivers/clk/xilinx/xlnx_vcu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/xilinx/xlnx_vcu.c b/drivers/clk/xilinx/xlnx_vcu.c index c3a4df7e325a..365c64384ebe 100644 --- a/drivers/clk/xilinx/xlnx_vcu.c +++ b/drivers/clk/xilinx/xlnx_vcu.c @@ -590,8 +590,8 @@ static void xvcu_unregister_clock_provider(struct xvcu_device *xvcu) xvcu_clk_hw_unregister_leaf(hws[CLK_XVCU_ENC_MCU]); if (!IS_ERR_OR_NULL(hws[CLK_XVCU_ENC_CORE])) xvcu_clk_hw_unregister_leaf(hws[CLK_XVCU_ENC_CORE]); - - clk_hw_unregister_fixed_factor(xvcu->pll_post); + if (!IS_ERR_OR_NULL(xvcu->pll_post)) + clk_hw_unregister_fixed_factor(xvcu->pll_post); } /**