From patchwork Mon Jul 1 11:54:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diogo Manuel Pais Silva X-Patchwork-Id: 13717977 Received: from mx07-0061a602.pphosted.com (mx07-0061a602.pphosted.com [143.55.144.161]) (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 1D96B762C1 for ; Mon, 1 Jul 2024 11:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=143.55.144.161 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719834884; cv=fail; b=LglKHq4oBV9lhS/bueUGegJBh1TyM6mfu6lGU7dxyvh/YJrnbeHxEC3vxeMHoEPi1C0rOgPCjeThuhhejQ4OpTNF2+Jo426ppx2NcifQxZCX7kdRhvA06fU8o8WnkHAr8upV9bzituS2+mYgtWuF3pc5Z1fpf0JmpubGC/akqno= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719834884; c=relaxed/simple; bh=PwsEdx4YHo5TZ4khsZy5wUlaUPr6Xtj8yrbCBSGwJ9E=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=WCXqt+0qvRtKx01MLujrV4/iahokl5peCH9BJzYb7RfAfsJCJ0VD6IdP3yO7m3nt21TvT49vUBmhpdtw9rMuzMYxCjbzRuRuHweA2BZ0/miCjHvNG6pqu8UbJ67sqc/LbEWKH63T9+Nnd+OvDD2YD05roSr/MFf07oEca36TZbs= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ttcontrol.com; spf=pass smtp.mailfrom=ttcontrol.com; dkim=pass (2048-bit key) header.d=ttcontrol.com header.i=@ttcontrol.com header.b=qb2D/rzF; arc=fail smtp.client-ip=143.55.144.161 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ttcontrol.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ttcontrol.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ttcontrol.com header.i=@ttcontrol.com header.b="qb2D/rzF" Received: from pps.filterd (m0278995.ppops.net [127.0.0.1]) by mx07-0061a602.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4613Ss6K025878; Mon, 1 Jul 2024 11:54:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ttcontrol.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=s2021; bh=msHn4OBppFtOg9fbkP8RaEPo1o 6ZtsEMCzEEY5Yn70g=; b=qb2D/rzFvPAWeYxPgRwP0xmqkxw8JUJkom7446KpEZ O6kJ7JXjx+tVYzxuQVg8ZDVFpo74bHasL5/+XNpDgILLZLe+zDMSajEhI33QGhNW DLM/QO75RX+OzH8JLA8DPztfrYF1wbAr3eRwBQ4AkJ8H0RdY6vVzk1m5F1EkewOq I4SuCw7j8kPwGvq/ckmicPLFXuA8crOGMqTyJsuvTT3C4aoBi3Y/ygbATpaakQTu X0OP/XyYcDbWi80lw8LtnMuZvDXlGPfysdT1Wp9+V6Ry21IZh8FODtMZir2xCwoV cm3zEfmmcmU1f1eUPbbEm2KI6q2hlfxZaXn9jSPyNTDg== Received: from eur05-vi1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2168.outbound.protection.outlook.com [104.47.17.168]) by mx07-0061a602.pphosted.com (PPS) with ESMTPS id 4027c8a6yv-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 Jul 2024 11:54:18 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yug6dInCo/mIYEmAmT+1AzflIVGcSWAfk/jsL2iveZAv3Yx7w39aJtI5RJdZ+vCnQMOsXj6HpB0S8vsJrBMQgsXzMhh1MzujFMt7tK6TG5WploiVuErcD6VeWPL1jXbbr/OK2mD2k2QWMU3q3UEuoEWYmJwFXpLQyCFqi/zL88PhWe8NiJuW2uEieqw163T2ND6IyaGVFdCWUw2UOfvqOl9GQD8J42BCsSM5gnw1I4s/2PASO2HJlGyed4f+7VX3rfxxPZhsMht+8gojPCDAen3xXzb3jf9c6tlyjCpcsPEZY5e0JzpG85oekY82Y42JsbttRmIjflDuvDBHk/5++A== 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=msHn4OBppFtOg9fbkP8RaEPo1o6ZtsEMCzEEY5Yn70g=; b=jQLLrivhka09MITZrkJs28yFy8ZcuafmaOHwdNp2k0a46aUqkrBdUYQr7l90MAawgzSA3Jm3M6+Lym8lAEmwiG+m119dRY/fHNJ5c1/507/QbXpA4G+4gSQ01sDCBshFKfDpZLkIUW4Y2zFzIWMrutoXyd+RRyzr8pCeySzdVcJK8PVCnFyJRTlq/H+4eMa5Z1ucJgtKMsyeGunTRtutjVKUXKt8pkU1eMZ7vlchbll41W8NVpd6SDybNEry5fkaGB0k2ngyo5+yzkkI7ghWdx7LVeX3Um6eMKjG9QSzp2/cCKKCkNIg638TM4y57lLN0ha6GEc7EocGODeIU99IOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ttcontrol.com; dmarc=pass action=none header.from=ttcontrol.com; dkim=pass header.d=ttcontrol.com; arc=none Received: from DU0PR01MB9382.eurprd01.prod.exchangelabs.com (2603:10a6:10:32d::6) by DB9PR01MB9295.eurprd01.prod.exchangelabs.com (2603:10a6:10:364::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.32; Mon, 1 Jul 2024 11:54:13 +0000 Received: from DU0PR01MB9382.eurprd01.prod.exchangelabs.com ([fe80::c41d:dc9b:3f97:1ae1]) by DU0PR01MB9382.eurprd01.prod.exchangelabs.com ([fe80::c41d:dc9b:3f97:1ae1%6]) with mapi id 15.20.7719.028; Mon, 1 Jul 2024 11:54:13 +0000 From: Diogo Manuel Pais Silva To: "abelvesa@kernel.org" , "peng.fan@nxp.com" , "mturquette@baylibre.com" , "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-clk@vger.kernel.org" , "imx@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "EMC: linux-kernel@vger.kernel.org" Subject: [PATCH] clk: imx8qxp: Defer instead of failing probe Thread-Topic: [PATCH] clk: imx8qxp: Defer instead of failing probe Thread-Index: AdrLqtcnJw5WiRwIS5yj3rdrX17wMw== Date: Mon, 1 Jul 2024 11:54:13 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_48ac2777-9b6c-4bb5-936f-abd66d5117c3_ActionId=0780da09-e070-467a-9fca-39c6d5ee4255;MSIP_Label_48ac2777-9b6c-4bb5-936f-abd66d5117c3_ContentBits=0;MSIP_Label_48ac2777-9b6c-4bb5-936f-abd66d5117c3_Enabled=true;MSIP_Label_48ac2777-9b6c-4bb5-936f-abd66d5117c3_Method=Standard;MSIP_Label_48ac2777-9b6c-4bb5-936f-abd66d5117c3_Name=TTControl-Internal;MSIP_Label_48ac2777-9b6c-4bb5-936f-abd66d5117c3_SetDate=2024-07-01T11:34:07Z;MSIP_Label_48ac2777-9b6c-4bb5-936f-abd66d5117c3_SiteId=5638dc0c-ffa2-418f-8078-70f739ff781f; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU0PR01MB9382:EE_|DB9PR01MB9295:EE_ x-ms-office365-filtering-correlation-id: 7c5813cd-e9a9-4045-6e50-08dc99c486e5 x-ld-processed: 5638dc0c-ffa2-418f-8078-70f739ff781f,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|38070700018|921020; x-microsoft-antispam-message-info: c2h0R+2jhAhSjMAmtUEEl4Wa+xdB6v7jEfPWrQ47pIUZuEoSusi7EodhFZ9cZlePUwqoRpOEPRa4FYipUfeAycpJa3HiX+DZbBR7OR0d19ULgyLuniw5S4YvcY1qNF9/a5Nz/f3eij7VRlBZTL9769JNN13MHIdBuplqJ8NE46pcaecfYmmpyriyE77Y4LbarC+J56yHzEh4HdsShQHy7rrpy1cN9KcLJjpP4QCp1M9aZlMTxHnvtLFk1ksORP77rT0QooYour7M+xMIpIUGrfy3PcRlOCc1De47D+kTjaqj4WXi5zdAh6NJzNYlzgoCcW7fX6osiyIyI6lvbrZRwn1+eRZmFCyYu3CYXF4U1lOC74SNeBEWgdfHdA/0iXnrbnEWi6PTBm4w9pl/T0qlHSx94eiWb2JS2tur0pWBqf45/b1gSqSeoPWFjjkYb2ZWtyA6eB7E1unZF23LJXcZSs4D+F4qXCxu3HuBG4vfAY4OWOqHK9Gjp9aor6YWu3cbuQNVmpxGzzdLkZH0sTtAvQluVLUrM/nng39791HQV5l8AQ1b4DyhLS35v5QQe1jW1MOcN3ChLo0ix56wssdFI0N7nVy1I6qzL9FWSnETBRy8fCNXW2jW/HmLzBegr2GeVzcidQruJySNFvjDzwCa9v2NStgyQeLyoKdqpy13WjweoFqGC3XRumy9hGVKhUmYyt3gmlj9YLrJwemu2H7jMo38KgCV7xaJBoqix8yhCrjqGrqfVaS/i1Rf+XJAIs2LTpHsONPM1PSzXlwqi4Z+ameCfvMJF1sJVSfknce12S3Y+qRuKTt+0GhGHWEehUyrgYZMWV1XwCqtC3AaA+tv7BxjyNcMQXwZRXvN1PMPg/zGwwInEc+u9G2OUR/8PelPtRsqBcWQthyDBay/sjPIkpAChkqw9G2KcbfUpcqrjJGR2BPKOnDlQkLeQgaquLXwU/U6u5enCyEFyIInDqXgQFj5+Cskb1PHR4U8Z0TimkQ8PptSYP8//TnCwm8DPKUz/XMgbnrLn1jvOsd//S6CoiswIqgtXlcwKqRchFebGwqtlrTazHenCDXCR/WxWRNXhmjFBAkOSoIwPChDnMYHw87awdaHbrbAsTpEIE7rINWK4ALrYiklwuORq8iddg238NmSru5ZAKCfiPfEdBFInHa3SCIuXrceSTOwF2/+YR7CaVRm3XncScq2HzsXRe/dB80NHLcm+/QUZSSCIO0oXVuGd+XnJHR3zGYt+tplm0V4UyM8ahB/1Bzsc9ViBJvjKuiLtOsL7PM4p/d86UJNMpzBsCyVk5au2GGbYHmsRHB4/spE5c180ZiA4ILm1DxhWhNLwUmyRT0pg7LXQBK/eh+0m4Hh9O7GfRvs1wGD/WXw8xW6g0sabTaQQSID2NGSoBtEv7gBcxzG6whTawdtJth2v0QP2VXsiWbvoGCWBAc= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR01MB9382.eurprd01.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(38070700018)(921020);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 3QvROuBwqmRqzVwe8r8yg0csj9dPeK2TGqcuUXYYOuVXUqrNINJJLsssSlMQP6PIZu2KRUl8iKREBSrmfcIXl+/HTx7DOCBVKgYwcyH8dtooPJVhNMBTWERZ+2xrurwOqOnKIFTPNflyOtptham0pNB2h3haXpPsHq2nKfrxq3/KzcpSNyabuY67sAMrwUko+76K2FxWBlvQWiFlnC4hXsHrHNHMVINqbdCCDrMpjofUlx9cE6GX5Wo+QWw2iy37OaTnlhjuHNjpbeHEdokbNvFRZn1oAfH20slLBCed40ac0InqKuE94yil6fmtDgJIrjDAm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6RHN5HheIEku1D2yK2JbY+9wzXb527gZ1aHG3XJCklcJKXI6Q4J7V5+MeCpKODw96d2vdy7pU7RM5aAtwzLfOjZH73V2+3crOky5MMcQjbLjXUqBzp48z4hio8ELe8I1ekz0DbQ/zVEFQz00m04ySxJl/zLZ82asq8Nmph3azPs7vl2fDJMKnHRCll0 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: ttcontrol.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU0PR01MB9382.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c5813cd-e9a9-4045-6e50-08dc99c486e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2024 11:54:13.4997 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5638dc0c-ffa2-418f-8078-70f739ff781f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jn6oJR4OCZLHWzEg0FtOAbahYih4WVs6Q6iUKC9+Wfk3HIwQ5/UAp4X3DjM+aJhlssUZzv7aPjlSky6kUpJ3Y0kjCkJqXTlS1Ic/3tjJrJA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR01MB9295 X-Proofpoint-ORIG-GUID: LLZS9DBKs88cgdUo-DGgtpokQruKYqi7 X-Proofpoint-GUID: LLZS9DBKs88cgdUo-DGgtpokQruKYqi7 When of_clk_parent_fill is run before all the parent clocks have been probed then the probe function will return -EINVAL, making it so that the probe isn't attempted again. As fw_devlink is on by default this does not usually happen, but if fw_devlink is disabled then it is very possible that the parent clock will be probed after the lpcg first attempt, and the lpcg clock will not work. Signed-off-by: Diogo Silva --- drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.34.1 CONFIDENTIALITY: The contents of this e-mail are confidential and intended only for the above addressee(s). If you are not the intended recipient, or the person responsible for delivering it to the intended recipient, copying or delivering it to anyone else or using it in any unauthorized manner is prohibited and may be unlawful. If you receive this e-mail by mistake, please notify the sender and the systems administrator at straymail@tttech.com immediately. TTControl - Internal diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c index d0ccaa040225..520a05ea0bef 100644 --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c @@ -225,8 +225,8 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev, ret = of_clk_parent_fill(np, parent_names, count); if (ret != count) { - dev_err(&pdev->dev, "failed to get clock parent names\n"); - return count; + dev_warn(&pdev->dev, "failed to get all clock parent names\n"); + return -EPROBE_DEFER; } ret = of_property_read_string_array(np, "clock-output-names",