From patchwork Thu Aug 8 14:42:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757712 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D714AC52D6F for ; Thu, 8 Aug 2024 14:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wAtcktpsyK1IopCF5kU8mOGUnH018rQKQhDOBPxOSZw=; b=YIlyx0amK3ZFDMHz+rRHzDzX1i YplcVB3o0EIOF+px122eov4m+VM7TD9LoFL1XMgIrrYW3eZDeNl2xflaOMD14EJMjLG+7B9xzpWz7 G5ZvQs3T4IDcgbZ7fnrNe38dDMf8nJPjMbArWZE021HlspgNu6r9l6kjHhG1uAWzmbiM639WEIq4c InSiQwlN7EYL+nYYDl0m84+7m7NFNbbwnjb/6Ryrjzw8D4AYM2qUGipKSY2RaWwn5OJnvAlck83pM jbV+bWidA9KXVR3XRY0xhGCjH9BqgTuwiW16O82c3OFGQ440bxlbtsnfe2RkUVXMjpngPQSEJrjk9 +KlveVuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4N1-00000008ZpD-0puk; Thu, 08 Aug 2024 14:44:03 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lq-00000008ZNA-2wCr for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:52 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a7a8e73b29cso108954366b.3 for ; Thu, 08 Aug 2024 07:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128168; x=1723732968; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wAtcktpsyK1IopCF5kU8mOGUnH018rQKQhDOBPxOSZw=; b=R/klMAdlCj5CQvb9WKduv+v6ZuujddTMO/ehFwpxeP4TcqhOXiRMu3kw4aJvc0a3U6 gPTzZMXkfNFpo3LnVqAAuVps9y0l2OfONdxZz33QWBPp7TiiggUIPbYZLbHF0jg0nXu4 KHy+nnTRe0+Xs+e/5+wJoFmDIJOXU+kau/9z4rRs2F3eEOhCv7o2ZDDH1rA5lyP1Jogr XJFswUUJtCOqwMqSXxuo8q1B8RcaZ5pW+TeWVtDiaIpLWHg1XOMC9vtqrAKMg31GFMto 3iOtXDsA2vK/svdxS+ddhW/Io1BbnZzYNTY8oMEcZ9oqh2UwWT7uP5M8zNEmqHzpoLyz DcAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128168; x=1723732968; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wAtcktpsyK1IopCF5kU8mOGUnH018rQKQhDOBPxOSZw=; b=ZGQFg79EJ7h7pouAmheNzAN9xpqmuNjpp/rSTjA9eIN4F79HWTxPn7FJU+I1of9OyY 95TMEMu/3ELw58MWpSPut8COkSI303jeERAblO9cL9t9z5lrilwJft0pCax/sInMT/Bm EqH/qzit0pd9x6n7LXoW0JEActOBeJnVNO026jSbsX2PhgTiKlj1oCofQ1gQUAN6t1SP Gpe4Xd1cQzWMn0Xd7t4W9cnBstWuOv145CBP/YhAOS8cBi6chwI8nHCidSEe0wj21gqB XB/PrtlHRuut2YI4A1JQfSv98puuskPQkrBqRTYChrEs7OVZuV2fwuWZ9I4FV9eJp5GZ WQcA== X-Forwarded-Encrypted: i=1; AJvYcCUcFW865AyTTcwpqLyM9MjN3YaKdAtOv9EA+iYVTWPCKYJkvSudWH605yqUvMLaMbQBLcY3QwGZPQI3ICAosghdcvBKrkA9Rangtk53l7jnjWyPe9g= X-Gm-Message-State: AOJu0YwRqryS4Y+hcJMcTdegJh8NWJ3uUhwhAvLckgVq7U9/+a30Y/t9 4IPs9PN7OIZuQVd2ajE9DnGy7VZJLFSZTWj12h6okRb8fVBygICQwX9Fc4f3i1w= X-Google-Smtp-Source: AGHT+IFKqWTwUTF9It4/KiFcH08kll66MLBeAiBxCYt6pGnnfGGyfN4DPvbUWI5sbCigMk5HvKV9ng== X-Received: by 2002:a17:907:c7d4:b0:a7d:a00a:a9fe with SMTP id a640c23a62f3a-a8090c83b95mr144065666b.17.1723128168207; Thu, 08 Aug 2024 07:42:48 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:47 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:42 +0100 Subject: [PATCH v6 01/20] clk: bump stdout clock usage for earlycon MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-1-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074250_798875_56A4537F X-CRM114-Status: GOOD ( 26.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On some platforms, earlycon depends on the bootloader setup stdout clocks being retained. In some cases stdout UART clocks (or their parents) can get disabled during loading of other drivers (e.g. i2c) causing earlycon to stop to work sometime into the boot, halting the whole system. Since there are at least two platforms where that is the case, i.MX and the Exynos-derivative gs101, this patch adds some logic to the clk core to detect these clocks if earlycon is enabled, to bump their usage count as part of of_clk_add_hw_provider() and of_clk_add_provider(), and to release them again at the end of init. This way code duplication in affected platforms can be avoided. The general idea is based on similar code in the i.MX clock driver, but this here is a bit more generic as in general (e.g. on gs101) clocks can come from various different clock units (driver instances) and therefore it can be necessary to run this code multiple times until all required stdout clocks have probed. Signed-off-by: André Draszik --- v6: * drop a stray #include from drivers/clk/samsung/clk-gs101.c --- drivers/clk/clk.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 7264cf6165ce..03c5d80e833c 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -4923,6 +4923,131 @@ static void clk_core_reparent_orphans(void) clk_prepare_unlock(); } +/** + * struct of_clk_stdout_clks - holds data that is required for handling extra + * references to stdout clocks during early boot. + * + * On some platforms, earlycon depends on the bootloader setup stdout clocks + * being retained. In some cases stdout UART clocks (or their parents) can get + * disabled during loading of other drivers (e.g. i2c) causing earlycon to stop + * to work sometime into the boot, halting the system. + * + * Having logic to detect these clocks if earlycon is enabled helps with those + * cases by bumping their usage count during init. The extra usage count is + * later dropped at the end of init. + * + * @bump_refs: whether or not to add the extra stdout clock references + * @lock: mutex protecting access + * @have_all: whether or not we have acquired all clocks, to handle cases of + * clocks coming from different drivers / instances + * @clks: clocks associated with stdout + * @n_clks: number of clocks associated with stdout + */ +static struct of_clk_stdout_clks { + bool bump_refs; + + struct mutex lock; + bool have_all; + struct clk **clks; + size_t n_clks; +} of_clk_stdout_clks = { + .lock = __MUTEX_INITIALIZER(of_clk_stdout_clks.lock), +}; + +static int __init of_clk_bump_stdout_clocks_param(char *str) +{ + of_clk_stdout_clks.bump_refs = true; + return 0; +} +__setup("earlycon", of_clk_bump_stdout_clocks_param); +__setup_param("earlyprintk", of_clk_keep_stdout_clocks_earlyprintk, + of_clk_bump_stdout_clocks_param, 0); + +static void of_clk_bump_stdout_clocks(void) +{ + size_t n_clks; + + /* + * We only need to run this code if required to do so and only ever + * before late initcalls have run. Otherwise it'd be impossible to know + * when to drop the extra clock references again. + * + * This generally means that this only works if on affected platforms + * the clock drivers have been built-in (as opposed to being modules). + */ + if (!of_clk_stdout_clks.bump_refs) + return; + + n_clks = of_clk_get_parent_count(of_stdout); + if (!n_clks || !of_stdout) + return; + + mutex_lock(&of_clk_stdout_clks.lock); + + /* + * We only need to keep trying if we have not succeeded previously, + * i.e. if not all required clocks were ready during previous attempts. + */ + if (of_clk_stdout_clks.have_all) + goto out_unlock; + + if (!of_clk_stdout_clks.clks) { + of_clk_stdout_clks.n_clks = n_clks; + + of_clk_stdout_clks.clks = kcalloc(of_clk_stdout_clks.n_clks, + sizeof(*of_clk_stdout_clks.clks), + GFP_KERNEL); + if (!of_clk_stdout_clks.clks) + goto out_unlock; + } + + /* assume that this time we'll be able to grab all required clocks */ + of_clk_stdout_clks.have_all = true; + for (size_t i = 0; i < n_clks; ++i) { + struct clk *clk; + + /* we might have grabbed this clock in a previous attempt */ + if (of_clk_stdout_clks.clks[i]) + continue; + + clk = of_clk_get(of_stdout, i); + if (IS_ERR(clk)) { + /* retry next time if clock has not probed yet */ + of_clk_stdout_clks.have_all = false; + continue; + } + + if (clk_prepare_enable(clk)) { + clk_put(clk); + continue; + } + of_clk_stdout_clks.clks[i] = clk; + } + +out_unlock: + mutex_unlock(&of_clk_stdout_clks.lock); +} + +static int __init of_clk_drop_stdout_clocks(void) +{ + for (size_t i = 0; i < of_clk_stdout_clks.n_clks; ++i) { + clk_disable_unprepare(of_clk_stdout_clks.clks[i]); + clk_put(of_clk_stdout_clks.clks[i]); + } + + kfree(of_clk_stdout_clks.clks); + + /* + * Do not try to acquire stdout clocks after late initcalls, e.g. + * during further module loading, as we then wouldn't have a way to + * drop the references (and associated allocations) ever again. + */ + of_clk_stdout_clks.bump_refs = false; + + return 0; +} +late_initcall_sync(of_clk_drop_stdout_clocks); + /** * struct of_clk_provider - Clock provider registration structure * @link: Entry in global list of clock providers @@ -5031,6 +5156,8 @@ int of_clk_add_provider(struct device_node *np, fwnode_dev_initialized(&np->fwnode, true); + of_clk_bump_stdout_clocks(); + return ret; } EXPORT_SYMBOL_GPL(of_clk_add_provider); @@ -5073,6 +5200,8 @@ int of_clk_add_hw_provider(struct device_node *np, fwnode_dev_initialized(&np->fwnode, true); + of_clk_bump_stdout_clocks(); + return ret; } EXPORT_SYMBOL_GPL(of_clk_add_hw_provider); From patchwork Thu Aug 8 14:42:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757713 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A606C52D6F for ; Thu, 8 Aug 2024 14:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6h/PuTPKH5TJqQzR5VNqTicpqs9HJAf+NVaf1wSFmws=; b=sU2POm56L5zF/xa1725CpOWRkE QbGzRA7yip7MJKwTTSfTjbLOb2Dd142aCegxcNdxHvZPFO6XLPGO8eePvMGJPlGgqSOmXcZLwXLHZ AfTyUQ3+KNpLBo2+XRtj577lULTkgj4QozVYRD4ZRPrc0HyTMhJwXby9VlUOXK7oZ0I18iHcPYj90 pPQKDYtd7FtIB6xr2Rnebzzg93M/as7JDhoOBJJtdSHCCZTr9H3yc+7Bj+D54Sa4E2CGPXIO+yi/o 4uZsz8CEIaXRSvCdscO/b9VCGJcULnrLPpA5gPbqBzpDtMa73og/5OCVHgfkcqy/mzPppG253i1b8 Neitn4zQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4NW-00000008ZwG-3T24; Thu, 08 Aug 2024 14:44:34 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lr-00000008ZNE-31D4 for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:54 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-52efdf02d13so1995394e87.2 for ; Thu, 08 Aug 2024 07:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128169; x=1723732969; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6h/PuTPKH5TJqQzR5VNqTicpqs9HJAf+NVaf1wSFmws=; b=BUbcizhHET4BURxcjd9rrQe7gyK3PvTeZnt8Dtl0gwzHG5xniANZOTCq06e/HSNFqB i3PdbGNOt5fzhETRP3ofDCXGN40qCvOYEAZGKCI/p9WQneAHbfWqTjUXAA7WkeaDetYt J5OY5SL4orCJWLf4AkFS0DifzaqyvzZsmVPXgDMyTScyPPPxeeDTRa8reOh99EdODjR+ RodxLo0gwBoZr9Jm0G+tquEjBSgRC9Qws+LbI62u0pdcMKvlOoDSAlfYO022uDKISD0Q ciTP79IBTPOlp9t7NmDeRpCJaii8y6rgW6oYX56qNOuwbQbmA+nyIGqUfJMIkto+jKWl rmHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128169; x=1723732969; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6h/PuTPKH5TJqQzR5VNqTicpqs9HJAf+NVaf1wSFmws=; b=Pg0SflOzJZZLgdFh/SgZ7RcgbTO6Brogo1Zr1UqS/5Wv5uwpQvfr+67/12Wd/c870h g56uzoTW9hzJdV5SgcXU1H6MFuU8SUZe1vdSSaWCxHl/PNkuhKIXTPmIvXxtTDl1MnuH zAAlpXWeM7te1lohEWRoW7RhXyuYMPo/euCXMjsoTouMIlh4loIhkeW7XDh09dngfy8I o9b9LCyk0VYV3jcQpg4KD4ssWJ9wt3MjQtqhrCQtbjMaLatwb1F3m9XebktgDp9Lbnuw bLvZMqUMTnc685LeTOaFBCawI3nxnuMoN6iGsrO0z2g/XA/omz3EHxfWnx3dCNn5fxgp JVEg== X-Forwarded-Encrypted: i=1; AJvYcCXIkZyM8GVAJ6PjsKiQ3t7Ku0K/UbLOjlrapNc7saGOuoCTEAlF82RmEKn+xRaZKofU7GljkXDuTz0WsHt76F7gI6yVInRXQ673SMPVvm95xkQG8bs= X-Gm-Message-State: AOJu0YyL1k41uzZCEcxBnT/iAW3xoRtoIahfgeLmEC/pgjwZ5648nt4I zOl8Y6/4lJD7athm5Mc5q4zNe5R8W0jYecj5pz48fwYssjPWZ1Bhlh8zG0h4CT0= X-Google-Smtp-Source: AGHT+IFDwoj0nnETAp5ptJMjL4P7urk3RcUJ04ImSOzddUGvLFkGFWs9zoWB3if6J8Ft2xrAtWRU1g== X-Received: by 2002:a05:6512:1107:b0:52c:c9e4:3291 with SMTP id 2adb3069b0e04-530e589929fmr1546854e87.60.1723128168690; Thu, 08 Aug 2024 07:42:48 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:48 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:43 +0100 Subject: [PATCH v6 02/20] clk: samsung: gs101: don't mark non-essential (UART) clocks critical MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-2-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074251_796974_AB8A1A42 X-CRM114-Status: GOOD ( 18.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The peric0_top1_ipclk_0 and peric0_top1_pclk_0 are the clocks going to peric0/uart_usi, with pclk being the bus clock. Without pclk running, any bus access will hang. Unfortunately, in commit d97b6c902a40 ("arm64: dts: exynos: gs101: update USI UART to use peric0 clocks") the gs101 DT ended up specifying an incorrect pclk in the respective node and instead the two clocks here were marked as critical. As a side-effect and by accident, having them 'critical' also worked-around a problem where earlycon stops to work sometime into the boot for two reasons: * peric0_top1_ipclk_0 requires its parent gout_cmu_peric0_ip to be running, but because earlycon doesn't deal with clocks that parent will be disabled when none of the other drivers that actually deal with clocks correctly require it to be running and the real serial driver (which does deal with clocks) hasn't taken over yet * hand-over between earlycon and serial driver appears to be fragile and clocks get enabled and disabled a few times, which also causes register access to hang while earlycon is still active (A wordier explanation can also be found in [1]) Since then, the DT has been updated to use the correct clock in commit 21e4e8807bfc ("arm64: dts: exynos: gs101: use correct clocks for usi_uart"). Furthermore, the clk core now helps OF platforms with their stdout (earlycon) clocks during early boot and thereby avoids the problem described above. The driver here can now be corrected and the work-arounds removed. Do so. Link: https://lore.kernel.org/all/d45de3b2bb6b48653842cf1f74e58889ed6783ae.camel@linaro.org/ [1] Fixes: 893f133a040b ("clk: samsung: gs101: add support for cmu_peric0") Signed-off-by: André Draszik Reviewed-by: Tudor Ambarus Reviewed-by: Sam Protsenko --- v5: update commit message v4: - the earlycon issue described in the commit message in previous versions of this patch is gone with "clk: samsung: gs101: allow earlycon to work unconditionally", so no need to mention anything v3: - add git commit SHA1s (Krzysztof) - add link to wordier description of earlycon issue v2: - commit message typo fixed - collect Reviewed-by: tags --- drivers/clk/samsung/clk-gs101.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/clk/samsung/clk-gs101.c b/drivers/clk/samsung/clk-gs101.c index 85098c61c15e..9769c00b6ca8 100644 --- a/drivers/clk/samsung/clk-gs101.c +++ b/drivers/clk/samsung/clk-gs101.c @@ -3946,20 +3946,18 @@ static const struct samsung_gate_clock peric0_gate_clks[] __initconst = { "gout_peric0_peric0_top0_pclk_9", "mout_peric0_bus_user", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP0_IPCLKPORT_PCLK_9, 21, 0, 0), - /* Disabling this clock makes the system hang. Mark the clock as critical. */ GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_0, "gout_peric0_peric0_top1_ipclk_0", "dout_peric0_usi0_uart", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_IPCLK_0, - 21, CLK_IS_CRITICAL, 0), + 21, 0, 0), GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_2, "gout_peric0_peric0_top1_ipclk_2", "dout_peric0_usi14_usi", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_IPCLK_2, 21, CLK_SET_RATE_PARENT, 0), - /* Disabling this clock makes the system hang. Mark the clock as critical. */ GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_PCLK_0, "gout_peric0_peric0_top1_pclk_0", "mout_peric0_bus_user", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_PCLK_0, - 21, CLK_IS_CRITICAL, 0), + 21, 0, 0), GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_PCLK_2, "gout_peric0_peric0_top1_pclk_2", "mout_peric0_bus_user", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_PCLK_2, From patchwork Thu Aug 8 14:42:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757715 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D206DC3DA4A for ; Thu, 8 Aug 2024 14:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TUt9AGf6xrjDYDkMTJVYo9C6PTxCMU+FJu9o1lmsxnc=; b=d7HAx1yqmDGN+6RsH9xQY4wOJG Ev9BziVWIJfnPveDJYLrxZa7GNHJpeADvWHDjI3x2ctsbCruxkWyHqYa6IHwGcJRhi7vYL5sxXYhy xG5A2MquJ4GdHt6G6lMscL2C39fW+nHZ5DR/PWNsC4wrHfbBeYvspMPTbmfP16IZecST9h5jMiGwf kPIyW/iioFwFa7kQGy6GqrxyVVA7UHwJEnWB1QPnuch12DpqSQz/TeV9LqAjzbcsBB/sU9PbGClBi CxsJ0o3ZgANnK36oUBxNPQKs3xHXi5vKmbtKeeMZQHkZjQRNvb6uTKCuc0Svu7KpZEI/+AtdF1vrf tXDJ1DBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Oc-00000008aLe-3Dbd; Thu, 08 Aug 2024 14:45:42 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Ls-00000008ZNM-16Yf for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:54 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-52efd08e6d9so1308163e87.1 for ; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128169; x=1723732969; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=TUt9AGf6xrjDYDkMTJVYo9C6PTxCMU+FJu9o1lmsxnc=; b=qzK9Aw05mb7hmB99E0YzxxP7+FQSev8rhfOAeEFU62dt/CaC7cjZakbfaIi0zErkeq dpt3EG4z/GBUJnfYGFFkCWQbv2UiQSMWMf1Lrc56syZJQYun1Hee8wNXGoBZ1ZWlutp1 gFEG9C1z8gt+kJStDXg4FhDexIzyiz4zCvSZtJ8vlaVZwEDqpTPQj/jc7Xet0sA4LlOp 7l8+2BYbUmGoRiwNAK2XgOZgK+qtf9ohtx/IGY0amQUnLhFF1j/Y+L5kLLpIHM6JoVQz ZUxj9kOSPM9SkZZWOAUxNqepNtF3rhW1Z95w8EgaAduij0jXQWLJ82njjVopNzqJakrQ NYaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128169; x=1723732969; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TUt9AGf6xrjDYDkMTJVYo9C6PTxCMU+FJu9o1lmsxnc=; b=UywCSYsfdypun38OdyO3qKAT/0iWiGPd191YObp7dWyWcYELHnrWlllRiDfAAYJFtE 0FxKnLON6QbrkPCV9dEQqOJ5eF+ed4bazYJR14hEtwtE/7fRvMyJGTt35EsTr7XHMYPR 9mUij8q415+pdRmJ8TlJp2gtfCK+kT8m9VrcQd6gefmcJiFfhO/EVzaBRhNKnJrcuvEn luL/x4/LFgChmaZUcxCoxdkCX1BD/fCa7JyPKia2Kto3yXrv/wy5/y4W1q6zhCHnGB8r 3m8mP9aGltfgsQkLLwH1A5kWgOxNVuSEuMUiKMHn0py7jwyFsN7LgK9g33BgcvX2VLq6 sG+w== X-Forwarded-Encrypted: i=1; AJvYcCV+KN9kDo/popJK1JjlnXKnNDSkX3qIEYHuhjpdGD8tn4OQt4+qEsoltVpRr3rbSjhQFspmwehOuwSyIjVngJObjJCsXA+P0R3Kijq3PW1BufNCFpo= X-Gm-Message-State: AOJu0Yz8E4TH6BR2Tr4+9Vd+aIWo7pXPXdnV32xq4JlbymQ4J+PxtMnQ kfwn3l/yEexSZtIapMPzhRZojvn/SEBIgxDxqG84Agj/6Y+Zl7BeaQmKa0bPmxw= X-Google-Smtp-Source: AGHT+IFY8t3FAEwa8bV86t3VKFqYi3dhhpoYWLQbdgyWVvZM0O1V5zSZUI8DcqEFM5UreIQyHwReEw== X-Received: by 2002:a05:6512:3d29:b0:52c:dc6f:75a3 with SMTP id 2adb3069b0e04-530e588cd22mr1710500e87.40.1723128169168; Thu, 08 Aug 2024 07:42:49 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:48 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:44 +0100 Subject: [PATCH v6 03/20] clk: imx: imx25: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-3-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074252_470453_B8F2BE23 X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx25.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx25.c b/drivers/clk/imx/clk-imx25.c index c566be848c2d..0474778f988f 100644 --- a/drivers/clk/imx/clk-imx25.c +++ b/drivers/clk/imx/clk-imx25.c @@ -219,8 +219,6 @@ static void __init __mx25_clocks_init(void __iomem *ccm_base) */ clk_set_parent(clk[cko_sel], clk[ipg]); - imx_register_uart_clocks(); - imx_print_silicon_rev("i.MX25", mx25_revision()); } From patchwork Thu Aug 8 14:42:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757714 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B721C52D7B for ; Thu, 8 Aug 2024 14:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CR2/Ipvc98fbygDSdyGUwyP4a+VA03w16ijfH8oQ9sU=; b=hYVsIk/5hhsgxGxVZwmxOjcDFn wn5tbkEy7eFyXjg/M0nq/MuH+LBFZ81zIqh6yw/eXmIFv2SVD6nELwNx0omn+RmDK4WKl5T1lG87m y1cbpWX3zbhTHWea4iRqxfwDmIHJTDVvtC4gEhdmzWhNiMMmcYl+fEINdDcG/gh7noXptyemOYlF7 xbYF3rmNicwmE6Obk/uj+u4+caZQaIFlMsbMyG/qev80MCReVYm7IOS6JR1FcpQQ2L1CzbIbxkeQr ZF8+roTMRhDEsTieE4+U70ikpIAYgBIo15o6qCBvVEPkemFQJkKDm7PUzUt0chf433glH+HjPdNkS OS9gOkXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4O4-00000008a5N-2AP1; Thu, 08 Aug 2024 14:45:08 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Ls-00000008ZNe-2SvY for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:54 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2f029e9c9cfso16076201fa.2 for ; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128170; x=1723732970; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CR2/Ipvc98fbygDSdyGUwyP4a+VA03w16ijfH8oQ9sU=; b=YD44tgUyk2ZQxemXWwH+t0BTQct9TMWKo+rox92x8l7OmVvQsfDj4dCrODMn6L9qaR d93yzvmwNV6n1jjMYxZrGO6oQ03lkEI1QBA/vVDEViSGr9+BHMS9AvGMAxXaqYEYEmzg Ksmraxe6ZLirdTqWHq/HX9y1Jtm2Bo+khlZmP5hS36ixX3RPeNjdQihasdmDbWsjjKQb JdifymRDpe+mEgNFd4+zA0levEkiZWS2JRMZi005PRPNUntkcaPqpAsy9yJ4ClB+Nq/D xUfIcIPuyec7KqgtbXRpZuqfXqymIz7+iG8OT+FLMVLF2uofEgeDg2omPaKaPpmng5dp 5GJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128170; x=1723732970; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CR2/Ipvc98fbygDSdyGUwyP4a+VA03w16ijfH8oQ9sU=; b=bDSpLPs+0HkRNvSJhHwH63AroSTjiUYu3PcXx6yHwo9haBP+1vhahF01bL1IssWdPz 1zxLD96IQBN8o0qYgMbwydoN1oVeYiPBo+EVQGwJ2w8dB5wEzV8EtzSVNttR0NwJZ55R 23FWtFyARRFKbatRAjjNi8ZYBzPY7wn4LskC906UfDO559D1wy7/I4h7isfQ0lBoPnop W3l98I5eZ8qWqbqcctD9apqgenB5prOllzdefdLxw7g4RHtGjHstlKqMk7ypoA2whsGB U/XhRViLlyjezfIA1ZlS9nN+qyaHwPfu1hisoRf8OPK9F/eqdy/HhAF0QA6Khpsd+rjj 5sqA== X-Forwarded-Encrypted: i=1; AJvYcCUiGWzTSZdqN7GHXQt6WBJUQdwGNUJ/4EQZr7RiRt47EEPyrjWdWtlYEZUpMUiRNhYYGjQaFrryWcq7oMiHcKTQ@lists.infradead.org X-Gm-Message-State: AOJu0YzJ1EJUjBGDgHEvLRfmP1cEW7+l7KlW75ZV9xM2gUI4bZsAr/UK dYShT5xxxt/daZd1Humuge6S9SPIcat5QAbRu3WvfskIZBmSmICK7c8xSjDEMFA= X-Google-Smtp-Source: AGHT+IEa8lUG5PUwt8CAXfqOk3wGRaLOx10UCEmHtPBg+F4Hg/YBNadhRZneaPV+k6P/U8cOdJlD3A== X-Received: by 2002:a2e:4602:0:b0:2ef:2905:f36d with SMTP id 38308e7fff4ca-2f19de2c724mr15068821fa.16.1723128169710; Thu, 08 Aug 2024 07:42:49 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:49 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:45 +0100 Subject: [PATCH v6 04/20] clk: imx: imx27: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-4-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074252_702264_2912856C X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx27.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx27.c b/drivers/clk/imx/clk-imx27.c index 99618ded0939..53018e80ca51 100644 --- a/drivers/clk/imx/clk-imx27.c +++ b/drivers/clk/imx/clk-imx27.c @@ -164,8 +164,6 @@ static void __init _mx27_clocks_init(unsigned long fref) clk_prepare_enable(clk[IMX27_CLK_EMI_AHB_GATE]); - imx_register_uart_clocks(); - imx_print_silicon_rev("i.MX27", mx27_revision()); } From patchwork Thu Aug 8 14:42:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757716 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7F468C3DA4A for ; Thu, 8 Aug 2024 14:46:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=y9to+L9bTdGJqYL9Sfh+XmsCrqySZTcdIgL2IwvTZdM=; b=adPhnIIfXYfyQ+uh7jpZpGRFh9 cpEpycs4UQ8nVS/0XEFVae92s1xDISnGDF5DkXnTurkcbSt+ErpjBkR/JKNc63YPmeSam7dW0/CIp smPOIQ+8r0zBKK26I5WgfV8nxKHv1x6CLAw6FW2px/vNmPohZIXJJQ4qF+E+ra1EQ7BXzrz1asSDg 0t51Xwz9imeV9nw5Qcoj3KEMLbg4P5fHszcMHUSfS7ZiZe82znHNpsfN68Yi2zwcLh3Gk7UC1rwEo aiQMSo0c6J64iHSSF87NNuJo5wFnKxSV3MgIAEyrjJpLrjyaIVDfnz6A10KLDK9SkrkxKLNYMtLl3 naXuX0+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4PC-00000008acS-04fF; Thu, 08 Aug 2024 14:46:18 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lt-00000008ZNy-0MAj for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:55 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5a79df5af51so3244949a12.0 for ; Thu, 08 Aug 2024 07:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128170; x=1723732970; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=y9to+L9bTdGJqYL9Sfh+XmsCrqySZTcdIgL2IwvTZdM=; b=pxbEg5cS50QiP0wSwhGtDqCLyeNArUt5UyR34WBN3qlVzIldUsj3NcvWA/Z/tZQsMS GoxnCeViz2SyQDEtoXl2lbziLHGosj40fH2QzHaK9+v7zV0tNAPmIs1jk2sle+xY2jyx NVeU7w5D+Hif8N5R2k41JItvOkJELb5S/JEJSCC3Nk7Puc8cPG8N/1XVeaQxSQ9qI3vH ly1f790lNuFw2L+PeKdXcqYzEeDDw0tmb1yA3kmIHJWChTway4jkP4PF6NjX8LJ7R7qb daKPdIBcbQ1yzSZDAywDfJeleLvV0XtKB9YDIdtaqgi2OPHiY4kGLeODBRjD8NIM8Ls2 tKOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128170; x=1723732970; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y9to+L9bTdGJqYL9Sfh+XmsCrqySZTcdIgL2IwvTZdM=; b=ZisaHcGEaIPE9qUx3PbVobWJ2vIpOVEQSYjiY0TgQ3lLBrAmNEcL2X4rQDOma9LvRf 5xHz6PghP2iCgtHTawDBfYdkJUFBYnlXYnWMGDhCVuKORhMRTjlM30qguWDaQEPJCfow u0SO6VyMlu46UQvCZjMGjRPVQRaQOsT4TcGl2Y0VtqD/FMVVa3Yl3K8v5lKMw9BqDd8V OzIRt6i69/CWIUPVjX9HlpCY3J6DN9FzjTQiw5EfyqtcQ5BpEFyWx9tC+wpvPo0cjqls +BPQoYdBNpOTfPBq+c4xTuuZ97N3PeDRqLo/01eJk0Yy7PWHdxIZiJ5z6AQHHvrXPK2r LAbg== X-Forwarded-Encrypted: i=1; AJvYcCVxWWMaq8J24uKbemMIGUyO5ePk8EOZiyRHTCIy7Nk4L22Flg04TmfrrO9ABP7uOctEwQkkC67gQpeDpwAwSCrGOHa+JdMSPEWP6f18Z7+XFY2YK8I= X-Gm-Message-State: AOJu0Yw78GQaHdWrvMJz5cLYtqR2Ev9cyNelbqhNlYnU3Ad3AkThFOYT zieHiJFKyqvnPHAehqvWlJb/rZ2nOvRzaWdXb2+EkYxXQNC6Ou3RelYYPtaDpK8= X-Google-Smtp-Source: AGHT+IG8GywzWr1gIp9i12RLWgA0KqKkT63htyiYzlG61i5bfa1BVS8WIMeH/VTqcF0FTAZqtfonTw== X-Received: by 2002:a17:906:6189:b0:a72:5f3f:27a2 with SMTP id a640c23a62f3a-a8091f95f90mr126698566b.26.1723128170220; Thu, 08 Aug 2024 07:42:50 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:49 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:46 +0100 Subject: [PATCH v6 05/20] clk: imx: imx35: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-5-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074253_254929_F3E2E7BE X-CRM114-Status: GOOD ( 10.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx35.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx35.c b/drivers/clk/imx/clk-imx35.c index 3b6fdb4e0be7..00355a187340 100644 --- a/drivers/clk/imx/clk-imx35.c +++ b/drivers/clk/imx/clk-imx35.c @@ -234,8 +234,6 @@ static void __init _mx35_clocks_init(void) */ clk_prepare_enable(clk[scc_gate]); - imx_register_uart_clocks(); - imx_print_silicon_rev("i.MX35", mx35_revision()); } From patchwork Thu Aug 8 14:42:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757717 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E7C1AC52D6F for ; Thu, 8 Aug 2024 14:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=b0KZBbN+nQ1FI8ntFiIPj9qlGXoBaHjCw819hVXcAjw=; b=zCAXZw19vcKSlHnlrzvtQlRXfS aU96BbeKhnpvUGS4tR2GXEMKIoQZVIAfcx1VXYXxH1q4ILJaK+jMfgys+w7NH14W0ykVqzfEKRdtx nzFGslDzjBx04HtOEQ8JZwJ2fkcEXL+PPxRDf3EdYC0iEaFF60Q/Prs2IYcH2Zz1kB2tgWm16jYNl McAcvx6/KUlGkedy06AUanPF30SmoB8oiDE1lYBSfDWOAqKYRFJc8GPyt1YMyVwgtuedig7ZKN+ZV fGeXnMUKF9zhzUcKHSru/2Wfpjh5wtQG19M1lrNS391/1UnfA7hV9x7jdXPsP+14g/ccKtB2ix4Ru blZCiYJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Pi-00000008anc-2eDi; Thu, 08 Aug 2024 14:46:50 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lt-00000008ZO2-190s for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:55 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a7aa212c1c9so143070666b.2 for ; Thu, 08 Aug 2024 07:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128171; x=1723732971; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=b0KZBbN+nQ1FI8ntFiIPj9qlGXoBaHjCw819hVXcAjw=; b=SrOnH2H7kvuEbiMFMHZt2kabN3EMHHz71HF62yK81nHBgFqofQi+kEGsh3fbWCM/op 6xhICPA3z4u/NmyuHk5UvI6fV7FKgaUz7qNzZ7asUg1TlK9r6bB/OqI9t3frGYawSsL4 W3jowo0nF0R9tqSpvkfZmnxxeot4YwCm9iB5laMI1Wr6z82GWpBfKBDTFOibo8sAbEJs De8UzImkRQAgYVKYaXlw8bgexyQyp9L4WxDPN7zKskZNqJpZ/+Eg8lGNRV6o9ED2DrsS il9d7dY30b15bXDUcv/roFk+2A5E6bjhG1RyfCOIK8HkPqeIflgVoCA/1b2NbKDu+LWv wkpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128171; x=1723732971; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b0KZBbN+nQ1FI8ntFiIPj9qlGXoBaHjCw819hVXcAjw=; b=xVk6JTIHrR8lU6OEPZEpl9CBrcH08mxF6zze6cdL56pRgvXCA68zHln2naSBHxXVdG gPVdu90OYjeFIvYhDrQxNRgLngTOE4XmSai10YVnWnWrkLUnoIRG0ER4sACBmBsoL0na LfME/hIw29IRl6ceulro/y1DXdU7x56ttd75t4+GVpiFVLpIAT8lCJZvtkGTbDFCjSbk XaKeQeZ2FZapNEPPRE6SGz94EKHh0qsRRzJPfwx8q5fYtAaL+VWG1dCzALecE6RwbkmG EP+pHZY1Ll3pZH8pyikw1hGyn9WwZQ0IQhnxsQ1hsvGaYejGxzPYfOYcNoQiuzqW9pJA rgwA== X-Forwarded-Encrypted: i=1; AJvYcCVmCj3o9lHP/dFzkb2CXnKNlQ1geqgK/EQEa8EvaoSKOiGSMPY3/9d3hxSIrz+xNbssJqsYeSIG5XJ8a1FRd8DtNWgLrisrPDE0KGhi7CsazDZ/4ac= X-Gm-Message-State: AOJu0Yyu/LVJj+UZGiFPiiTl9PFF21Gy3zmF/oL3Ffvi/GYRnCZUEmtB S3hhyj/iWJKJwEi2SQ46dUX2+VrJSfV7Rm/ezk2yrgqzIfnqLYxcoKeMGulfQRw= X-Google-Smtp-Source: AGHT+IF92aQdvuypDx1fq+tYFY5OivN5JbCVt20C0ukwfaeiDnLswwfjXsSThMmHvMSzFV280ksHCw== X-Received: by 2002:a17:907:f1da:b0:a77:f2c5:84b3 with SMTP id a640c23a62f3a-a8090c828b5mr152030366b.22.1723128170682; Thu, 08 Aug 2024 07:42:50 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:50 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:47 +0100 Subject: [PATCH v6 06/20] clk: imx: imx5: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-6-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074253_362418_963A7DC3 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx5.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/clk/imx/clk-imx5.c b/drivers/clk/imx/clk-imx5.c index b82044911603..163bed084a57 100644 --- a/drivers/clk/imx/clk-imx5.c +++ b/drivers/clk/imx/clk-imx5.c @@ -357,8 +357,6 @@ static void __init mx50_clocks_init(struct device_node *np) r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000); clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx50_ccm, "fsl,imx50-ccm", mx50_clocks_init); @@ -463,8 +461,6 @@ static void __init mx51_clocks_init(struct device_node *np) val = readl(MXC_CCM_CLPCR); val |= 1 << 23; writel(val, MXC_CCM_CLPCR); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx51_ccm, "fsl,imx51-ccm", mx51_clocks_init); @@ -608,7 +604,5 @@ static void __init mx53_clocks_init(struct device_node *np) r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000); clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx53_ccm, "fsl,imx53-ccm", mx53_clocks_init); From patchwork Thu Aug 8 14:42:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757718 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C5C52C52D6F for ; Thu, 8 Aug 2024 14:47:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=f5MWL3cjgLEXuvIZC5lLXbB33GYudCtwZlnHK0GLdqg=; b=GEN9YGYsox9rK2KbWD//JrLrYX QFcsD8wca7TvIc0+CsZyFcsf0VahzTnqLCgWyIuBtsnsg3JrDVdeY2FEvMxlbJ74BVsWVey0UMPkl PNi4Rvbc+NZ2LOimqmlZWCj5CWDmN5l50kQmYyxGondXmX0gcmjqgX7cynCHHPTBGa6RrT7+l6ZQt SdHta4GVABet6aLxymPP8Py8RKfKDt1VgHcJv7bEcJWsp6BrOksqzhqYzx1QfVFKNWY54daeEiJgw dqjrqNa3RktWe+x4xDL27JtkkMP8o75Uhq/d+cnbRE4QeWItyjfOAHl5azRgMDnDA33LV3o48cj7b oXK7tcgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4QF-00000008avq-17nh; Thu, 08 Aug 2024 14:47:23 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lt-00000008ZO5-262H for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:56 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a7a9a369055so106375666b.3 for ; Thu, 08 Aug 2024 07:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128171; x=1723732971; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=f5MWL3cjgLEXuvIZC5lLXbB33GYudCtwZlnHK0GLdqg=; b=o3bMY2ozwlU8/idYJPDdFdb0ARTwQmAF4Q9mTt//AvycsIk9yV/uu6Iun8GXXc2+y/ vNnSpfvIGeuKKCljv8HNDirD95cJfEB/93TXtpxC3buCXHRXSBKd4DX84cF//dvBTK3r dR5+adImVhbi+MqInPLnQIrsU5EEztZpv9gAhkETK6wtscWm587Byfu9jM2HRB/dSlfS 6KcynY/QDyYxpLdDF1jCLoJy+To2XJoP+mRzDvWv42Z/6OEkm6xvscvLhdWCWTER/8z6 EEw0ulyaenvJwlcuK1KvYm2Vtju0nMwxrhyLC/8tBrVTsjYrQH9Tx96TCua70OJX85Pa 7oYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128171; x=1723732971; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f5MWL3cjgLEXuvIZC5lLXbB33GYudCtwZlnHK0GLdqg=; b=OgCA5/Z2MC6yDTEpl+j3uWWVEuQ5lMpzEkxaN+eTd8/lKki/2EQ53nVkktx4YG6eh3 lMHdWv6BKEJYdh0mY6Rm2BC2icEPAEDC3jQwGSoXz6ofswHjjGNpSgQNK35lXQRfX/+g c7HJF2eN5tvyju4v3hjBm1qysDmw6JftJpA/j18xebX6Dtru2/z9/4ZIGtRYZWP0ViQS a941hwnlyQZ7fVPp3qnz3cZXlf4btK3GlCCiQMByfx6JxJBlHX/clAQo0SwSabo38nbf FpCGrKzNFg4Tvfj9qw5J+qhnDQDBHNnj9v7kpXCZ3l+RzAmskqbp4KA+yW2lD+E7lfLM spgQ== X-Forwarded-Encrypted: i=1; AJvYcCXX8VHrC11XJL34eUbbhysnDi5epRJaJJAwRTKLFIwPCArzY/eSOb7ohLRR+3mlhmmAg+oVsmmHmS40wPFQfH8h6/3qs62Oe8AJBNPFDOz+PDvjUQE= X-Gm-Message-State: AOJu0YyiVAIht0UCksPY+3pb238f2gn1hVpr4KWeAx+hSuiQcrQjDNv6 /fkf+neYLQdloyUBydFkfJ62wnAtkRzL4ONDjfn6duO/VwTkvS82rqvKOq0TtII= X-Google-Smtp-Source: AGHT+IHSewliej7ECiKs8Pj4pcmuOAg1jmAB9ryEfKa8DiqRd8T5n1QapjnGAgj9RIhKle0pBOsBOA== X-Received: by 2002:a17:907:2d0c:b0:a6f:4f2c:1936 with SMTP id a640c23a62f3a-a8090e4057emr169860666b.44.1723128171105; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:50 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:48 +0100 Subject: [PATCH v6 07/20] clk: imx: imx6q: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-7-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074253_583096_322534FF X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6q.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index bf4c1d9c9928..b436463e06d4 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -986,7 +986,5 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) } clk_set_parent(hws[IMX6QDL_CLK_ENET_REF_SEL]->clk, hws[IMX6QDL_CLK_ENET_REF]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6q, "fsl,imx6q-ccm", imx6q_clocks_init); From patchwork Thu Aug 8 14:42:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757720 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8652C3DA4A for ; Thu, 8 Aug 2024 14:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=l83L9SwgjM7cQs40Ix45OsltdwbTgmJEPf1zQuQtrko=; b=O/ChepvHXLRw3ge5YKmbrtq7Uv YtA9/pnrIvsC4n+12U+50osxc6L8ZL1JlD53Ane6wFEYsibBVi2/WTHBBpTtEEOjYw5UjdnfKcnCL HPtEimz7yi2LxATXvLIbgP9paOQcMZKQX3n54YU0Jeh7mrBF9qnMRa5bO7stvx4R0+YgURa3Yel3w Z65xuBBD45a41V0ZpwYLjcRKMhKdxCJfZOo7WOKDiLtq5FZDMENIVXdB2aptgC0MLtZzGZ/C3wQMe PbVu7BdB0ATsp5pKMKKTTfaZlohT0RM+nLHFh50mk1q9ypdgXwRodKY/fai3MTH32ftQFmjzYCLZJ 3x3Im3tw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4RJ-00000008bIk-3ePv; Thu, 08 Aug 2024 14:48:29 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lt-00000008ZOM-3az1 for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:56 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a7a8caef11fso127235066b.0 for ; Thu, 08 Aug 2024 07:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128171; x=1723732971; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=l83L9SwgjM7cQs40Ix45OsltdwbTgmJEPf1zQuQtrko=; b=IIOuwf6g1e9tCLABKgQjfyD8z/nlRdspU+c7rg9drSPYB7Y7b1+aGMqzcLfWuCnIMq ueh64YXDNQqw4fPtlV2nRadUOySLqZ17+1GP3rHBrlqA1VeTE94tDzqTyWn/yQOhPUSV Wo0sGUHhC2X4WH4ZyKJLaJY00bOGDZFzFDEzmt03U02GP9MSl3+ssiB5mrZxvdVKm0iu /VrbXh76HI8gu5E3sgZ98zXwdV6iKPeOJKxK/3ZDUGWWIAQTA+OAc8V/kho4bKCXGITv Qc+Hk7u6B4aVT1bv5jF4FgYrl9kt33opcoXLapATYSy9+emCPN6ZaupjvPaQyDsSTet6 mz6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128171; x=1723732971; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l83L9SwgjM7cQs40Ix45OsltdwbTgmJEPf1zQuQtrko=; b=LShVrZCeneFVeKs8wDM7hqEGRmXqvd15y3VXW5nDs+CYoaTESzI+Nco/1WnH72EG7+ BgCtF5+ZAn4XV4DlSv9ZdyPgI6qu4pT1ja7xrq1uiH6Me8lKLGxtt8VFSdP8p5FohmBo KYts5puaNyEJpoiWmTimHM1J6ogy9xN45L3BSARFMnKRnQ/ZwAWaSw+XPtbj/7ntC6Uf JlmrEP2m5wmRKFwb9UVzXBUDQuxaWRUyJec+iHtk52RVZsz0Ok+MvBn/FB6inrnE2qyg 4NYKRSNrcIYoitzIVRudI0+42aUxoNHm4HduoNVEBAQKZsjmJ07ZJcDjpp9imm/jccD7 gTfQ== X-Forwarded-Encrypted: i=1; AJvYcCU0lq+yNjN7Wha9wIQP2toiSEnvV8ZVwfrINZBw/asF/f68hlQxkod9As3nnbaX6/xSWedYSH5X657xZ4QeWaHX29YMr1m33iQ/0Nha4tpWfT0aqKo= X-Gm-Message-State: AOJu0YztzEgGy27/FLBJJXUKbLq/QPUR0ucTkSHHzS9wUS8z8D0Mw9zz sircaHg4lpFQUiqe6cV3UYbjEpTVTsuB4q3c5GgJ1OYNlqysutwCJItPA/xuFkw= X-Google-Smtp-Source: AGHT+IFe5yBX51Jekzt7C2kWUzgmsjyVacpfri7mMLlLy1Lqvgq+tUY5fWelUbD2TlqgI0C0qNqzwA== X-Received: by 2002:a17:907:2d26:b0:a7a:9171:88f4 with SMTP id a640c23a62f3a-a8090f0363dmr157822666b.68.1723128171552; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:51 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:49 +0100 Subject: [PATCH v6 08/20] clk: imx: imx6sl: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-8-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074253_912553_2D64D42C X-CRM114-Status: GOOD ( 10.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6sl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c index 47b8667cfa3f..bc3e414eeadd 100644 --- a/drivers/clk/imx/clk-imx6sl.c +++ b/drivers/clk/imx/clk-imx6sl.c @@ -439,7 +439,5 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6SL_CLK_LCDIF_AXI_SEL]->clk, hws[IMX6SL_CLK_PLL2_PFD2]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6sl, "fsl,imx6sl-ccm", imx6sl_clocks_init); From patchwork Thu Aug 8 14:42:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757719 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F723C3DA4A for ; Thu, 8 Aug 2024 14:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EG/ZG6dnK/7FkbT8sGSrbUNfGaArXZW8+ft27slBbKg=; b=T1FQ4r2Rwad5N5Y6c3RWbNGOdf jerda0bHAlKDFu1E8If32vHWmd8IeA2KGSWUoa/+VPexf6JHgPZ99dGQhuM5PQ8WhcQLgNJ3rT18A FaF7FoLFgLN3CQK2N5GzD49H8JFrxLvPKXJGbwmpDSHnfh10oQ9VWfogVrnPjn02fl7IqejGqUIKr ddd7hnJbfgsb89ZrRBUt/dmvkkl0HezgSov+OYNr5jAzDUqNYgwr5ZgG3ACkTgO2o60kub5u3+VV7 OGIWeN+kCaaqhDFyBaQgduzkCqC6xXGKpCMiqxW6/LpihiSf82I6BjZrDGpjf5d0Q/kcX4TJPJI9W 05buMoLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Qm-00000008b90-3cLk; Thu, 08 Aug 2024 14:47:57 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lt-00000008ZOe-36FE for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:56 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5af326eddb2so3486579a12.1 for ; Thu, 08 Aug 2024 07:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128172; x=1723732972; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=EG/ZG6dnK/7FkbT8sGSrbUNfGaArXZW8+ft27slBbKg=; b=nLQ6PY0kFOyLrjY4tMXd65TrcgG/U/fGKGhWGuZN/NePEzPK3qfj/YnyODKZ0O8tTy CIUPYS8W77Y8BUEUwuqAir22gigXmHA5VN5IdJrzzT+6QljJfX2gncMBoJJ0e+8ETG17 TcOgw6q5uKhriDe+NbD0hAUwjDcK9zl94bbKBALzauKf0SNbm5zcNxXc7cs2LGAIL9/i Ms1F951qMV30le8hTu0VBBlH+FRXdAMjRagyJ34GwNi/F/jG8BT6bovJ2lIiFxOyuSxr n/3dQYywjbgSU1jAyWH9IV34N1TAIthwePk5juwqZ709pItgXUO5gglh5BB/SOI2UDex hwEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128172; x=1723732972; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EG/ZG6dnK/7FkbT8sGSrbUNfGaArXZW8+ft27slBbKg=; b=e8//DmHqqEqGqgLwv/xyH5PMzOvHWWVNjFgfzi1aq6X7w6fWkSeq7Vg8JLygWF+g+F iD+EqgyR5OfNPHCTvesBpw6loT452EVWNYkFD/338XDHGSBo+ms/pD/Svb6sZ3/vVGW6 x1bk+x4A534TBFAeazO7YLAiO5KfT/UEhYW0f+kvLHU1NkOEqIoL+YN8qpfU/mcZIqac g4Gf/ZO8I5CFnN+1FZQEPAd+Tu+U9sgOhL/wP4htCMNCQxsWwMzHa8Z07rwdV9KAeHqU nVsH3MEtSpfNO5s4OBBb0I/n0wyI/6l9pUAQs6eoNSOYzgM1tSP7Nz3fvGNm/Z3F0CJS T+lA== X-Forwarded-Encrypted: i=1; AJvYcCWqMR3oIsl1NLqTasX5xNnvnjBRjPPK+UIZJU/ELRYHGbKmnWoGsdT8i92PBXKN/5P6zKFJMaGhMTu0djTy8zAgICxs3mEJcV5x17oraDgx2JnK97Y= X-Gm-Message-State: AOJu0Yz9zyhhE6ew0mpDB9lr7pl91uRL9lmjTpt3ong8u3nI7+blhjuW 6CK9sPXWvYo9OsvmO5PMHAG6Dc02ibVCau6+xpy5yxcL5tp517cq6oZv8Ib843Y= X-Google-Smtp-Source: AGHT+IGtJSveR8KZxSWZ0BBBvkzHjtJ1Agj61Z/XNfYmQr6Fm/KzaJ6kZoSkBXVQlwYGFGtVuoa17g== X-Received: by 2002:a17:907:3da4:b0:a7a:81ba:8eb3 with SMTP id a640c23a62f3a-a809201715amr190601366b.27.1723128171973; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:51 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:50 +0100 Subject: [PATCH v6 09/20] clk: imx: imx6sll: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-9-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074253_784139_B35B8838 X-CRM114-Status: GOOD ( 10.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6sll.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sll.c b/drivers/clk/imx/clk-imx6sll.c index 2fa70bf35e45..4310adc5d54f 100644 --- a/drivers/clk/imx/clk-imx6sll.c +++ b/drivers/clk/imx/clk-imx6sll.c @@ -340,8 +340,6 @@ static void __init imx6sll_clocks_init(struct device_node *ccm_node) of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data); - imx_register_uart_clocks(); - /* Lower the AHB clock rate before changing the clock source. */ clk_set_rate(hws[IMX6SLL_CLK_AHB]->clk, 99000000); From patchwork Thu Aug 8 14:42:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757721 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1E49C3DA4A for ; Thu, 8 Aug 2024 14:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xSaLptLfozVkUpjw1oRI9Gwlbl43zWvMUP09a2upKVw=; b=1RdDoGGLFqPOO2Itk0qUNEdzyf OINTXB6QNurJ8+oi/Ps7tDm099JElMoiNcCgylCMHDv4taioWoORmsZsoofRWOJokeVk9ViFvtjlT 2i/YK7GFS65LIlvil3s0ju8CmNewjWLD32KmAwchMqOMMpwiAegHxk21X2GTks/1RNccsJKajGchz tKAKoOyGYH5Jy7pG30h3ZC/eCAkkb4QW1mUvJG4SnAFb8t9j7qM73NbGBVuWBXDXAoSoSj1MkcxkS OQwOI+r0t7mHiVKSnqHDB6LN9q7t/MEOfwZ2nEFVBD5PgxmpSPIon5mdU4fC6Rc1WF0FRWSIRtIsX ncDK4Mtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Rr-00000008bU0-1wZH; Thu, 08 Aug 2024 14:49:03 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lt-00000008ZP1-40PJ for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:57 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5a10835487fso1399734a12.1 for ; Thu, 08 Aug 2024 07:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128172; x=1723732972; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xSaLptLfozVkUpjw1oRI9Gwlbl43zWvMUP09a2upKVw=; b=lFXiQblstiijtME/ca6ro5nUKiUFWRmF4ENztd/1xorkB1TY5vSpmgdb3cAAx4+rb3 4heetJKMPMJwP1vOEI5OqP4+YApiflsrvcvdwp35IflMho5i8R8EQvBDvUSRkuFIc47I 262aTo7WEMyG/sSw0OD+/jxvRWo9vSt4n1+7bs09Z6XorDOWgLgis9qUXxrMXxCuoPaa CnE+i4yJsC+RGjOjluPVZKNftoHG6RYMEldbvsh7P+F5Ot7HSDmuwqzMcgcEFNpINOc0 kH0mRh0fYveJ5tqfLP5BNaMGOqS1r1fpLdEqTRdXqEe1M09ItWDHlMPF+9T8By2QeiUs uTyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128172; x=1723732972; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xSaLptLfozVkUpjw1oRI9Gwlbl43zWvMUP09a2upKVw=; b=FAec921lQhSwG+e15HFjw0P6eqvIzwjHUHG9v2HmuZYknWm/aVd5TSuCedfBmi2CSA X2beRjvJ6nBvyRTKONXzeko6TSjwgncy+9qxYthUbZ/Cd0bJ++H7UV9yOQkegoVGICUW DGSwTje0cHfqbfJgXOEEzjIPZuK7jB1nnysKJHBqoTZK3HC2gA8Two4WfTPJnC/Dit72 PtySu0CbozI4Rypk0aeXPS4Wq1lwsQ9rA8BgpyVJgj4XWTTqLmy42HBNTNlf3m0HAy9f zQBLa7IZJHtZNtzcSGlbQEpwW22GB6YYB46rN6SgcpcpV7OQIvoIJdJxaHZtX1d/cCkT VIrQ== X-Forwarded-Encrypted: i=1; AJvYcCVpgHMpuga2hGsylFs2Rh2bl2C7DY6rUmjsUzKVrpZ7TOprMNXOh2NaRNtA8XAxC9yb7zHXlrPZOtcbsx58Zi8tFb2/NT/NHKevNP+iYt3BzxIItm8= X-Gm-Message-State: AOJu0YxBRMNOTd9xFgbRwagFjEE83pcLnQCc7mawRnCF2U3TY7KvLR7G BQFKWxA1VJvrsojezVA6wUHMrSd96iwEpSlrCVTiRfnpolayJr6+EGDYypfvKm4= X-Google-Smtp-Source: AGHT+IFMK2qopGYBycdChfC/X1LoyzHCLARQBPYUBx9YA9oZBE8LNw3RFGiTAugu4rQMz79p2jq/4Q== X-Received: by 2002:a17:906:6a04:b0:a6f:1036:98cf with SMTP id a640c23a62f3a-a8090e8a3fcmr157838366b.54.1723128172451; Thu, 08 Aug 2024 07:42:52 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:52 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:51 +0100 Subject: [PATCH v6 10/20] clk: imx: imx6sx: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-10-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074254_001739_84FDCA5C X-CRM114-Status: GOOD ( 10.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6sx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c index 69f8f6f9ca49..4e42e30245b3 100644 --- a/drivers/clk/imx/clk-imx6sx.c +++ b/drivers/clk/imx/clk-imx6sx.c @@ -555,7 +555,5 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6SX_CLK_QSPI1_SEL]->clk, hws[IMX6SX_CLK_PLL2_BUS]->clk); clk_set_parent(hws[IMX6SX_CLK_QSPI2_SEL]->clk, hws[IMX6SX_CLK_PLL2_BUS]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6sx, "fsl,imx6sx-ccm", imx6sx_clocks_init); From patchwork Thu Aug 8 14:42:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757723 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3540DC3DA4A for ; Thu, 8 Aug 2024 14:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fELKcjyo4D+4io09ckq4Quxisz8/UoBpXMhoRi06ZaU=; b=BgE+4+ojd5/53T1ZSAjRdFRoH+ OX2wJnZ2SAOMnAA/Lh294YXEtf5pn4yVQjWvU8CFAHOXZqeEhRq70D36f9cu50kg52dS3BdpTZgrw EXBIbpP21U3Cey5LaxqwbWY2UIFGBnMvlKYRDo31A6+uKYAaasOjHwcmzrrKn6S9GmDMFtft0xfOm 4QStX2vS75H7g0fSPrJdL0CqBWbPh2Y/imJpbO2HTjAZwLT0xg9W8Yvqaf2JehdHpcX/KdTRK/e+b OF36RLMwv+VcwT4hi32Zpgwz4r7RId0L7LgrJqHduweO/shQrtY7/rJpKWH+tJ1SSmCvM8TCBe+Ta l6qZuX5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Sv-00000008bq9-357G; Thu, 08 Aug 2024 14:50:09 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lv-00000008ZQS-20Mf for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:58 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5b8c2a611adso1401708a12.1 for ; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128174; x=1723732974; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=fELKcjyo4D+4io09ckq4Quxisz8/UoBpXMhoRi06ZaU=; b=JzkSBJIyq1Sv/F4WitJhqvLNridrB5io21uXZ4FMqBASkb3p/1K2XM1Qr2I/BKwJPW mhdpWqaiPICUmIinYCVgr2FtT1C1gGyeghx58CZiJZ4/SaQBTpWEr+/hvWR7vcsOFvk0 ETk6iudnvsRov0XhUjuOyXDtaGtYZbDiXFqk3umZ0H1mrRiIIJ2b5QxSHH4lUs62MfW5 XzOVuH5EjLee/Kji8M04ZuvnhexQWxpj/DzbC7a06KHxBNKuIKE4kofrG8AbNbscswVw xJ4z49x4+ddUhSHQiUgn8BcRGIUH+gq54PASoq8mUjql/Sc+Jc6qOFcMbRmg69BVAIgD re9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128174; x=1723732974; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fELKcjyo4D+4io09ckq4Quxisz8/UoBpXMhoRi06ZaU=; b=mfbsYMYVirBHC+4sRbMQWCgRIWd/E6h9xSjOesnCjZp/ruZUMPrs4klEafeCNF0X+w cCPttd2I/WQgl7NAWYlqLPDtPQwXA70P96DWsscLJWZZWn7x7RrX0isTiwaYlBHVtotX 7hfqH2CfaVxVWK0A9cT06EEbLBuQc5uMBixbuMdbzGAqyfhu8IfWMEEdPHrQsNhB8LnQ ZLxwsniIADfKCXxgsYWhG+McloDPewemdSrwXKInXR98aYhM8raYcqcVJlusogRMRSl7 5nFGbQs+8wFDsVmRnkc1dpGwv1rXezmpx5T0TYe2reOhnP+euKVNF4+38KT3ZIFMtZqD o1mw== X-Forwarded-Encrypted: i=1; AJvYcCVZxEDEwk2Ke6nyu4+0TWSCaZwt5l7NX6j2exk+lyn5V61Gk2s9L3H3Cz2gROfbApPk8edi57LT44BPAVnvpiKf7Rbd+pwulJZaNZQNZofY3N55Sdg= X-Gm-Message-State: AOJu0YwfSOW8BRTFDKjGsffwOpa7yZcZNvXztSUcmlBQowp5FQvh057n jXbk+ySlQbhhjLqfhxUUanzBjwwRcKy4edFIPWaBWB/ceodqrjWgi6fXV+QnVX0= X-Google-Smtp-Source: AGHT+IEdiR2uqxL40ypq1eVBsdbq009S5HpqMJsLtiHNMyRcup08bUljMUs/bT8PIRSRi7Q4xYViWw== X-Received: by 2002:a17:907:97cc:b0:a7a:b9dd:775f with SMTP id a640c23a62f3a-a8090e3cf84mr182258966b.55.1723128173566; Thu, 08 Aug 2024 07:42:53 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:52 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:52 +0100 Subject: [PATCH v6 11/20] clk: imx: imx6ul: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-11-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074255_553912_ED27DFA6 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6ul.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c index 05c7a82b751f..b828cecd3690 100644 --- a/drivers/clk/imx/clk-imx6ul.c +++ b/drivers/clk/imx/clk-imx6ul.c @@ -544,8 +544,6 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6UL_CLK_ENET1_REF_SEL]->clk, hws[IMX6UL_CLK_ENET1_REF_125M]->clk); clk_set_parent(hws[IMX6UL_CLK_ENET2_REF_SEL]->clk, hws[IMX6UL_CLK_ENET2_REF_125M]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6ul, "fsl,imx6ul-ccm", imx6ul_clocks_init); From patchwork Thu Aug 8 14:42:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757724 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6EFC7C52D6F for ; Thu, 8 Aug 2024 14:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0sTSIJgqJzgG9ZOeXhaBq4KjYwR+dgEfjYLq292FpHw=; b=RcaS/W5B3eczcOWIgBNsEKsHSY 5EtwMgzT5w60/q8b2qFFPQ5zRTR3b6hEMEbHLic5R32UzUMQk487FXlstzEdp27H0wOv80H24wpD6 2KoG0/XrCB11MBy810olVfXuDlMqnhC2KFqpRLBLb/sENfbAD7w0VFKVl6DWjtIrPOeTuomJtPCck armx8TPAq3VsMo2NPyFzXQ60skaPZiHSu4l8qfT3OKGg7hqnAts8eCPJ4cncw14YjoJv1qIe7gK4C TJQ107uoZr7cKXzEBL21aujBUbqPpsE06IcnvkskMSs3tUp6R34Pu7ap/H75Jf7aGtCjx/KXrHwPm 9q+xfvHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4TS-00000008c0L-2D3Y; Thu, 08 Aug 2024 14:50:42 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lw-00000008ZQf-1oTP for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:58 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a7ab5fc975dso95717466b.1 for ; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128174; x=1723732974; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0sTSIJgqJzgG9ZOeXhaBq4KjYwR+dgEfjYLq292FpHw=; b=gxasnhSeQV0LbFBwwMHp3/XDjar8qqX8h3xZkVST9YxQLDYUKe/hqIgsRF2QOQnnHn lOyskyT8xp/4m8AA0FGJanNnGe7QF1x9ilgBwwG1QirkOY+hW4mj3oZgV7bw0+QWJwyw gkYc8M06CbtGse+qqe6josOd/GOp+rke5MXLs4zekA9Sg1KBomCpJwpCXuItagcePd+N UrSG6oWq3T0HaTJK8wMpRBFc9U4vUO0ZGlgdrwiOLGWRpXgB9yX9pjBJ8Rwk6gCbj2XW 3ZUqUMOZ27U0CO7w7W8fRkcOHq7RjkPkSK+wzkVtUb7UW1V64e6Lpi5AF5JK5NxajkS9 V4vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128174; x=1723732974; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0sTSIJgqJzgG9ZOeXhaBq4KjYwR+dgEfjYLq292FpHw=; b=L0lVfVv4Yd1Yj7RsGfr1Z1d9EfNPNgFXKzStA8V45THDovlgWHHtHeXP8BImkSYgku 6A6zl8pbnG++eEwsCTNRSoXlMc9wUU6bcusZOepDSMQ4eGfAdg00xeBNiPCY2JKZsz4Q XZ0FBQ1GBmjeonxu+C9KVhKLiOopJYPQID+kGIUWGiSsetNdKL18L74UDrdi8ARV50lN dhxrSmk6wCKtuwcCWkJw6Ltx2peQdM4Xj6N+H/tMAodjYFn1OobfIv10/B8BauC+Vok8 VDLA0XG8btelb9eoKwl2YrufIZBal0plkGoe3vYMZsHEjwPHOf05SN1DxSf0/poXKgjk 99mQ== X-Forwarded-Encrypted: i=1; AJvYcCVGQk7DKcLN63N31NNuWloCo07PQp7ANBXcxJ/Bh/cUHIttruLinXNGPaZ+6zIsVvf8PRybN4mVM6mjvL9+VVxUzOfRy/Pgof0vcy9Ufz/VdH5YVVw= X-Gm-Message-State: AOJu0YwoKDSudSCBFr1Pd6rR25vIOuqpmlvLWVbMkbToPy80Mm5fTAC0 vBVByLor2CApkZmus5EdpAJDdR29DrDfugqAKL5pnxDMdF2MDishZxmLsT2hbDA= X-Google-Smtp-Source: AGHT+IHR8FpJNdzuqaSJlCS0dga7rPYT+WlNUnJeQS1SMhIWL9rsDOEKxbf+CirVT6VIRhxUGlibjg== X-Received: by 2002:a17:907:2d13:b0:a7a:952b:95b1 with SMTP id a640c23a62f3a-a8090c82bdemr182009266b.24.1723128174054; Thu, 08 Aug 2024 07:42:54 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:53 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:53 +0100 Subject: [PATCH v6 12/20] clk: imx: imx7d: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-12-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074256_568592_A1BD9012 X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx7d.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 99adc55e3f5d..789cc3afd062 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -882,7 +882,5 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) hws[IMX7D_USB1_MAIN_480M_CLK] = imx_clk_hw_fixed_factor("pll_usb1_main_clk", "osc", 20, 1); hws[IMX7D_USB_MAIN_480M_CLK] = imx_clk_hw_fixed_factor("pll_usb_main_clk", "osc", 20, 1); - imx_register_uart_clocks(); - } CLK_OF_DECLARE(imx7d, "fsl,imx7d-ccm", imx7d_clocks_init); From patchwork Thu Aug 8 14:42:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757725 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 04493C52D6F for ; Thu, 8 Aug 2024 14:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=645sqhYxiGhlKPfMQkDqwsuRcG9BMBI/0rO4pG2w9xI=; b=RXbLLg4D41SzQvEWNA6d2ZpkUZ +w8zKxMWZNm1732hHXeTZrzeCgwoVjy7Qc05AWaDTB0E5/FLXmPbuYtFtlusMkkmDuuMV9UrVeLrj fTS8RzbvCy/RD64WKwTmESpvxQkNdWLG3nn7euKhZnKfdsnmr+lZ3YL22o3r9rtLbe98IxLg4lACm Iq/fdjADvtWc8SgMmn5sPUgP56/4ut8woI+KU4vo5QsSreQ66AJEBTSlOtbNRZozI043eG4yKTs2A ARGfqzUstn/2lfS74T7S977MrSTxJU2wXRMcRq/AX949OPe4c5fmZowxizCElvxDzMDdc3hOUzcVp XN9yegnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4U0-00000008cD0-2oZD; Thu, 08 Aug 2024 14:51:16 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lw-00000008ZQx-3Lys for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:59 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a7a8a4f21aeso128840666b.2 for ; Thu, 08 Aug 2024 07:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128175; x=1723732975; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=645sqhYxiGhlKPfMQkDqwsuRcG9BMBI/0rO4pG2w9xI=; b=eFWTmJpUz2LtQiDJInXdRe/KDG+CrNCFhbyjIc5Kt/esKMcWYzJ8+S01FRZ/uIdb10 rjq/blxh4HbHibzp0p8NPc7VU+7IUQTIIZfq5O1y2zgmdAn56YtLYgsFIoiz110fOU2V KKQcWZ17Ft76g7j8odl3UD9ZRfwI3VydMRFDVeACe8cyftYzkM/QqyC+DKrQN0ANvByI rjCXTdCuW2UxrbwOC/cu1BpL2IR0tE9I5VFuiBoJzSjO6pUxEE+FxF0IYnR7Q01wrjhI 9ueE/TdlY5jKk680C/G/Fi3ZU1XEhKPV8UMuMyLiMvQlkWhtPsUMr6BaNO/ifDzf6RkP 5DVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128175; x=1723732975; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=645sqhYxiGhlKPfMQkDqwsuRcG9BMBI/0rO4pG2w9xI=; b=b8ONUGssnWZ8TwIHnYqbSgx6uWCH4j8vksm8rFgtROrLRHHdzgdXeWPFtsDBu2sDMv VfBv4nP6Gh87/Hgm3KnKjZNmfmfSsn7Tl4r9vHIQUDOpqfxeY24qHNdYZTkYt+suQlsm alPm3094fya5UQa3khhEcdhfA9p8S5QpXR7uxbZL6jwToB1Z0VSO+JUzCjOt+sdfAoiU Y31iNdvxFBla9gUF8InYb7DXHcfDr3cOuziTkB6x1Th67lDao+2gi4JdsWq2HdQeUTss MD2npBZGFtrDy+sfnHRACv509aorxK5LsCQbHVazfiBOyEow9NNYw0DqVkNfcjEugSfb vmOQ== X-Forwarded-Encrypted: i=1; AJvYcCWyYmhTV1BwZicFmhO2Lgx3mTSqRH7Ur0OkGD1XmYw7P7TAMVsYuhTg23ahSTOp8EZNbrPr1DQL/I++sybOrh5RqlFh32uT1RBcdQ3WoW1tPU/6v1o= X-Gm-Message-State: AOJu0YwI+F5AMoVZMiQPWtDTAMZMN16WONXQbn2WgWTd30LpF5jikKga xgJckW3XdYH7Iuvl3TUVTM11Ruv1eVtwPap+SqA03XTyhkf45T51el/efbaBUq5UCjf5azsvVla yxXrrDg== X-Google-Smtp-Source: AGHT+IHmAxlBw4O2VUn/A8heI+wfeEh/p3nxcqvtlZJmde0nHyNMStnoDpAJEr+6mWLx5is/WLQ66A== X-Received: by 2002:a17:907:e6e7:b0:a7d:3de1:4ab2 with SMTP id a640c23a62f3a-a8090c829ecmr157391766b.27.1723128174551; Thu, 08 Aug 2024 07:42:54 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:54 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:54 +0100 Subject: [PATCH v6 13/20] clk: imx: imx7ulp: drop calls to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-13-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074256_931907_C41B59CF X-CRM114-Status: GOOD ( 10.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. This should also plug a memory and clock reference leak due to multiple calls to imx_register_uart_clocks(), one for each clock unit. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx7ulp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx7ulp.c b/drivers/clk/imx/clk-imx7ulp.c index f4a48a42637f..517fb388ce85 100644 --- a/drivers/clk/imx/clk-imx7ulp.c +++ b/drivers/clk/imx/clk-imx7ulp.c @@ -175,8 +175,6 @@ static void __init imx7ulp_clk_pcc2_init(struct device_node *np) imx_check_clk_hws(hws, clk_data->num); of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx7ulp_clk_pcc2, "fsl,imx7ulp-pcc2", imx7ulp_clk_pcc2_init); @@ -222,8 +220,6 @@ static void __init imx7ulp_clk_pcc3_init(struct device_node *np) imx_check_clk_hws(hws, clk_data->num); of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx7ulp_clk_pcc3, "fsl,imx7ulp-pcc3", imx7ulp_clk_pcc3_init); From patchwork Thu Aug 8 14:42:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757722 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3BE9C3DA4A for ; Thu, 8 Aug 2024 14:49:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=y1g12t0G6k+jblt/poXm1qsZh457ASaKEWb3Du9DwTI=; b=orbTGZy2+4stiav5Vfk7KxlAej 5lOQ5HiUTd081RR0/JHukrYYAktFAqngarhH/Tqj+F2Lcdsgr6NRH67ttjbVb4oEZH8bb00E4sQyt wb4eGaqMM1vmaONcTjLGyehTcV5XyI61didWyoq27VZ7kMfL3PrNjd1G/NElqErY7RqX70HVQeEFb pMjAO37TyFLnn5/ionE5Ws4g/E0j+Qhqz0aVJN6yd7in0NcwQHJlU0lr+r88GljL0hq4o0a/sc+7g BF1DHVHncykIYbuL4whYECkllYnn9gxLNLfa15u/C9VU11AIIF/YAJBpVbHOO0jsS2vGTDPH4zdLF pJnkyGwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4SP-00000008bft-08Uo; Thu, 08 Aug 2024 14:49:37 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lw-00000008ZRC-31mt for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:58 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5b8c2a611adso1401740a12.1 for ; Thu, 08 Aug 2024 07:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128175; x=1723732975; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=y1g12t0G6k+jblt/poXm1qsZh457ASaKEWb3Du9DwTI=; b=AqBCtOa/0CT+aAbs6RrgPsQMNX2KTsDO3Inhsksu/fyAfDr+0uxb/iC0mbSFueIhmf b9w4YxzONuJs2KqPnZcBPDwwT0N+CGU1lQ5JC9qRlxgRWGh19+X+XvownZlBR9ft0cMd loGzNshaLD6LambnKyFPeJ9K3MgBA8CmJ7FdcbPps8FNstU+nc9SdRvdN6wRZynhCe6g O+c+J6bGGKS5lbUH6iO+TGFjVethmK9C9Ewm/hDZ8WcnmnzEgxvFCA4HKnLz4NW0Qfhq M9XvV0/sIGGIeVIGuu5pFuI1Z+vaf5tqvqXH/qviNUkouG45XaeJ9OpSeOdrwQiA81JO McNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128175; x=1723732975; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y1g12t0G6k+jblt/poXm1qsZh457ASaKEWb3Du9DwTI=; b=ScOvBFjeoGIxTrWMummeR5umcUyJgvB8GgOqf724IRL7EoNDYnKLx6Md7FQxZRW2Ut +x3hnBAqlNtjV6+C9hiu6u5+zioMTC3XvFk8EI/auw7tyHDtaihkwd7YwCjs4tXZ0b+q dRgzSzXRT95FmJJvUuT15Sqqdx14uoBiPtvjnw2Ugh/bWgmDB4EGXgGbqP3aGdRnZqjK 6r7h3aqGUa2qlz6inLKwjqX3Pq7qmwDPF2+3OAgX9CwIudgYBT1LL4GmKMVBvgjJSaD5 K5U62vIdXrWCf83IMIT24qvS7YSYV8pdOi7H/YrOaLGd9uxUhwBp4YyyybMaLiyP5s/S trMA== X-Forwarded-Encrypted: i=1; AJvYcCWJMffuX7mecMQqZN9YfwpIlKg0vy8/mthcodcwrWZOtMvFPp0v/Zi42OyJLTzpzhcJwXlIpONEhIyz3x7jD3ekh6a3B0JCWh9+T3X5URhX5wCGzvE= X-Gm-Message-State: AOJu0YxKF6XWbLrhRBd6STnXnR6Cyz2WEOKmN6MrD5GXMXw9SpgiP0A4 TEqSIdMLbYL97FWKB9XrI+3RvmXdXmEskEXlQ8DAv1yfK71I+8u1TEQVSt8dClE= X-Google-Smtp-Source: AGHT+IGAVsFCrxEa0nQ5OTtx9phtXWv1jG1gQdi9l9rawdN91kA1XKHVuXOiSginDsSrGNiBP3l5gA== X-Received: by 2002:a17:907:c8a0:b0:a7a:83f8:cfd2 with SMTP id a640c23a62f3a-a8090c68ad0mr142902266b.17.1723128175026; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:54 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:55 +0100 Subject: [PATCH v6 14/20] clk: imx: imx8mm: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-14-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074256_824371_F5F8EC70 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 342049b847b9..3f649da0230d 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -609,8 +609,6 @@ static int imx8mm_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:42:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757728 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F99AC52D6F for ; Thu, 8 Aug 2024 14:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=c1BcegJWI56BA/X7kHTU13cyTVS8Z7HSnW1uFBI1IcY=; b=vBfiQS7xUcaTvA8pzlrl+VOD0h 2CVjwlOh1UftRlZ7AoB5t//oqqm6IdB0pduYi7ntcN3pRBfTT9l8zpuLi+6E7a+eVYqNM6oiTwGeo ZA93v/CTVpyTJBm46LjB/lHRID+wAjTQclFKqU+4kwspA6Vl+7W8emnZSor70S/Xk5JBHWCVr7BSX wsC1tkr9rffApJFNbV3/e+cdPU5miQGA5pJdEyijJT6i1fumNkjXLhgPCbZiRCChmLjojIjip1orM hFCpLnpux//gJ3KJEUHu1KOoTmyVgD8zcdVxSSU2ElY5HcEEbczHUsiB7bFrCjmobh5KdBRPK4ITg nHuiVdJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Va-00000008cak-3paF; Thu, 08 Aug 2024 14:52:54 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lx-00000008ZRM-34MB for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:59 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5af6a1afa7bso1225223a12.1 for ; Thu, 08 Aug 2024 07:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128175; x=1723732975; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=c1BcegJWI56BA/X7kHTU13cyTVS8Z7HSnW1uFBI1IcY=; b=XrdVobE7HIzlqMOkvTdAcwkfCvcFQyfpBknhOua+MBNpp50l50Kt4RtJBsEeTysQ9X kQzDaEwHNcXpoBZRaowYFRnXqtryuCa5i/bTeqzU+hvsDdx2faStq6F2lZks3Yw0EuvN PJVKShF+r8Cw+3joLqcLwzTWKJeR5s3bj4owhILwhZRUnXxvkh1tZ4cQ2gq4i1AfqBpL ePcrJcsjsQjx4Q8R5AxsVkH7Iwv7/d5uM/eNnRypcjbZinBqtH8Llb28ze/5ocGXXFjT gclbJDvZA2Arsf9UnRwB+eLydetcTiSuu1/ChiJqksmvAZzgCZXiPtT3sn27dWMQuMj+ C88Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128175; x=1723732975; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c1BcegJWI56BA/X7kHTU13cyTVS8Z7HSnW1uFBI1IcY=; b=UskZwKDTYr/KlEXcnRi6nVoawknfcqzGzckqY2OyKOVdlZpSQFfQJSt5t51vojVFhl Q3HJ+nUHoZd6UHynK3s2Qj8J/8Bo2D2xj24eMlAP6OxJmf6LD68wSXFCxGvbc4HIXEaB HXG5xg8FtFtzT+cOej1sJtnx1NxumBvUn5O6bggxCdGSIE5A/YHM7tM6g3JUPlvYWEnr gH28j9lTT6WRBNsmpsJE2VLtbuaGVwYzk0xqWLkkGcXDSqjGd70bMoSuQQJPQsdh5apN RhmjrVtMzCTcCDsfA3Ts/UCc26uRE0wY6uSV6MTPNTQFHq33iqZwbPD7mqtqZHygpj1f h1NQ== X-Forwarded-Encrypted: i=1; AJvYcCUnkxPz77YmDsnGRWtOyDwYeRxVYvMILKiBlEAfPwxLhYxxesAcKkYYzcLtGyC1GzPmwqv2xnmq+hAAGYVE+wnH39AhNhZ/JnkNrZxAGKLVh82qcmI= X-Gm-Message-State: AOJu0Yy3jjcUvwBx+QyqC+ORlprFNsrnBqT9fDedT58ZG5Sx35DSkkrk L1hqc2vTnZqB/fy5sh1JsQX63ndjuzgq6CN0ZJjzn+WcWM7fU2iPskSqLv5/v04= X-Google-Smtp-Source: AGHT+IGEjPZ6D3mw9uu41eGOe1/9dd+KO47dw+ehD6I1DSyq5FPAseWCyaO5gOFwMq0QnQVKVDCluA== X-Received: by 2002:a17:907:72d4:b0:a72:750d:ab08 with SMTP id a640c23a62f3a-a8090c32551mr185430666b.14.1723128175435; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:55 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:56 +0100 Subject: [PATCH v6 15/20] clk: imx: imx8mn: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-15-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074257_794115_E3D260F0 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mn.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index ab77e148e70c..af7f4c6b51e9 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -603,8 +603,6 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:42:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757727 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 871F1C52D6F for ; Thu, 8 Aug 2024 14:52:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Of9JwvhLlmcEUvlQcUj1kyU6mPikzafRwyTDPy8iQT8=; b=aFCD1BmYZ5odHyo4/E2ITyPqzG pJaX/6mtrHOLVK0psq560rXmcEdVZmgJIES7W1hpCSVwIlUrxM2bS6uYAa5tu0ZauMBorIlf5O4dz 1rBSwAwfW0bMSErzDfvrOQxQ1KkQPHdsPx+XYTBR7BVX1yUyahppuRzImho6REc/BVippOLziw1M7 ustphG2/VE1BNxH7BNSHr7HqrwLp6QzKWKo9+SHz5f/p8eMRhfIMLYMaaHHeRzkB3YEU/R5veK6T9 e9Gdua1KFIjsdWO+ys5doS19gnS03BHxyt8bqd44pACB9xboHYMIkUfwRmZpyPhldHPyCnuHht8Ar XSDDFnvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4V3-00000008cTg-3jEH; Thu, 08 Aug 2024 14:52:22 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lx-00000008ZRa-2fJ2 for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:59 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5b8c2a6135dso1405966a12.1 for ; Thu, 08 Aug 2024 07:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128176; x=1723732976; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Of9JwvhLlmcEUvlQcUj1kyU6mPikzafRwyTDPy8iQT8=; b=oQzm+4u8cOOH1rXgmc+J0LBXIOK1y2JnXxhm2hzeFxL+++cYXSc9wGKoXV9QQXqCnP /VvdhsfwPFE+pWVvsspXomuX04uSK7UnJdefmXStbcNPz2rzYc8aiAnYP3UPfPcEZS/T yxtPmiYS70upM8GthTtIWXBU4bRYeXfRRH4MTv49W/S8JPUZtgbQGVfWC15pneYe1+nu E3M9+1HoOfISMTEDNEjhOihMtLdfEKaoQbR2LLXAB3YziMBnnUFW4H2yUxq63jBYzjBX rntTm8ZAloyPvEw432xlYGDb6TRUUJgzJou7t0WXlJ9m4ehjNl9ZDtemOWqG9aQES4wV UcYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128176; x=1723732976; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Of9JwvhLlmcEUvlQcUj1kyU6mPikzafRwyTDPy8iQT8=; b=OvWMfN6c1yATX5Ftu/coWvHFCr4RbhD7rcV1v4LG/EWOKyuWB/KiTW0lIwNkFJRtUl r2pf/zCMoq3+Pfyfso3UY5J7TokstpJeAjdGl3Wbv7m/6sGD7flPXmvaYskrH+IMv7RO YUCrC578V3lP65sapGON28aYWXcenAk3qRLxik+RKU8H0uqRVdjxDWoeNFcKPxfu+8f+ 2Vrkn4CZ6ggz22P2PT1hHNBIvJl28C9kLo6d+SYgXkEVp30+6Hj+7onmQ69UJMcOr9PU +CAHvY1QxNzdLZUdG9XJTf669qXAKkGbDOCeLvOQonj1E6r4/cZ9uYmhJ0Ab7UaEo4hW b+2g== X-Forwarded-Encrypted: i=1; AJvYcCUW2ksKCK1C5btgZNq8ivgFfocpjYoA+PS5PX+779JVofWhxcvEDQo7CP0Y1oAwsnDZE/9XiYaIAjsCFduInDz2lRfUaLLiVXrAHeCTnmIdxL8lNyM= X-Gm-Message-State: AOJu0Yxdz1D5T9bFDH1i4Xu3mo0XhDywogVroG+swwcIBYSuqJF/+TIZ /Pa9ToxIO/IUC/7nOTuGzPuVKhXaNBGEL6bf+hJPpev2vwlRkQ0lFgS4J6BgRGc= X-Google-Smtp-Source: AGHT+IFSPGIEwEerUResLzza1dskdeBStZ+yQq7ZShNAdphCslLhbLSN6wQiNk3FONRiktC7/rGCQA== X-Received: by 2002:a17:907:a47:b0:a6f:33d6:2d45 with SMTP id a640c23a62f3a-a8090eb48a1mr160008266b.60.1723128175854; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:55 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:57 +0100 Subject: [PATCH v6 16/20] clk: imx: imx8mp: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-16-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074257_744941_C99A6248 X-CRM114-Status: GOOD ( 10.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 516dbd170c8a..1c128c051199 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -721,8 +721,6 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) return err; } - imx_register_uart_clocks(); - return 0; } From patchwork Thu Aug 8 14:42:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757726 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58ECFC3DA4A for ; Thu, 8 Aug 2024 14:51:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UhprNA5ngdnDDPt6+AGX+wASXbiO8LYK4hmScrmWYDY=; b=OZbT2RewtpyHGtjfM2qiK7pH9V 0EX41YflW/NOAItsbIMGuxDyem+zrsUMBSRYEfoYab4zywTUYZF3Hmp4MGyVlvdV//8cAaDFk48h9 EAASJWDHz+3WK+f9z3EUR6hDNrJmNoM0UrOXbCp1ChtsgW76db2dIxuIznbMRVLuKyZBQZeQLSfr4 He11zbh+PVxQuT9rmKPO1JEqCzsLC7LlLoR9C373q8gFQW0B24gJA3aUKE05vGpuSVSctYSPmX4TU IwTTjOQSGNuFbeBk34HPDyneC0wKts8SvATT4jqLus2ou9ovQJkwg3xYh4xm1ljf1wmuHaS3RvuOC zdKSgzfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4UX-00000008cL6-1a9n; Thu, 08 Aug 2024 14:51:49 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lx-00000008ZSH-2rpy for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:42:59 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a7b2dbd81e3so138789966b.1 for ; Thu, 08 Aug 2024 07:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128176; x=1723732976; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UhprNA5ngdnDDPt6+AGX+wASXbiO8LYK4hmScrmWYDY=; b=EpDKddOL1wdUepJjZKc5sE+jV/w90fFduiNWQpzhol00ahMUF8Iferj7oOJh2p99kK UhU1e+r1HfdYP2xA/ZYDhD4JqZLZC7eW++BcyyqxXR+Ku/vMHLJmrw/oNdRVTAA+aqUF aLQ9dN/S9ufnaAnfUMF8OQH9Lp3rFfpqh9lKhbBITYJOTTJVDWhc7T7hlwllGvjP7GxN f0QZUbaMThHZluxMGVsve4gfGQk1EO058gWwvyjm4sbOE7FbdYBCRqGR/eD/Qim6jb04 HMjnyrZZ6w2AgW9v723rXZ8CXl77/ZIcpD2CLE06/92PuEjbNTRibC5Sy1ijwplPaHWN bTXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128176; x=1723732976; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UhprNA5ngdnDDPt6+AGX+wASXbiO8LYK4hmScrmWYDY=; b=GsWpvM/eZxt0TrKfdrl4kKBLLCQNiqBCUjeC+RFfiwhw++zQjduN5TRjDsjDngTbtF 9urwiEE090Qd/M7rAK0MDCKURTWw1HDNFUkIi5pD7iYcy24ajtTK81QyKTJM7W3GO8ry IpQqSn9TNPX5zlD69Vq1DhRhI167HcYGkVM8d4Bj4cXDOQrTV3Isj7JYV2Ncr+yMjEXn yUzPLGyKmV0fs9zgD9LCJlbupTJsNtg4OBZGEHCazJur3x/H3E7TOPkRG7IDVcumybsh Ow0VdSCA3BMT0Gng5UunFM4LsEZkL/2d4fEf62vLkgPU5L3KQSahRg/NqlsrTVxL13rI NnJQ== X-Forwarded-Encrypted: i=1; AJvYcCVprnHzXU0+gU+S8YRFqq8XMvYTpiSDVT1DUO2ii6woBuIMyGx/rRX7qK4PvqPim3OhfwKQiEY3q+qmrf6SaXlj0462Vd2xuuyPK0Wp4/c1qIqDmi8= X-Gm-Message-State: AOJu0YwCF2VfMOMkdK5ZxaGtv5SgwVPEqcOyKq+Z8Tet/l8uaIbYpwuR odnEJbo/qkYAMV7PW2hnx4xEdbu4b0jSihKPnuNz7vi415JFP+x3vy2TKplYgyQ= X-Google-Smtp-Source: AGHT+IGqiI0vglxKcqyNtx/0toY2g/EAxqDpRfsnT3HZrYPk9OUoo9cgt0W0M6U+BQ788mgVAuOhmA== X-Received: by 2002:a17:907:f1dc:b0:a7a:9d70:82b9 with SMTP id a640c23a62f3a-a8090c826fcmr135586466b.17.1723128176276; Thu, 08 Aug 2024 07:42:56 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:55 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:58 +0100 Subject: [PATCH v6 17/20] clk: imx: imx8mq: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-17-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074257_754134_D8D104EF X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index f70ed231b92d..db9aaec42800 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -604,8 +604,6 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:42:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757730 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E506EC52D6F for ; Thu, 8 Aug 2024 14:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EZspTtdY5QAEUSn7UgNMVbYIWDm0rZtsqchGrqjMzsE=; b=Vux/SOIep+RQqWWbtiIF8xiHGw k1C0QbtUrGIDvoIVamL+IRSXWcjqDNGvF6kB3mxeXADRG68MHjibj+WNvLvhzRPlZtIPICDiRDIwu E5lYEw/kf9zRPiUbRBEHlwS5pd4yKKFccwxmtYAhNg1+S3JxWNMZaYc5K9TM1Q+vZ53Vj85+llHEE Y5EP6yFLPCYd9tKEZj7Fgo0VR9JeKWHYNCOpkSNSRScso4iivOoqSEglmq5m2m7mTk2O/yJfKoUU/ hWMzxP5m+4snm+EQ2Y/fYIJlhgjB+jVUg+cfSe8AvjwkZYGtO2pxVj8mBwRKB2wN8L1kfWfcunrHA 5MUYbNtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Wc-00000008ckT-3ffm; Thu, 08 Aug 2024 14:53:58 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Ly-00000008ZSq-3Jov for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:43:00 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a7aada2358fso338697666b.0 for ; Thu, 08 Aug 2024 07:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128177; x=1723732977; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=EZspTtdY5QAEUSn7UgNMVbYIWDm0rZtsqchGrqjMzsE=; b=zhKcW7TK7Ke9ygeCKHZYgY9ZruBp9L4N6CpDzu6EVLqtW7+AAC/RUVFPKX7b2g/RnQ swCSTZsyUvtgq8uZEuw5CzBoeBfpCloyeBP04I80u3jzh0ir8oqCuFq+j1omPN0VBn1i /8BaC/iKZZbBRPxCih1HC8s0R1n6j846dnRd1E0Nn/ZJMbI+WMzH6HpO/I1fh+i9b5XA an1jz9XB1vILGObS63ZqQ34PtMNYIvlRhrSvY5PgomvYQlBRLXpzA6gr7j+H4CQsKuRl W0+/3Lt8gGB8J4Msulw3nma7zJiQwdJ6fK3rhqXMsCsmDZW0aPwV7mxDfIIfihqBbmra 3wAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128177; x=1723732977; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EZspTtdY5QAEUSn7UgNMVbYIWDm0rZtsqchGrqjMzsE=; b=o8UDVUTcHZSGy2JQwlkaqn8i1oQZlRKKFVKXvclRjzDDCUKI2c1PN7SwEMmKHQYyxd LM3lzdfRV+zCwoRUIUgVnwF6yVhSiH1zCqWZKz9OZdLStpDuhVDr7zYgQoROXRASlya1 dRfnX/Gjtu/3cb35JMX2KoMZOft6+c4GKh171IxnjvN9PqHdl39BNAZOwLXT1wNXZQw/ 0yc2XwZf7z8yGbVFydYVRT7oqLBd0hq2naBWrZ3JrMe+gkzn6n5l1hjrMZua3CD9SvVO 8Z+qjPlLoIInSSt1FQtDhELiThOxSI6w/ViCih4sRVaUMtYqppBI3zVNOMZowBanXVOS 9Z+w== X-Forwarded-Encrypted: i=1; AJvYcCV8T2ShnLrJnkuo5pfgKbuBYka5upXdujAhVj50MRxMwQGwlCf9vmlDPRqhgk/knxrMyrOEb+SP2dsirT/wtnASwp/+7no4GGyrhhAKAvOHYmE3sYs= X-Gm-Message-State: AOJu0YyWWZDUnW+XC1ajHHnedpWWNrHfcR4z58C9Ic3HrEfGG2E4tlT1 fBh+lqq4ozcQEQqQW64eybqshGfiEfym/YjC+SIbyb9ktn0d80aOc5TNECfk5Kc= X-Google-Smtp-Source: AGHT+IE7R8B3T4fgiuoLqDk3xF7+I+3kP37bpToSGsITYor/oRfOoUboQm8qOJh9YQr2roRMF9fkPA== X-Received: by 2002:a17:907:8692:b0:a7c:d284:4f1d with SMTP id a640c23a62f3a-a8091fd825emr175510066b.28.1723128176714; Thu, 08 Aug 2024 07:42:56 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:56 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:59 +0100 Subject: [PATCH v6 18/20] clk: imx: imx8ulp: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-18-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074258_878036_7C3785DA X-CRM114-Status: GOOD ( 10.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8ulp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8ulp.c b/drivers/clk/imx/clk-imx8ulp.c index 535b6364ca7e..5531e51a1e80 100644 --- a/drivers/clk/imx/clk-imx8ulp.c +++ b/drivers/clk/imx/clk-imx8ulp.c @@ -385,8 +385,6 @@ static int imx8ulp_clk_pcc3_init(struct platform_device *pdev) if (ret) return ret; - imx_register_uart_clocks(); - /* register the pcc3 reset controller */ return imx8ulp_pcc_reset_init(pdev, base, pcc3_resets, ARRAY_SIZE(pcc3_resets)); } From patchwork Thu Aug 8 14:43:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757729 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 776D7C52D6F for ; Thu, 8 Aug 2024 14:53:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Lpweh87gijIIJF4cQA1mk27Giq5WUQNyR9nG1a9dx7o=; b=Gw0Cwo17tsHKaDsZJxL9KFKm+r I1QOKQQSaMskHm4yE/egpN2zTWbXCQ6XJCHnk9x6838FdFT8RWSzCaf7lRVg1oEWxIQyJ3iY9IW66 HmNQmO/vFl8HbYoyut5pYBTfW9NWrhadGU8WB3fct124D7NtCVehn2ygBHMTg4I3iqIQmaXsEs+rf rzU36HON3PgOZZnJlzfSwjFkKJBARGXGmCSieGnqKVel8woHsjjti+WXn0iQpsRyXKKo1Eckg6/Eq Qi9FXXBLpWgMl63JOSQ8pwsX7cXu0dWE0E1ah4r/VEAcEiD4SR7fRIqJAYLE6Z3qzvuJXATe0vCwW x6D6bWqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4W6-00000008cez-1dmD; Thu, 08 Aug 2024 14:53:26 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Ly-00000008ZTQ-2KrI for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:43:00 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a7a8553db90so131238866b.2 for ; Thu, 08 Aug 2024 07:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128177; x=1723732977; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Lpweh87gijIIJF4cQA1mk27Giq5WUQNyR9nG1a9dx7o=; b=PIqSJ28b/tpVtjxVhBICKGS9qApHSfajKeraCgfotSd95GIR5I/+A/2TYgbXHGDzzD Lw/DDiT+5p2RtV0rtDSn4/RocPayVAPLOE1JJO5dV/JWeT0aycJHjw1aOOoqCw3oac9W Yq3nPBJSbDiJTaO9U2WWzMmRWHwTMv424d+120U9oUyBxr1OlzgwcWmnI8zyX6wBCZau SXGguRDxbGd2jFrG81lFuxV6Li/QvItm0o/Rm40Im36BKJ9w8vA0m7ST9N5a35JSk6hO CySalOkRbz2ckjXw5edJX3bvZKYPwsHCM4GdpLfIeRAn7vgfMEx6aLuqj86qzYMk5b6v 6snw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128177; x=1723732977; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Lpweh87gijIIJF4cQA1mk27Giq5WUQNyR9nG1a9dx7o=; b=JFXKnpbFfiOHMxVCa8qGa0LjrvpDO7yrBGlX4DZIaBkU1NJLSo1KJjtUpW0AQ2SyJJ 0KVZMzLK9E0l5+W5SaU7/bOSOg+uXxEyX6lx8X9ngTaBwzxRhSEKWuU3Zrl7/MosBZ1U 3/ZMsDZpakaWCHk1u/aoUivDMyCqVGbLncZJMLPQglh7KTBGNGFPcBcThLpkpB7HmoKT ZvDkGra8FykzR6bxhtMHm+1afiHSr1GS3rwPPuE2az3r8nwacG/8CbmMRb7ULNiUHl/3 duc+Ys4mAhQh3F2I6joHiG1KuUTxl9EzwO8TN3cGFwr89lQdIL45G1eFgopZd7B3n+WI C5AA== X-Forwarded-Encrypted: i=1; AJvYcCX3hhqXgXDSsGVVgv/iG3F54HudFznPRmITvgRA6evRoLABk7N21Ld5UwixaCrWoJmabXN91/DemStTOixrQTTaR872sKfgFreu2GixN/R9chyh1ig= X-Gm-Message-State: AOJu0Yz1bo7Jfb3bZc00V9XjAp9Cngy6nE+jKYEDI7WYaPJSm2vt3JQR ZacxLIUsL/XtaxHFuI8jGNPlg7x5AIie9aaL/MIl24gKzXbzU5AM+zh2coTyFck= X-Google-Smtp-Source: AGHT+IEwPmF6AHiigxgHBV+EJFuVs6w3OGWE4wzZqmI7eDvxo4EYmmOjzDlsuV9hWRsxZBFpbrUimg== X-Received: by 2002:a17:907:d59a:b0:a7a:c812:36c8 with SMTP id a640c23a62f3a-a8090c6b841mr159287966b.18.1723128177139; Thu, 08 Aug 2024 07:42:57 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:56 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:43:00 +0100 Subject: [PATCH v6 19/20] clk: imx: imx93: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-19-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074258_702096_14A25404 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx93.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index c6a9bc8ecc1f..9b8006b15d0c 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -343,8 +343,6 @@ static int imx93_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:43:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757731 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89641C52D6F for ; Thu, 8 Aug 2024 14:54:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=g4eCyKnwzwhvgvotyhGHB+vsH3GCQ4YaY3HQS5YaZiA=; b=hUG7NQMrJVpepT9lh689/8ToI8 H9+B4x9jIPy4+7x5N9lKw+OBZx7Wy5HrVnVkGxHBTQ35AkX+JBo/QjosrOdjZHSugfl6s1yRA5w6V BPig3y3wVrjaRO29RN8n6GtByruFQVSj/Oc9XfPFtpsETYOW5dacklt5mTTPVN1t1ZDn7t60nhKqZ WMKxXoZONTWxnXd3SZSm+dSWxFEscltxJ51mhdGSmEdmSmbJfZ+mMWsmGS+M6QI7QaOahlxgc/e2Q yMB5bCYpggK9fYw0geHGlA0V1zJLBrWFdpnIExMP85zXxDV328PUnLa8r2YeMO/GOH+zvMGXzMbd4 Il071M7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4X9-00000008cs8-2vGz; Thu, 08 Aug 2024 14:54:31 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc4Lz-00000008ZTp-2pdT for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:43:01 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a7a9cf7d3f3so131215466b.1 for ; Thu, 08 Aug 2024 07:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128178; x=1723732978; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=g4eCyKnwzwhvgvotyhGHB+vsH3GCQ4YaY3HQS5YaZiA=; b=h9XLuMMWqxWP1wVLdjO4rLFtE/+PLieeKUb/VFlWhxXhHiUuG3VuEQi1LQBThYv51X QUQwN9db8nDoH7GGMLhVcOCjfD5OctnW7isVkbXd0riEra83dDalPxa7XnruZ46PQ7Pz v3I99i2yZvRZZHLmJKIAG6tMwKFOQk9bSiIlJUfVc98E6F46RHIK6p3DsxMbeTHwniNx 0hlLIXyaLyYRRBjBX3+f/ftxCPZEjjymO2dUfiVXUEaWF3Y6fIHa0kiIsdQOaWeUgiy6 ZaFDd15sXdmtOKrB6nlC8ci8QKvJ6jY1fCmf721cjDbc1kW3nCoRu7okml0wuHxTKdmk Jcuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128178; x=1723732978; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g4eCyKnwzwhvgvotyhGHB+vsH3GCQ4YaY3HQS5YaZiA=; b=GEr/Im4N6mvKZbhHfitmngtVN8dbN2+nIZW9yzXN6GzGYG0I9G7pgHKabc3LR+Vvop j0M7WOPuORsodlrv8E0DfKvw5o4veqDRIl9AZvjltoDFREkeCBVB7GUOk+hCCX2wLCBX dKWA1cpimODhthKmlriHpT1FPwZlJmvCFTOzhOk9FUJkymGNseHQNoXt3j3JaYZr0rNb VzbjOv6UthqcuVOQOoJCyWqRoWsX2KYgY8NRVrJBIxWt6nZwpNscd78H4aP339zmFYUA YzkdaDmt1Ljcx4yXeJc31Vqpehe44//FPN9FK9RrvEoFVcnM1nERZymgZXlXGav64sSk ttzw== X-Forwarded-Encrypted: i=1; AJvYcCU39CWXbnSv0tB9suPFbjIxzT7xubWD2xv5MfQNsGRtHjX16otEgBvYBBjfQ+D408j5ZlZwEfKBWStPwyDekk+SMrdFv0kpAjOPeXmZZOxl+me7+1U= X-Gm-Message-State: AOJu0Yx7p9YCKKj1qcFIC1z8VmqU0Ey4WuPysV0P37VtYNfFwEESABDr hr6BowRPG6xIXp/fPWBKxQyznVKajB2LIuYCoU7f40o89TdABaArbozfFRCaWOXTF8t5kdIFZLf HBY0n2Q== X-Google-Smtp-Source: AGHT+IHqbohN5vuse2tZu05wgsB0D/3481cW3wuuO9L9OkxukplhEORcbJpoFFUAYLw6KR5UnB87lg== X-Received: by 2002:a17:907:da6:b0:a7a:c106:3640 with SMTP id a640c23a62f3a-a8090eff092mr152706366b.66.1723128177570; Thu, 08 Aug 2024 07:42:57 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:57 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:43:01 +0100 Subject: [PATCH v6 20/20] clk: imx: drop imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v6-20-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_074259_752464_F1B6B11D X-CRM114-Status: GOOD ( 13.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are no users of this anymore in the tree and the clk core implements something similar now, we can remove imx_register_uart_clocks(). Do so. Signed-off-by: André Draszik --- drivers/clk/imx/clk.c | 72 --------------------------------------------------- drivers/clk/imx/clk.h | 7 ----- 2 files changed, 79 deletions(-) diff --git a/drivers/clk/imx/clk.c b/drivers/clk/imx/clk.c index df83bd939492..5f998e56a4ed 100644 --- a/drivers/clk/imx/clk.c +++ b/drivers/clk/imx/clk.c @@ -154,77 +154,5 @@ void imx_cscmr1_fixup(u32 *val) return; } -#ifndef MODULE - -static bool imx_keep_uart_clocks; -static int imx_enabled_uart_clocks; -static struct clk **imx_uart_clocks; - -static int __init imx_keep_uart_clocks_param(char *str) -{ - imx_keep_uart_clocks = 1; - - return 0; -} -__setup_param("earlycon", imx_keep_uart_earlycon, - imx_keep_uart_clocks_param, 0); -__setup_param("earlyprintk", imx_keep_uart_earlyprintk, - imx_keep_uart_clocks_param, 0); - -void imx_register_uart_clocks(void) -{ - unsigned int num __maybe_unused; - - imx_enabled_uart_clocks = 0; - -/* i.MX boards use device trees now. For build tests without CONFIG_OF, do nothing */ -#ifdef CONFIG_OF - if (imx_keep_uart_clocks) { - int i; - - num = of_clk_get_parent_count(of_stdout); - if (!num) - return; - - if (!of_stdout) - return; - - imx_uart_clocks = kcalloc(num, sizeof(struct clk *), GFP_KERNEL); - if (!imx_uart_clocks) - return; - - for (i = 0; i < num; i++) { - imx_uart_clocks[imx_enabled_uart_clocks] = of_clk_get(of_stdout, i); - - /* Stop if there are no more of_stdout references */ - if (IS_ERR(imx_uart_clocks[imx_enabled_uart_clocks])) - return; - - /* Only enable the clock if it's not NULL */ - if (imx_uart_clocks[imx_enabled_uart_clocks]) - clk_prepare_enable(imx_uart_clocks[imx_enabled_uart_clocks++]); - } - } -#endif -} - -static int __init imx_clk_disable_uart(void) -{ - if (imx_keep_uart_clocks && imx_enabled_uart_clocks) { - int i; - - for (i = 0; i < imx_enabled_uart_clocks; i++) { - clk_disable_unprepare(imx_uart_clocks[i]); - clk_put(imx_uart_clocks[i]); - } - } - - kfree(imx_uart_clocks); - - return 0; -} -late_initcall_sync(imx_clk_disable_uart); -#endif - MODULE_DESCRIPTION("Common clock support for NXP i.MX SoC family"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index aa5202f284f3..314730f848f7 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -11,13 +11,6 @@ extern bool mcore_booted; void imx_check_clocks(struct clk *clks[], unsigned int count); void imx_check_clk_hws(struct clk_hw *clks[], unsigned int count); -#ifndef MODULE -void imx_register_uart_clocks(void); -#else -static inline void imx_register_uart_clocks(void) -{ -} -#endif void imx_mmdc_mask_handshake(void __iomem *ccm_base, unsigned int chn); void imx_unregister_hw_clocks(struct clk_hw *hws[], unsigned int count);