From patchwork Thu Aug 8 14:11:15 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: 13757537 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFDE118DF6E for ; Thu, 8 Aug 2024 14:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126282; cv=none; b=Pz8R3FgGcHjoRxlFk4uM6BZj6uuQHLYQw9GKZPdj5gWUH1CljGCAaCyctCGUljoaKKvtV1wEitJfRHQQ6L4aTC3zft5Zs3mj/L0Hbo2PQKwVFaqkh6Cj223lg9+CTVoRUdbSkK47VpyaO3ro4L74ptKxstoFlQLRdBWAgpXIgv0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126282; c=relaxed/simple; bh=quFHR8pTn+F+xGctBH9cf3497p01fCYxd5i3Wn9fVPM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AcpEDwlOggYg0UZQY+nm4n6jqXIiJ1mAgzCWwzSQXPFv2fLvgGcKRGyPpzXA9SCyG5bvFS8U52opdbytk7NPf0l6n3JC6NfX1qARoiGptVMRAlcBpolky/r3uwBmkmEmBq+zfuFSt0ThflLP11GmYtOdyFaaLDSoY1Ty2MUv+Jk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=z8CvQSGZ; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="z8CvQSGZ" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5b9d48d1456so1618680a12.1 for ; Thu, 08 Aug 2024 07:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126277; x=1723731077; darn=lists.linux.dev; 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=UaLjrFsw9Zi0L/EdvO9DIKyYpEUrx6lEBXaptLR+VmU=; b=z8CvQSGZAWq3+pgMyTlBZpz/omXe71HgEBtQbe8P7+2Kv9bcAOBUfiVXjDiMhxYi5N BKnMD4JcDkxNyI0MII5SYK5KBQvTlKUA3BG2+Fw6w7FcwSLZyQdTs/mkkPL4nI+aaUNk CyQL6PWtYov7qrcjCtRINPN+L0uxUUpfQ7B0rWFvSKJfk60IHilhf/MdN7x/9rp/Ns9R BaiQcfH2jbmHOaERYkh14usnyEtyNlTmbhfbE46tgkkDDP79BoycVW7vZjSvb/JJuw8q GDK//gt2XzRMursjmdG3LLT7VfU5jdaN5XyM301CDawYt5d2IpxGZo/nihzq+5yhEh/6 ZuUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126277; x=1723731077; 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=UaLjrFsw9Zi0L/EdvO9DIKyYpEUrx6lEBXaptLR+VmU=; b=RDBrHfJQ8smPN+fbl2QOaKzR4Ijz7ZQQbVrpkMrsBAoX85MAauI3zEv2w+PcvaAXoJ E73qgazTE2GLcjSTj4GfxLSOKLJrbxLCsL7v6Fs5UQt0lvo5g0P7nAYNIZ46dHpaKt16 xv/T+gOE5heZsx/+N0Tsn4dJAfx9Szvwqq1+ekS60QYR1e5vVs/+Tr/0/vqmltq0FFaI quyAotoIgVN0AWEfss7UI9j//7ODTAkXzDwFE1IOXx4YVgaeH2UxRpwTEKjj9r8luISe DncAMGI1zwLGpKE9n4X8otX0lBXFY9hzQPZBfUXqZMSjzX+USSF5l3uyzvCqIxtK18Tg S7/A== X-Forwarded-Encrypted: i=1; AJvYcCWGE5UcFo4SZurlUwT5pP76wWOTnJrW3NRfj7rRmuYM2HraXC6NNCO0IrUeB+xJeoT5pKU=@lists.linux.dev X-Gm-Message-State: AOJu0YzglvMyO1NkXf2hNq/EMoefqVi5O65l4MKXTkublga/8Z8EfFVP yJhm9jkBOxIgQvquNVSH9lSdRkf2EOvTRc8t0UJtyGQn093KVWUdkbAIzvaioKQ= X-Google-Smtp-Source: AGHT+IF2Z+gOOpOJVUcuLSGq7/jhh5CJfmmh1hSytACnK5GYE20eb1XtkmCCnKm8aJbOYVVy6x+hag== X-Received: by 2002:a05:6402:3585:b0:5a2:bfd1:b892 with SMTP id 4fb4d7f45d1cf-5bbb3c41273mr1981407a12.11.1723126277143; Thu, 08 Aug 2024 07:11:17 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:16 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:15 +0100 Subject: [PATCH v5 01/20] clk: bump stdout clock usage for earlycon Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-1-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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 --- drivers/clk/clk.c | 129 ++++++++++++++++++++++++++++++++++++++++ drivers/clk/samsung/clk-gs101.c | 1 + 2 files changed, 130 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); diff --git a/drivers/clk/samsung/clk-gs101.c b/drivers/clk/samsung/clk-gs101.c index 85098c61c15e..1759eb23263b 100644 --- a/drivers/clk/samsung/clk-gs101.c +++ b/drivers/clk/samsung/clk-gs101.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include From patchwork Thu Aug 8 14:11:16 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: 13757535 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6536E18E755 for ; Thu, 8 Aug 2024 14:11:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126281; cv=none; b=pNCctQSFM4R4BVpwemLErX0FoDgRM+Q/RZsoQxgKph9ncbeP0PnCdqcRSaJQ4sJ6Mx/JxfzGYYtQ/url26WDbHlZXEMFsNVpPDhesPwfaGKAN/aloa6d4CIt73+uMbCbbJ8LIO9uLCxpJfipHD8Mciu+p6WR5HnnrK4lF9c9xtw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126281; c=relaxed/simple; bh=YJSi6uCRK0b9FvCZAgAg7fTVxuzjlsUrLU2YoRGNUgc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZfmE7C917wDx5/zNFdQQm1XtZ+6phKrbOI+1FXSX/aIPHJs1FIdHP4t9l6GgreAyRw+gPeJLv1mno1J5isgyxg6emJJj6bBYBbeo7buVxQhE5fAE2M442j+gUd2XbzNcqMi8jcXGs9J/vUcxNkiPGZ9jdkP6UsfTDZt/tsjpK8E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NIpps6aF; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NIpps6aF" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5a20de39cfbso1079915a12.1 for ; Thu, 08 Aug 2024 07:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126278; x=1723731078; darn=lists.linux.dev; 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=i61g3HqvXtrI0H4Wdt6BZeDZIZP41pUUULE7Fmxi5BU=; b=NIpps6aFAbhfRllWgZaAwmNvBiEI947n3Bl1dM0MK13AS0KnBu5dVoX8AeIccoLQFU nTSz0Z3S3zrjlxwFTmLz32isXeXcErQzmgyR4156IzuoDrJr4mVMAlhl2/SXlwvO40QR ObeEVX4OkbRmmsTCWWXpO0g6LC91AlucSAws7+7jIATlzY/WPRMYmPz2DfcHlnD1dxBh d7o4AMTn8OV+ZAYtKkxOE67EplqxcYFPhBIvNwdtpLP+S8IuQODdMTL7A22ANi9klOmu 2B/TmR0KLfJtNrpuDNB9F6YVa0L8/qhivJHXKSAArfECAYkLaOFESFyrb5xdBQRo11qw wEew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126278; x=1723731078; 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=i61g3HqvXtrI0H4Wdt6BZeDZIZP41pUUULE7Fmxi5BU=; b=nHu3fX6m+71fLejc5DPS9W1lvjuY29mFFXm7WfjYd7cxU2biRLdRh03/xZDt3Iknpe Wx7URbtK65Wsc53yrq7yYnGzBlkBlg5AOXdvDcQnZFKFu7GADKA5AABUdOIGk/8++ft4 OyKc1+0dcd8Zax01Jpb310sP24oNcPOiAPTQsmX8FscPBF1KFeha0QIowMosLxzDlO8T T1099vQt6/8Kk8290w6ol4kFYn97Wtr0iTa3eHdL9b39a3NsVf8UUAqVdnSA3AUdeB2w 88sSrMWCkwHNRGqBUOFax4uZ9D1lHJGLp8Ky2Cs0mb2hwvthT+RMJwx4dGoNmSc0rWRe bGsw== X-Forwarded-Encrypted: i=1; AJvYcCWNDvGF1z/dKhreElAyFo3z5+dMZB0OKFT76P3Z5AcHeW0u3L8GkSfJCJDnu7tl9Ht32A18a+wj+jbsrbz4X1n/5wN1 X-Gm-Message-State: AOJu0YzrUXU4gozyKykZM90jDPshbiCFJTU77tsUbOI5l8bDx5kG8jO1 4mg8dmtgyXJXANieAVQTpoIv8PsfYmD3hKv7vLel1I95Z5/O92IsGybANadqTs4= X-Google-Smtp-Source: AGHT+IEiMhOMDiTpZBQDmYwk/4O0X4rmiXEoHQeeCddSIXSmt9SZ1xmlKbwP23bfJ7piM3Yp2IjSiw== X-Received: by 2002:a05:6402:2354:b0:5b8:34a9:7fd9 with SMTP id 4fb4d7f45d1cf-5bbb23c7b6dmr1889019a12.27.1723126277640; Thu, 08 Aug 2024 07:11:17 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:17 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:16 +0100 Subject: [PATCH v5 02/20] clk: samsung: gs101: don't mark non-essential (UART) clocks critical Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-2-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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 1759eb23263b..0c963e72e8bd 100644 --- a/drivers/clk/samsung/clk-gs101.c +++ b/drivers/clk/samsung/clk-gs101.c @@ -3947,20 +3947,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:11:17 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: 13757536 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4722218E758 for ; Thu, 8 Aug 2024 14:11:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126282; cv=none; b=RJD1cIX4pG/GeoHmen7MswrgkfCHexz1dSHhrWKk3AZpTbvccGufYM8ay5TW3HinuOKnARMArFAdz+Di16XEjMa4bTwAzxpEkqLQ+Jby1C/i1e2Tzt99JOEtUnTt0r+5z+XW/Jtuz/J5vUu3Gu5se5oZbgVhf42yMEi78vD9i/M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126282; c=relaxed/simple; bh=0YLrrUzUpbGAZRD9K0JKJsJf0lqzpBPah1/3yREgZxU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pJxqG+czKdVDZkWOUx7SzmKuADmb2LZJvvwS84fZrip+pJtFK9EMjLA7STXa/9BxuKedON1WuuDYPqxzqBRDQ0Wr3I78hAj3Nsa1j6XTWb5U+MIdgwtjibbh+SySKmg5yJX+FFD3kKOLvGBuqjZBd/i2UK8vhVHMzFENwTk6wmg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=luFXmFdn; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="luFXmFdn" Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2eeb1ba0468so13044411fa.0 for ; Thu, 08 Aug 2024 07:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126278; x=1723731078; darn=lists.linux.dev; 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=luFXmFdnqI+d/ysDIA3RTU3WqgZ9yJ3tP1am0aV3Y/aKZZbG6tEL0yeOS7fk4+ORQC 4KhQ81CyFdqrPNF+1SYwg2BoV9i5KC8VQhh09uwDEozJ87jXmr2zymjVZyzYcUadEtzi xezVgtGD9E0N8NSVWD3e0CIxhG1tidA8Ro9wCzo9kpIYeKhRerdHvVvVyUXDA1yntBDZ Ubzaqhe+RbGUW5VkFxaqySPtpQ4koorlKntbjQubb9WMO31iP92NJ+Ywv9cI2BXU0mLa Sfghen0/Qfy6bv2A3Rm/IRTg9TuHqssA1wr3qLRrRTwnlkoNpGeLgUxv4n2vv+6/kYKY Bg9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126278; x=1723731078; 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=r2PYPn+I7b5dx+Aq21XjyLpJ/D5TIaXZPASyU+LM5AJu8Zk7GbUwRX4MzlA9yghppR t1oJrxRp7IaIiple88N8wYyaOq2geT6Uz1RjOstcp3uegvsui9Jy94TusN7UGSLvUJUc P7le+LKhkW5r5olnv7789xiDuMCA8Zzh9DjeVqwevO60UTJQjZr/B/Y6TnnQaxWqLsG1 SsZzZqcfy9JCHsQUFD73hwg0te0ltt0mldzTP6CsNzJRxhR+LxcMftLud1AS77DxBqjI 70ZZVPdDmWgdlKBZAfuigOPE5b23vONtD+LBkQf8atcFDcfEyi0HdIogZ4LjrNohf8Nc oLEQ== X-Forwarded-Encrypted: i=1; AJvYcCWBCqCfNrXQhKiF4UlSLWHW7kcdvH8yK7OA/UMT4QQBSQNrcpgNxUoQa6n3e1xxq0qXG/i8thj1tdGmF65+Z0nGPR+i X-Gm-Message-State: AOJu0Yy4neCuCjZ8NjH6vT4lzGp3aDtMiuTLBp+OYpaRV8stE2usuqZZ 6BeBUMbjVPHUC8euT5L1GJxG2WFdbZXzEpKXLqk62Y9SGcFu9cHjSQdGpVSw/nk= X-Google-Smtp-Source: AGHT+IEY2DAUwJrjHTEH10xM6JFqkX4gRZp5wutBA8Sn+BdIuNTzPwSCN+6Nbt1OGfGJKNwnn6NPhA== X-Received: by 2002:a2e:b04c:0:b0:2f1:8624:a4c with SMTP id 38308e7fff4ca-2f19de79f8bmr13694521fa.47.1723126278097; Thu, 08 Aug 2024 07:11:18 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:17 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:17 +0100 Subject: [PATCH v5 03/20] clk: imx: imx25: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-3-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:18 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: 13757538 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F81A18E76B for ; Thu, 8 Aug 2024 14:11:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126282; cv=none; b=G0660kClDmarpWa/PFC5pVUN6N0TM8xpOwZeOTn0AYoqMTxgYj0jVmlFKfOv6dbl93eGmRF0KfYwjtfe/zKOfZMebpCfU9f4YZm8VBD8/KXWNx6T1MLh/ET1IKguO5qVRPrgF3yDq7JwubQ+nwcsjDCt+qDMOuSDgcuoNBOk6ME= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126282; c=relaxed/simple; bh=F85JnWhsga2fKjX8ofqy8VS4HE5CVI70avGh7w8r0jU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=A47fwieZY5mvjXD2TidXU11TqCwDd48RhKyzesfNaUTcR81NWX86q6D1NNKV2X73rdcpnMiyA806xE26/dpecesPe/YM1fQS1z6omIJlXV2sjSAAnkPKuAxOy+8EayRrZrsOrQGg8urPNVMkMTb5RMI6W2EMVSV+TP5lD01ZufU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=laPsV/JA; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="laPsV/JA" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5a309d1a788so1021292a12.3 for ; Thu, 08 Aug 2024 07:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126279; x=1723731079; darn=lists.linux.dev; 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=laPsV/JAPVVpJ/rxn9eZ7bSCehJbxUo8AXKuPUhqidooKJeBj7uff9JXsPOhzwTdJm v9lXKCIvZqGdAaWhlHS0qgckQMYM29aCr4jEGbnegihc69rJ3zrClGEzpO4m7fpJkpff bUKS+lFon2RF2Sp7Y5pJctRVZcOss2AiKoIcWsh8Chrg2faz4cBKVlxe0ct4kO6R081S iqoLmdUsYGMWOelnJiOdj+mWL7cmHrRroCaVPjl9P1S7NIpVBYvEObhAH8oxa7fI7YWN gOcQ81gN/HOms8O+KLMUrWpDYyPRNmHF8iPuq81RF/M3i6pT/qu87IcozrrM1zyOHm8C ewVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126279; x=1723731079; 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=exQafNEz0kp+WrJL/+aybfMVbv/QE9t8vQrYvLhGvYq2K9Bao8k18IxCZgtItBgnbO Wkxm1t8l4TaHD+vZZVE1LwxNy1m3eQzg8mRbP1haLvRyQ9FgPfucuqCsjzNsqJiKZuON LriEJD+SexbEdRuBYsE2VC3HqAF6t5oHGtRYT8MFnFsnQr+CGQOYtNOE/FcTT5Jnh6wt FBVx9JvD2aIq6os2zDTo9BJ8WRA8eCCMjWFhPToFHMibXyCnIJaEUkds2Wujr6ahTrep Y/JrgLLg/hblypa1wl6lfKA6zH+0SPGKmYZ7R5k1V5Jbs4uZjQw1O3vo/KCxkJ09g7Jx bf1g== X-Forwarded-Encrypted: i=1; AJvYcCWBP0EwVOp7+Jg90UZeGs4/h+JYQ5j4WNRptSR18cXDevhceqgca1UBSYgxNyzLFIcUil0e1tJt4adbe92vPpiFtUcT X-Gm-Message-State: AOJu0Yy3JcEqfXJAdfdu51TRhDlvracJcBIT2Wkq4YocoqQcEkT+Lm/0 MAg13Yw+a+pEXH50Y4JyyUtSDYRfuLwtqoQZ79fxSMxZnD6R/f2oZqSOyot6PHc= X-Google-Smtp-Source: AGHT+IGQvljBuJxnonICHpQDY/uQkKK/KV1ck0021rT8j6xJghx/FmB4/M4YPS1UIlFmnkBzuBf0oQ== X-Received: by 2002:a05:6402:208a:b0:5a1:6c50:a35 with SMTP id 4fb4d7f45d1cf-5bbb2411412mr1631283a12.37.1723126278581; Thu, 08 Aug 2024 07:11:18 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:18 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:18 +0100 Subject: [PATCH v5 04/20] clk: imx: imx27: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-4-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:19 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: 13757539 Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F6F318E77B for ; Thu, 8 Aug 2024 14:11:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126283; cv=none; b=LuTmImEladJdIhpe654Hr+rIXyOfk3Hv/QqFSh9vY4GCi5m7LKItQ2VUBPSEYN5bl9Gq4LOQyVLzGr59Kvjm7cv2PVsmC6VidLOTPRpKDmxxhlfLt9StxRyKZPI5kTOzgke4Ih7p1A11ZPS2aJqOhCKURDDIlCxlQzZpaTEzOus= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126283; c=relaxed/simple; bh=HMlBx4X05JcRgo1zDJUFrZT9TkayrN7B5twwxpWIidA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=daeZRrFkARYXdFUhsWuwc0FJfCDo22OdW9CNEGYqJH2Gc6Z9ZOOxTFy9JX/nl3KZ8CzekRvSyd9yIQWF8oHtIqPQAZGDIbZNi/XGZhgp+XWa/Q6tjAXXp1VVCtWovzV7PccDT1RUBKx14ZK9fdEsel0/gLWuzdyKbPfX6Pn3cHI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Lntpcp9X; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Lntpcp9X" Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2f136e23229so10196871fa.1 for ; Thu, 08 Aug 2024 07:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126279; x=1723731079; darn=lists.linux.dev; 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=Lntpcp9XGI8CiX7uwLShQ7Tp8sKxgdp0ThT+H6eHFKrxCp+H24HP1Y4lhydmzcHQKK nhdl+nas/KwDdYKkPao03xSmjQi9X3qomZDcQA03E7NZYBqToNJTqgaNu+wCHpdHYgDm miILG/4UVMZXqscgomdq0SkkFZhRsLBKbugO4CqaDP7/9BWrAmxwNdUnmwU2DNOj7hNN Ix+PErWZnx8slkJERY0BuYv4wswVBqA1RuYow2tAgF5xBVG+5RwMvNGcJK+ei/Hm6hfh e2XIMw01Xtepb3PPJBr91VSbCly+mpSq6Vyk+FXxI/Vy8SZlEWDO8yz/ieClhyxYI6lB PGCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126279; x=1723731079; 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=pmiEFBLrdgA2ZoTYt3H4zA/aXMj0yHJR7KZE4JeoT3bagC5oFsm4hksIZhjnC6tJDM RLMCjI+KwvXVmIdNXnIRVN4U9j2WP7P+VHdBhhIrt4aFzoMN13bR8pLyCDnvY+ksNtbq /FIWM2KoIdcBiaJ5hSh7jbzCevhmaMIpQrlqEFtFJG77ZI+eqgDR9L47Gc73TGUkV/wt zK0N6EZeXwbV+BilucdIBoLXmCrOReRW7Ns2HT5W9f8Hqu8iOpQoXzmBjD4xZhdea1Tz Pij3TZXrK1xMi7GMDTjoYpd8Nbiiw6LeBsFwJSHkMmuaf7g5wL03xlSEP0SyoBVW74Mq YwHQ== X-Forwarded-Encrypted: i=1; AJvYcCXvfTzWIC4x4H3Xcg0asaMOnUUV704G40UtbtP6I5eHEbtzytOGl0fg/FT/GcxxlGK7p+Q2qOnJJI+p+wcS6VUTBTnE X-Gm-Message-State: AOJu0YzII98iG4lHklPqbeYhGG2la+xzZErpqCukiq+Znfuxnrnswdxq zEZpnb4rmZXiih2CXybJHjOrRghVI1VbnLwR6kM2XfJsE7BLXHsNVY7J65FEycc= X-Google-Smtp-Source: AGHT+IGWH0S/ei/y1WthSRTTdpDm06f1SlUXQDUywXr6T6gJBaiJZrXYiF4RkJwrM9dehhv/LYiJsw== X-Received: by 2002:a2e:7009:0:b0:2f1:597b:9aa4 with SMTP id 38308e7fff4ca-2f19de63496mr13785151fa.35.1723126279118; Thu, 08 Aug 2024 07:11:19 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:18 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:19 +0100 Subject: [PATCH v5 05/20] clk: imx: imx35: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-5-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:20 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: 13757540 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89FFC18CC05 for ; Thu, 8 Aug 2024 14:11:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126284; cv=none; b=p1hDUx6kOEXf0qnYlMKwBLVn4QTVuLZTN0pb9DShE54V4uXL1mV5gmNgc0qwwS2VHbuaN++CXbbKtPdKX3WnzzOvizSnQgLafNtcfqs92zobLzJji+0gjoNQJNVasrRVn2vD1nu1mGFPm4YO9YXAiUBEaEB17n1b3eZdyXDkuh8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126284; c=relaxed/simple; bh=BM5NOBExieRXZnAEQvVUw0Kowl8OGVo6wjlq8o0hJrA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZQh1qJnZMwViG57kERxkrISrKZXmblmT/qgv89YrgrL7q7CL86rbMQcwZdHSFx/91neOyUG3oH7PTdwuSYI7UbciIjevPprDBrzvogkmb/1BJ3fD8X6J2zHzBNRd+kXMqBqVQBHDD8imu+oeAldMD/+llcZzwgbuJE+8ZN+XbM0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FSNQkIk8; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FSNQkIk8" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5bba25c1e15so1189342a12.2 for ; Thu, 08 Aug 2024 07:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126280; x=1723731080; darn=lists.linux.dev; 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=FSNQkIk8j+wh/qGEMezA7hvpzal7P6fFJnvGSXh8Vaklohulsgo97SQmcufdwJo9fz Vfgw0+5o5nvcb+vrVU6m7c8bioe2uYMJo+mxX5TbM2RTJOEwTxh4t3dbxRlJ3etrm1N9 BRVJCkUgrJDG7xs1BBReUY71zsKfA+HDbLPnv6YNPnjR1pkeqysMgmApbN1TtdmvGZwW ZCo1u2FjFMDS+Dcpa1lO+PEwKLcWzXLSFhD5yexNEdMS/z6avOJB3L6nWG5QGVbukm7W 7Y61iegVGqEwAf1/SzFW852ePYLEuu+eUpgf66KP57hB5JL0XeBEpPEJyCaD+WrjTOFA RxBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126280; x=1723731080; 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=W4WgN5IoQhQpYcdmRzkDAVq35JW7RegwWprF9B87e7Jqm4bL997cMzF7OdAV411tpJ XIBTgR6eMwdxu5PSQGgOB1RuLmGcavssr6aymH0jpPweX7EMrcHT+8SlMCGHNfjRtEah bYJR3PBvwM6O1iEYQpQjdO+eVbFtMr0SWQDYuzCERRHQcjfLqGjDd3h9qxPSnsQXyNPd 1lxanSM3bgQI/GfXGH7ltf53jrtLiDqtl9A+9n/ehOnAlFcXx5TCsP7y71ytkh1JU9h0 M7YVdvhb5DEcPsbBUQv0ufS/BVQ1Wlelf6TyroWD2lWmv2mJvCsQ7kCMAHKxOqPka/QH MONw== X-Forwarded-Encrypted: i=1; AJvYcCUBr62KbyfZ8rPuY5dVa7YYDG/PW0/I7SVhDOsB05t+12m81FmSWksg7ZYCrEO7sPVtGFiEOrhF0nuPhksOgRi2CTiX X-Gm-Message-State: AOJu0YyuYEVYKWytH6saBl7jogSoc/EoyJV2mbrgIr0tqf9ameLo/uFR LhNR8wxYYc65IpSy9f5h7xhQauoPSWSERXx6zZzIuviXV8icoFiWMCCzwNFgwEM= X-Google-Smtp-Source: AGHT+IGtyeiAxYcp18rF8HoQf16HSx6tLGtDmNJrCO+VQaF0ML3hsMyoqYty49GZM6aDNVCYElHp5w== X-Received: by 2002:a05:6402:2695:b0:57c:7471:a0dd with SMTP id 4fb4d7f45d1cf-5bbb21a3148mr1640366a12.12.1723126279666; Thu, 08 Aug 2024 07:11:19 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:19 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:20 +0100 Subject: [PATCH v5 06/20] clk: imx: imx5: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-6-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:21 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: 13757542 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B41E18E05A for ; Thu, 8 Aug 2024 14:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126285; cv=none; b=ZsU//QnJfkcOCeLmuyMblx76eT83zJ1cCUC5EF2UmTtOSvb1AlfFtjv4Vv83o9po8l9pCH6kwW752T0y7yW9eahthJuRcL3OVX7Sf13RLL2oSXhS1fLcpjR4oJbGm6eKUa+v/W7VoftSvS2t7dWSF1PoRumEe/9TFNlVzLpQA+M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126285; c=relaxed/simple; bh=SiZ3szIGvyuxD1G7YmXCV9iLcepTAaj5c+gARHQ/bJ0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BWjH8jX5k9NFWCufNsgAmS0gLmYy0i/ngO0BC9nyPH/fdZnIaCpmp9/hJPTtoQ2Jdqk9aVecVZRkKv0leM+6buPi0F14Fr8OqCbtyXPN7uMnhGNbpf/+zO2QMorq7B2+0iWja58KHuBx18R6vkC5CQKgzW9Kg+ua3pZ+PTlZoAA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uI1YmOac; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uI1YmOac" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-530e2235688so1091864e87.3 for ; Thu, 08 Aug 2024 07:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126280; x=1723731080; darn=lists.linux.dev; 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=uI1YmOacR5ELvAg7lObn+jMiTGNXg7OLjZ6KM3kL7zQZji5ML0iYbD51VK5IV1LLd1 HsEsy5fcorG8VNVfdeKymFvuJF8zc5BJlyXU/gQV3vEVkFviSLxI9/QImAtdEaNLbPsS IqdqUmR0H0KkNwruh+KwKbHjcH8qsSNIsmw72peRfKZ9vwqtIjpoBxiKXpPG01CzgToa aNVYPsg1K4+kQ14OJhGDDXUxusFQKkWBVIK8kBUF3BGFwJn6t4OoFwKasRUpwnxDu66L xTlvnSfselgYMfj/Mg+ddr0y5cqSlTyZ/9lVhqQC3ZGA/jZFE6J5U2kTduzn1MHVP1TL fNpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126280; x=1723731080; 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=ftsN+Bqa7Uch+wi1Zz8Zg6iO7mAPP8TXUhkVliACXJJgZ5oAN29NOambWqrhAkp8zN ewtB98V65irQlUhMNm6fzkugI2UyqPsbkTAab/d1B9xBtAQ2ztFU7mFLdxt16LGpGjVB fTrYktJILF3B7xh462FqZSfwi1KtXBKuJthSoKadEPAcJkYHRScP8SPGc3SCYeC32f1S fj1i3yW18DoVd7bD5VDG0lftfvMiUtKKuISt/wzi04aija8IRitzd5bW0lac39lzOocS 7c0U/gPzAz41XAQy36aBL+9ZRpUQ9QBGqqFQsNHketx+wcKBbveGrZR1OaFdBorIP7d+ bENA== X-Forwarded-Encrypted: i=1; AJvYcCWgxO8RVXcCDHpHkTB3qHU1sYb0qXATeIhJj98F9twQmUrPya1zeHaqGhFoVGj59Hm7cqosEdLcdbW+vOxLqRXjmtom X-Gm-Message-State: AOJu0YxVs6NyDZVpHwP2fLDOGMJPBwZy3NXg4s4y7lZsRNxsE+f7fx8P 5AVx6WVOV7HNyKbXf9A6RfuVfCJtSGmJSf4MGPfVW9w9GWCpsgToOvqaQC2u6K4= X-Google-Smtp-Source: AGHT+IH5Kf6gdlRKSpC6X2ZKv/aljG4na8Kr//uvGtQcNgodFdSqi5phhv7A8UtaPZwiOthbvaQKXA== X-Received: by 2002:a05:6512:3d18:b0:530:aa53:60f6 with SMTP id 2adb3069b0e04-530e581ffb9mr1693230e87.15.1723126280108; Thu, 08 Aug 2024 07:11:20 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:19 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:21 +0100 Subject: [PATCH v5 07/20] clk: imx: imx6q: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-7-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:22 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: 13757541 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5426018EFD4 for ; Thu, 8 Aug 2024 14:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126285; cv=none; b=KaZYuPa8VholJHdteppWriuilkpn7Im8/ase0uqTyzgjUyxVhK9QE/Khm8Ef5M5IeoF2pudkUpTr+4lcBAHZM3V+GwttOyb3GwbnV5UapYu0QqPuZFzH8EgacU2xIhfO1kU8xQ0grppvPmX6FGuKLgMmdKgsfDaqWPLiH7CPdyM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126285; c=relaxed/simple; bh=gR0CyM9a7lgnJr3lEM9JUrDdLahkhfxbkDJhWgDwKZg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HA9izTASS5BSo95+W41Rnb+n2UHhM2R3GWkG1AlsNexIN3C/zB4FCIgl9vJzwmgjgqq3BvczxTDzOayqxs4uxdINzX6Zz95wgR4ZvHrFNsK927FqVryIGW/qBsuvNJXjfsbfPuAl67AprGX0Dq2T3EtBfFV6rHEXIiu6N0jwmhA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=E2sEe1bC; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="E2sEe1bC" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5a156556fb4so1189155a12.3 for ; Thu, 08 Aug 2024 07:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126280; x=1723731080; darn=lists.linux.dev; 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=E2sEe1bCXQwspiJryzjnS8GeBLLZG0SBCQG3l4SEaKWtVY8bMNDCLLnN8WdLi7yaeX rybLIMovjf3OYYXn34HknA4ERSYVo4kzjNSfKF44jc9Pij1WRRMHLlJX+Cmfvtm1+29t qh7y4jtqSRMtk7kiTfFd5H6PtgnZa/alXJJ6es1+9YiGgFkNrUgcL/9lx0c4TFo+qf3Z C3hjtretVqSksNoU6b6i/dIqYMH3O3HWVnm/lnyARhZgRVO3xwmoe31dXJcqQ1r0Tegt AC1t2q0W2VoZt8NRWv7WB/HJsdI+jDfblia/d7B+9tE0qJbI9r/2iHqOGpAEJyvDWKrC 351A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126280; x=1723731080; 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=iX+1faoHZRqnB17WittXoByI0CX82OCYLIEzIw2ZSQn0oDFDlTdmdWsJOjuSXFjaC+ jonn8uV3yU7W7jQchMhjIkgHooUj2JkUMNphLq/6LsQxyMaXp1ZqdDMIbqDGqLTyLnel s+iMUkAksQRdy/DZ9wqmKU+y/0czXHvBn2NDOBcTwP+mNeeU4FCCeW5dSDxJpaJTZwFd HVbUUWWACYiE9kgJThTbkLbxiSB4AWSGNNHcVIWzJWmk0gU5I29PNB7y7rp0DB3oFbbm 2/OIKZ9N8kjFNbb8sTlSlQOww/yBZkI2KwJh+ft7JSpOzSEp7wEZTnJIQI/It5PJXBZ8 BxGw== X-Forwarded-Encrypted: i=1; AJvYcCU4CvKUsA1Dau369ZcZ5Y53zy8OmGm0ntw1Fj7ykwxDiDSYpUGCmYrzZkZ/5Nr+Fz8AWS/qPzLCX3bZxtl5nfm4ZBbN X-Gm-Message-State: AOJu0Ywm3lV6NdFw0ni2P3MkAj/JHvJvzVdAi6hWnwRpaeHwRTm3p1cs PGhm32S9SMk5WnTSnKCOtQ60CBG8GbgSQw+Kb3IkG4+j+4bzejucJP27maV2dEc= X-Google-Smtp-Source: AGHT+IHHbEYfKvz99NCzEnYTqfn7cB+94G7FgbH5KFNqsiOTBHtM9BvVoArHK526vLwSDjCHbxrRMA== X-Received: by 2002:a05:6402:27d3:b0:5a7:48de:deb7 with SMTP id 4fb4d7f45d1cf-5bbb21a4daemr1489870a12.14.1723126280575; Thu, 08 Aug 2024 07:11:20 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:20 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:22 +0100 Subject: [PATCH v5 08/20] clk: imx: imx6sl: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-8-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:23 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: 13757543 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E09118EFF5 for ; Thu, 8 Aug 2024 14:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126286; cv=none; b=QBalIUte6+8BbkEs70Sg0bzrBFXEs2aqLhfbbZQOy1FU/zDoV8BfUmpvgep+pvhkZLX/4y8SOE0bNUtFNqopGYkvwUJuTUHWaTbLBHCnCRDbVr6efdsArww5rCHoBXpQiZW9ksOavQiqxnDJns9O5C1CAl85VnjMR8GposMf5RM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126286; c=relaxed/simple; bh=F8XBaUKciL76OFnGIv5KAgXWQ49BMItLdMHThv/YF90=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GAf43QDe+CJL3NLZumv3cE6D6002z7fho7eFDK9Vx9vXQARiCanPwG4ex/ZObp4CdQ8dmVsVJ5vCjaUYngiNOnhDMpgRm1UmHLK9iH/Mjb+2H5CXijv37m/fm+MsDjUJmil+RcJ/dRZwHjssfYrC3exZ/rRDRSoqYqnTTk3Lgn4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uQltJrNo; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uQltJrNo" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2ef7fef3ccfso10277071fa.3 for ; Thu, 08 Aug 2024 07:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126281; x=1723731081; darn=lists.linux.dev; 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=uQltJrNoQd5GZrzgGJTwAt+2mqZWyIvc1Tt7RSiAd7t8yoFTSIEVlR3jC7cvRMjw/E QGpQIqL7Oyovsq8g1IjWHQrpo4DxMA9Ep2tg+2b5BLPvr/YTVFnkCU5ayPqvDMhI4TZs 5UMsbr4x0D+f1cmm0fXwJI1+Sxl+l01udvQOQond1yBiPZ7Ki150ItL26Ex/ljkSzs46 NJ8sUvVBGAlyqoSxLwaa0k2oYbd8NrZlIQgwMJtJIlXEz8onfdw9oFLAJ31x+Hy/K7Ri eQ4mDawVVodYLrkUWdYxcUIrWjOnDwAy8skcxGpg1Wx1b3oN8Lx5Ox4CZ41rm3+gWGNo Pb7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126281; x=1723731081; 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=EucYuC+wdgiqlBLjm6TDCmstHHMAZC57RVFx/o15JpIQHTAbZE0RzmVRk1zHgI1WW2 4g2GCGsQVnaAvWAeTNEKZuiUWUpOqMe+++aUhVJ1OdRvFbozCGtnNAy3Lf2jz9V1zDSf XEVsmhN7RejsLBHRhc1h+VyboUXAEWzPPV3zEsB5+rnU635mLSj9/kb7wDXfn44jT1C5 NRD6/KTeAywh0cAAl78TyJk2jfIc3XwysXXMWjNPnQQzOyoTuFg6E5rK/QtbE9QkBVnW ZTZdFqj/UWxwbdQWp0DeTVxILgnj7ps/HDncd/5UB5yXtMWPNHOF26Hg8KHVkDJw4jR8 Ni+Q== X-Forwarded-Encrypted: i=1; AJvYcCWyGW2OSxscV2Ut99iaP8DZYNbKWVMPc220sBteVfIKCW0gqaegBoeFkgZ3jXDP69Tq8vklIOAAD3NNwfmpL3kRwvAV X-Gm-Message-State: AOJu0Yycgrdcn/rvXjn+hG8Ni4aG6zi8Uo/exOPDv/pg/2zKdC82MmhO LoO2J7NDPgG3AdLrHwWS2Ik8P/va/8D4F1MwkyIK6dFIvF5EpS6FO040EP4EPBU= X-Google-Smtp-Source: AGHT+IE+EuzjKtlzVGUkIG93q6FhwJZo7ntOcGAcERKFIalXABnZj7xmQM8pOykTOJhv2cPudFbycw== X-Received: by 2002:a2e:f01:0:b0:2ef:2dac:9078 with SMTP id 38308e7fff4ca-2f19de2a28emr14087411fa.16.1723126281066; Thu, 08 Aug 2024 07:11:21 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:20 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:23 +0100 Subject: [PATCH v5 09/20] clk: imx: imx6sll: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-9-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:24 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: 13757544 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A0E818EFF4 for ; Thu, 8 Aug 2024 14:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126286; cv=none; b=vDHLpZjQcdgkRORbf3M1dN2mu1i5lnJP0gYk12no/9Xy4LDnHKFA0Dt6xphXY0fiOmsnqOrNjw4VhCnioFWWOEBLtPvWi/yeseUB9fRzURL0lTHXXmvPrE3GgEERyZK7sDF5Uy0VeKyjlt9XODD/6kN8DZPgHXd6qhZDbS0zq2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126286; c=relaxed/simple; bh=Aa36Al+8XL+o6jnCRaXGcn3QPeSfqDekEcFkrR4ZXoI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=W4kDhg8oirmSc+VRtjGhP1YfYqNUcNmqxFEgi2TYPqIp1TNf4JMMTYQOxoTBgYCmGB9qmkZqz0z/wdFJskKnUd704mn3XgwqSqaV3RyauxPYJwpv/OjTbpdaBccZ6BpZU+F8UAemJZHSwA4nKxTmZpWn5/tZBieL4MEWyOWbHpI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tUwYJzvy; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tUwYJzvy" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5b5b67d0024so1168330a12.0 for ; Thu, 08 Aug 2024 07:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126282; x=1723731082; darn=lists.linux.dev; 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=tUwYJzvya7KCkBR3WlUCBBVjKQXBp2khTnzmCI5FZcbm8c96cShn3Q0YmmIAuZfQEs IXNt5DwvVkbjujtaCubG/PG4u7txJGheZWO0xT0vC0ORHQfBGY5HOqwGB3IKxQGqdxmW pQIoA+x+9GoJRRFNWuKVV4yMFFj56a/Ur0aesCgk5DfC97DBQw2Vx/Ms6XGEvKLGxvia 6/bIiJKgTA/+orhRkX8UkM/yibyioib9daxM41fscFYJn9VmHfQF2myFSTknuJSQ5pGi nOmWKs3xmkJhzWjj4g4Oj7+T4ViadWx2JTKdOGuaVCyQaifyCoYER94jub9Le+8gDLHY 9Gmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126282; x=1723731082; 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=Q4z1mLh2O94X1vVWB80XHkgyHsB33Bat+iUPtdl9sSEAssUXu2Z6zJftLd4q/7H5x3 tOf0gLTpY07GkgAgrLWOhL82TzgTExrET3ZB+dtwxsewyrCDNmIxlPc22Rwn/Zo9V9/J JG0UbAQ3dcvLnVdhfeFdTaO3r5LkbgZ/MO+Yv8P0zAHKy4xuXoMDcJruQgE/+nQHNUqs I5wZN+QI29PVFrudG+W0MsQlVnwOiMOmpfTusuLHZHf4FUwc3ZyJ/8vItxStLbqMkS3k UxjJgkbUILHTL7AfVM2df6kng4MhKn41AJG+ghaSMJSB8fyR1gjxmifxnHRzIvnreKPM 6wMQ== X-Forwarded-Encrypted: i=1; AJvYcCVDbOFcUpNFWhLXLn1AKVq7fW/K/9orSc8OF7ybjw7hsgsZqTqfDi9j4A5zXcY0rZW4KfZycImWwHRa9ETQl7Fc9gjn X-Gm-Message-State: AOJu0Yx7jbYvGOBoOG/NAaqC0dozuu+R1xsoxduzc0Y9/7r1jiQFQ8yN 6tkRTZjJsRCI3/+MnmgiySVrtdr3YSsgiNZ1KMXwZ4AlB0O2AqtOKKAmcCXv0MQ= X-Google-Smtp-Source: AGHT+IEfS7LGmhzwOfvg0WuiGG6clp5qzEGX5Jeh5uDmvlBV96anV1MuY8BGYSssk+Dyt3tkyKIdwQ== X-Received: by 2002:a05:6402:3484:b0:5a7:464a:ac0 with SMTP id 4fb4d7f45d1cf-5bbb21bdde4mr1617742a12.11.1723126281574; Thu, 08 Aug 2024 07:11:21 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:21 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:24 +0100 Subject: [PATCH v5 10/20] clk: imx: imx6sx: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-10-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:25 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: 13757546 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 822E318F2D6 for ; Thu, 8 Aug 2024 14:11:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126288; cv=none; b=dvffhEnnYc37uGm/IT8Lg/l3aMCEshCyh9LywPXMi9ByGbge+yWo6azL6hkUu9/hXsEncV/qgxhYbCMf1zXSqyolTQkfpwl766a1sNIJQyt4p6ZoVHCTWqYsGdICtcBAv8NWMiJB/y/qyTtbldtzPpy+g7Z+6uKd+JOg6BdMrQ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126288; c=relaxed/simple; bh=RCzb4T7ygPujxOgSIHXjGoBW3H5sHyUhE9zlzlMY0qY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Fw00/x0xCE9o7/v4rT2fKgXDYvdR8KQNwQ0rHu+4A+w1gwvUid9KF/HW/JKeReKs6779zN5PQZyL70NQyVCq2I+C7J5ChVXcHrToB0UXjfa/7qPdQOavBIFomT++1d2yacl6Il1L2Z4kqXs4A+/DCvIHW4t5baYMPlyTAiV40vc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dOoK4uGB; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dOoK4uGB" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5a15692b6f6so1130778a12.0 for ; Thu, 08 Aug 2024 07:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126282; x=1723731082; darn=lists.linux.dev; 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=dOoK4uGB9fc19ZrEZjd/3mrVKrDnBZxQvVlP6stabzSBSWGNqEQzlApf+pU2pIl7E4 SIbDAhp3seNXfM4JJ0ZsnWNZj5PFGjnTaUm8JbWGE2tKf0AstvPk1z8DuOQQVMZIw+53 +lk8NVa+KwIIPeYDxiGKpI7dlEY8ocxShs4qJOHVIU63EQSVAfGx56bc+H4bmcflXa6p iKhnACBfY1+I7yRAyzVc9GW9W+OYayqrtzkdl/9VejjA5Vm3TrDGFa3i3XLmQ+SQp0eu MiC3aCyJAxIx67fOD7Gk2xgabddI3hLau8L6CHMswKxCQDZy4yUbJrZgB0IyOSpb57p/ LCMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126282; x=1723731082; 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=NPb/YcwWNCMQAssRDFVFbuufCYX77iCVS23+RlHChwgMUlm0yYkkZ+PbSDC9uL3Ce5 /xUTkltai963gyO/1+LFoTaV7NnkldZVcTX2OORxoMnFY1fAwt9FAaFOY5jrxzKkpKSc KilddRscTluevL9jKRKpsnznhxtXV8OOTr7azS04/gz407BDxwiOrSb6VVqHRGSemrHo keQk8aXRCLBokgA3YeLo7h8V7X06zLUfEab5UkaJIDRBeLNNKHjNwciMor3a9Cy+uBma QsBpmbuOJR4LRZyQmcMwHTmWsn0MLswdp+z1MpGDInKQ9/Tjz2HMHQm7TEGbempTmSlN ReRQ== X-Forwarded-Encrypted: i=1; AJvYcCWQR8Vz3eD9nN8wIoS6jdPp8vd9D14HAk+XYzL9aZy6yyE4H0nIfyZ/gMokqb43u49DeFZcoLTJG0mYmtzRZFI1SW4o X-Gm-Message-State: AOJu0YzkqD9r2KNGQt4hlcGetIODduBk66l+5EWUtuf6pyayYHOeaxBn hnp0CuLKw6VvznCA7HemxoJX4GxRnEyVwHtLLXzFE7BjvK8vrimTeQb/HCnSt7s= X-Google-Smtp-Source: AGHT+IFXR1vW0WZ0FRgrHfrqZdVlmPqP0fVrSp2izewTrWhjcdUCbNwG/FeaTyMsaopKQeaan59LLw== X-Received: by 2002:a05:6402:270d:b0:5a3:4ae8:cbd3 with SMTP id 4fb4d7f45d1cf-5bbb21a38a5mr1707354a12.11.1723126282055; Thu, 08 Aug 2024 07:11:22 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:21 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:25 +0100 Subject: [PATCH v5 11/20] clk: imx: imx6ul: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-11-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:26 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: 13757545 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0D6218F2D9 for ; Thu, 8 Aug 2024 14:11:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126287; cv=none; b=eGJrimdZinooUZshXCoV2G/aXBees8CISiRsFoHlDAGAYNGlCIqwXF167tkM5ZO4+WrW3sxWjP2wNRaTnQtXwv1DpOFdMJlT7B64an3K/XNzfot5v2ptrO9CfMoX/lkoMmsCGk9l8AfNt417W9cVBzaabSLryrUyXZ4l9zI7qos= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126287; c=relaxed/simple; bh=k4Mp7OQtKEMyYQQBprE0etTznHJ6XNdrfUzHCPYj4Ho=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CyAqIjWYEpd2xK1TyUQeZnrKrI3REm5wdlkf5yMGYKEQnZjSEuMOyVOAdjiu5fMU9EhKGjhl3AUkbMoQxxDBp5+LY6HNwefHyoI4/S5N5V93WdNxU0lOs+19AFHMPiACBNZzC5Nbrrzsh0cEyZkTTtGDKhtfAkTDEhK71Am5HSM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=m5UQHOJP; arc=none smtp.client-ip=209.85.208.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="m5UQHOJP" Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2f029e9c9cfso15496971fa.2 for ; Thu, 08 Aug 2024 07:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126283; x=1723731083; darn=lists.linux.dev; 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=m5UQHOJPq4sUj2VY9IVG4WitY1jbDoFLOUNo05JEWqVEtyQ6ypoho9CnT55SZePq3f d2jnFDeBh5HXQGSIksf3pvEGWRzHVxgzyrp1rv3VIgBaPcxXYhXQd4cknL19q7wj17yA dLFG4BrU/7QvrzH3Fns3z7BtuIpfnlfNOr8VCYpBnkyVnf8xPud/zkTeEt+X/i/lSYby mYUWl8L+h0QZPvPfaSinXhSRmwki/x6sSbvxxEbsjvdzSdiL1EhXGt20CzqsErcrNhLT Rzrbwo2FUmRfDDTnpfdl16mdXd25npfZv8gLWp//DssEB5Ph6hCyjBgivLxD2H1D5ycE EtOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126283; x=1723731083; 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=a7AKegML2DuewrGxW8sTf3RKvwbMBhaEaOsYrK2Zj3uWACQdh+w26msl546HJ5goTX lDkJPG74XkDGkixEs59aIxwZqpkRh7+dzfBOX3qfBFIGKPL2FlLrkytom3vOsjb84o6/ 2x+afWv92ALVwWc3vg4efGngN90Wt7tChQJRGY3osQEXV5V2vPIkaaNAe1Aw7PusyS5d /WCzC/HTf2op5RfUoiImFEmr28+XY+RPjjB2+6vgV5zKrIiN/VrweyR9aq+R6THzlRg0 FPzPgEAeFfRc3rkS3lHtSTWIJDKJx63JOtSYzAEVgSXf0N3uL6pNI3/XSJeUQWfXyhhV 9NaA== X-Forwarded-Encrypted: i=1; AJvYcCW4QAnvrUZRZWEAVJdG+g5jXeyIZ00MB/UOtqi/8PIWPLylHwPLYtLwUba4c/vwu/cQB2MNZTvHxKGcPEnY2ggcJQ+H X-Gm-Message-State: AOJu0YyuhWJ+0e8tbqmXCIp11KKRosWVxrUUBrFsjwI+b0ON0O9kFU5H seQO7l8akRkwMAtHpx1mbcXfCTNkuadVK6looYZ/o3DV8yhNVWj6y09uewILq08= X-Google-Smtp-Source: AGHT+IHzmyDjmbmh70t+LjuxJmyPnQb27LIwTkOn9wZAu/HD3ECQGEFR0hg5M02+6uogp0kQV3XniQ== X-Received: by 2002:a2e:9cd1:0:b0:2ef:2490:46f1 with SMTP id 38308e7fff4ca-2f19de394famr17881011fa.23.1723126282528; Thu, 08 Aug 2024 07:11:22 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:22 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:26 +0100 Subject: [PATCH v5 12/20] clk: imx: imx7d: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-12-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:27 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: 13757549 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86EC718F2ED for ; Thu, 8 Aug 2024 14:11:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126289; cv=none; b=qhZbZ/jq2sjqI4TyyinxkgSUhXlMSMFnpPQVVq4dCcWYDrio5/bHgcJqQwXl/HU0FbRwuJRk4VL4oqAxdUMFq7vIUAQuNRm79/cEZzQPUcuB4MgNzSxQDpmFdHSbEwqSylF5BF9OXF8A2w/U8GdUN3D9TACta7gP0TQJOsLfDvE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126289; c=relaxed/simple; bh=dtBXWxh6pEv7DtMPsjNa6bKadgnceb0rxD2xntEHe8Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SKdMrJkXwtdmxtt68HGp8WSwkDXgJ5y6YEi/J7V9zltqREFcSs6DbK/FAYiAmzXISLsSMD7Y8pDrc07F2GEROD8VjPsZVh0HPDG2VqWExeqPW8yo2EaBSe46U7kXeAOmNTJbTcswPbtGprGyQ/m/Qg+v95/Yt5sbqfSvjYKmwnM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Af5O4Uyr; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Af5O4Uyr" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a7d638a1f27so42522166b.2 for ; Thu, 08 Aug 2024 07:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126283; x=1723731083; darn=lists.linux.dev; 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=Af5O4Uyr4HRaDGxf8I6yMDmMoAr6Aeqzn5hQniP0OLG9nNN23WL/IsC0XnDqBCmPlT I9CtEHI3qwj/XuAL3gaYdzDLP3b54mUUX4O5A4XBbBLJIpKzGSrCK7kyGJnTh6pTYhq0 ugsuEUBAJkqqsSbQaMPZmiaTH72W/jGFxd/S47Uo/1Fk4KCToz0l6EzRYmGIeIIwmTxg /mWPUq7N4k9PgC+ayduFaIomTspahDBlBBQMgwFSPna2xkoncBncTMajJqvPeSfk7vjr TPdgznDfmwNTdubC7x/DUCq6ReyZqn/0JNGurhWyXgrd9wOAHEOQNuwhH1tqfDmGRoQO YEzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126283; x=1723731083; 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=S2oXin0iwmGm3+dcK0h2nM1PJcUtWiITyOsM6FlaNYLER9tqYKHMsSU5lcGn85dcvS 7iK5onmzu7jyMmRMSvaVtwcDEIfM8Rr59B1N0gDMot+NDOYcPjeUSyJfNp+118ZW7Ujw uzvnQD1lh/lC4N4T55HFaUBCMnt9yilvALK+Oh4lvstZ2flQlzd1egxIG897A78pjmOc TTmGlIhO0HdeVhjkQTIJSa+RS65c4gu1uOizvUANe+Gjnp6PTsckPTcExIyxIvLENpsw wJS7fMafpkaV1MZyupE0kzXc8k7ClhE+1aBixsZEkLjaMPSLb0AcFOWdf9C3fuxCu80U qSGA== X-Forwarded-Encrypted: i=1; AJvYcCWCPcAEAxcwa1397913vhCynrSMgMAN3s7ZnESDFhM0xw1jF+SLBwRe9FAxh8mpQe3hNrnA9I6MebD2186VGrlzJ6fN X-Gm-Message-State: AOJu0Yy89/9tADE4kv8XLJbY9LjkBrjxvQXmDMiQL0TdqmWzpEGTVa37 JN56DvkCB24tFJJph743/8bXkyQyC4e11M0FuegWDDF+YbLetftBCfsXCmtzI88= X-Google-Smtp-Source: AGHT+IG0sC08kh/zmsOObZ3PvXcjyWyb0j5P2FOkvROsWIocHE2S7w2vlae2/iLc1s1v1RsqBQB2DQ== X-Received: by 2002:a05:6402:5308:b0:5a2:2b56:e06e with SMTP id 4fb4d7f45d1cf-5bbb24be6d4mr1598591a12.36.1723126282994; Thu, 08 Aug 2024 07:11:22 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:22 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:27 +0100 Subject: [PATCH v5 13/20] clk: imx: imx7ulp: drop calls to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-13-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:28 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: 13757548 Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3E4618F2F3 for ; Thu, 8 Aug 2024 14:11:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126289; cv=none; b=RpnGER8wzOmUSXqAbcWceUFQJNSp7Hge/jc5bv4NcfI8J2QZ6H2MTyd5jRjroakro+uRuXBtx/HNLzI7OUjyhyL0uWA421YBc9PDTxvo3JMVFmIULThZNT61OBxpdg5AN8DZa950hAKaif/8BXToPQyrMzofRK/MtgXpzGNwOg8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126289; c=relaxed/simple; bh=1ir13MZl0az/9cRAPNM2xtHw/7Fiznd6AQuTHA91Vq8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GiOtvh4IdZXYPLn/CmVvbOAKlol8kPiTdOk3UVby8tuzsEx4xjT7yrHodzalOb3CGkJYf63qjxN7zAR1aUx+jYruTSPHEwEHYl9nNv7/5m+UuDT3VBJEN3ALFws2vnOvIvhkxnJpbe9xHxKkRP2UMAUxxVNyy+Q4/veyJHp56v4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=TNuZR4P4; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TNuZR4P4" Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2ef2fccca2cso10505621fa.1 for ; Thu, 08 Aug 2024 07:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126283; x=1723731083; darn=lists.linux.dev; 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=TNuZR4P4ptoHqPLtIR7+Ye/TP2UBU+dFaqLIrcx286db0TglabHj/T+pnY3SBLuHes qqIFtVoZPD1chbK277EExuC2tN8lx9FkzhW7WpqmJihuo+4kFQldUJQlXCKEZJWkwWci F6A3sbLXqjepBwaaFPfBPAjbYEUpQdQfH9cKwErYoIh2MXQrYGYmiOpOUP0Z+KtkfCEv zXenVTMivdKbvjsjGBm83C26cYHcmLbxAKqlCnk4Yok4s0pcbDdDWcsoYQMhQSfz9yma 1TQokLaRQLqvLLLoJ7Jils01Tajko2Jsyjfmc4/tP29sXob4EiGDEpf/vMt5NOwTZTqd 4n7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126283; x=1723731083; 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=malJjDLW+VEQWaCvv3IJspZkp0cM/Tx4p7LsqHw/SARJBai+C+2CiwfzO7aIcPFmir 4oh7Yca9mndHh7BnHzBpabzorcFNupuwZeyswWfovej5pS6cSAKJUo3he38ek0KNhUwn CtfYLWCPHKtxwwuG8bB+rGRxKUiFsu9Zb/88Zl/4K+xiWw+ZMo2xR1yJNTC+i5puD1Rl PrcSBNs1TxqNx5SR0QMJ/gWtMWJDGMqsKdNfaiQO4ptJ7+XzVWnhUKSoTqeLO/pSyhTf 9tHKj7Wz5PNF6kI6xZMihV6XlszxfcZ5Hrf+4hBAnO02we4lip9oAmdd4zrEwWCUSF35 5Yjw== X-Forwarded-Encrypted: i=1; AJvYcCVcE1xtOWnF2v2C6UdBHaNXleMSmxOyYwNY9KL+oPp7dPSGtDW8RHTjvfxcj8c5u0HnE91dP3HbC/QjhBlVmIk2n0nJ X-Gm-Message-State: AOJu0YxT7Go8g77MgJBaKz0OyFmhtll7FC0RAvuD5ci+neqsJNVs4DL0 6AfwnzlZ/dbaHNnhiyvGGk2fdLn90uJVzx6kEa0eXRyFgL1MzB0bpFZpfTs6LTM= X-Google-Smtp-Source: AGHT+IGDyMQHKv0RwbvPX/6d6Xk0Zr0aJrMD0f2Ipsmoyq60Ge259oDU095mhvj+uwb4LCGW4iMZ3g== X-Received: by 2002:a2e:9cc7:0:b0:2ef:2638:48cd with SMTP id 38308e7fff4ca-2f19de73ee0mr14044491fa.30.1723126283448; Thu, 08 Aug 2024 07:11:23 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:23 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:28 +0100 Subject: [PATCH v5 14/20] clk: imx: imx8mm: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-14-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:29 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: 13757553 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19B3518EFF9 for ; Thu, 8 Aug 2024 14:11:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126291; cv=none; b=ljx0/doxL30aikyoOmGUCNWKPYmDPk85MyH0bgbGAxQDFXaeg0wtitjuAK1pOA71zpw72T/gY+v7eXcna8+pJGqXyzK9cNcIC1CAYFovJFJBw3dwQ6W9nuYkJDpnvFMnerWIV/9s28XaSULokRbgBHGO2j+FQqcQsNI9rfZLmZk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126291; c=relaxed/simple; bh=e8jx8xmkdW6YnrISThEmwGeUauedgdSxxNVyoc0/+CE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IskyRq40nB05L1fkREcYtaTY5RPWAxRA5+d4QJW5ClrINPV2gmo/cgLw0xM+nT7El11oxEXv2K8vao2tS2jBY2jQw50uRpyVypdlDDW8ItgjNmpsCT2PA4sOc5Wx78LUib+YkVJs2+sVWGbEoC9tF6JBBPhnFzEFEa05oUcooUY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FmWxsM8s; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FmWxsM8s" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5b01af9b0c9so1082524a12.3 for ; Thu, 08 Aug 2024 07:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126284; x=1723731084; darn=lists.linux.dev; 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=FmWxsM8sxzxktT0kJmdJmARW1mp5pDuP06jKvuUNAIm407C0x+pBy9b3bHiSZLETS6 9WDBSB35zBLNbf1WMRdNJYOImzTLAGNOXJ765ZPayPmC3C3tgrR3dVVEnr8UCoGrwcTa RLU6dhIM+npM7oIaJYITLLoMemGp6hA1V0ULMK4jLK7oYI61m62nOpVCMAnC/nbenEzw oPrK5HS1s1mlMB0T9wKrp/8iYo7UsgHvdBq/I1iBTsLVk1ZNLV6+99jVYOhSFMwS+Yr3 36YUxPefvVtJNAylpzmxeXKvZ/ulGyZR91zvKnct+vdU6xHGWsHKjv702TndrNKabePR lwhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126284; x=1723731084; 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=B9PAANT3DhCES6tBlDXNJilA2vw3b7eJLUzhwHpq4dI+I5sx55jp1EDpxLrD4wVnwi sdBqSHkAsWZ9m3bKqgtAWmv4M1BdjLcyU/9pwTKt2KrROYDG+r6TCYscpe/9ueORHZA5 ZfyGTioHEWO3ddc79hXBO3TwDJoOiRBELWkW4/AH5fS17NJWpHW9wX5ANar9eOUV34o/ sdnmdxvuftK6YfcTJqmqUBKcqDt0Ws8n4u+ZAlQ+LsBINYlLp0naha+O4faRtR7RCR21 zdZrVEy7ej1OT7Icxtw9URA9cq6NtwqS7pZmDx1G0w2ovW9m+mdKUrNCDYQVbh2oqQL+ KIew== X-Forwarded-Encrypted: i=1; AJvYcCUP39vyX9mUQxo9/diJRU+oTudcscaNTqYuO1r4S6mmK8eW9s+7NtPZiw2YeDJct/E4Cjk6NohRZ6P7O0Ez6m3xhgD6 X-Gm-Message-State: AOJu0Yz+x8OJyNH94Jd0Yh7MqNRZFcJyff6IMqNh3vXffKN75Iwp2eHi yJZWYrzvc7Qgl8qcUX/3z9C/nP1zUTFc6JHPym3n+H1wicHYW0dGiTEKahMTYnQ= X-Google-Smtp-Source: AGHT+IFDQ4xO+7IdMcxAQOisAYakQnBCgmZLgpWTWFQiC5OifaIDp2UC1DBibihQ4Kt2Bm/3m4eP0Q== X-Received: by 2002:a05:6402:1ed0:b0:5a1:1:27a9 with SMTP id 4fb4d7f45d1cf-5bbb2231a48mr1923760a12.18.1723126283922; Thu, 08 Aug 2024 07:11:23 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:23 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:29 +0100 Subject: [PATCH v5 15/20] clk: imx: imx8mn: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-15-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:30 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: 13757547 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C63AA18FC65 for ; Thu, 8 Aug 2024 14:11:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126289; cv=none; b=KDIlK0xmL54Eyx8huNRPHVzoUIm1DCtRfN7IZh3HJkIr+dIf+kiY0eLB0RxSM6j9HP10vORQ9ztZhbfK3QqQ5C17qNACKl26hk4Ff+4QkOgqdHrS4avxBWJTD5JXjFs0mfevEAW5PbmDk8UcvJTa9FaJA01ftGoUoJhXPDHaQJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126289; c=relaxed/simple; bh=fgoFdUktN0AC8jt3vFeTIBwCbSQYaBCYL6rp147Iyig=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Hf3n/g538RyRWP1ZazY73VULJxj+j8z83dLcTiK6csGrMq9Hu+dCRTPWCCMW0LEf0mq+r3On7ASK3g6SE50gNExMj46Z4SffST0/RJdsxJUKBSIFLzGgf7RKGE/vQhGTUc/lTRsel7K7y9OnrqDwd9xwgfFtWKlpaywF67tNGdg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=o56FJZAI; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="o56FJZAI" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5a15692b6f6so1130830a12.0 for ; Thu, 08 Aug 2024 07:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126284; x=1723731084; darn=lists.linux.dev; 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=o56FJZAII1AfATLnVSu5U3ArGVL4IBXAmiPuxvciGU2vC9ZsdbNainCj8jO4JQ2pIx 5xHFUJeKe+z2e2toQj0tVbXdYMJEgm1VWKrA3ha82pWVNX4St0njeJ3DH18N0rE9F/fp jxvinYtbY5W+Xi4PVm5wloUJuDM++Monhln50V59VfjV5kn6gYisRnOHUE+kyl3B1w/8 U02iQUjaSz+4EJ+zent4+FWtFCKmXIBoeb9yO7gC0OM+hV392dTUn06RKRZvNiCZgjvc 0zwJtpN0JbHqfIwzTCD8lf2GNh3NveWZHI4z/YmlMm8c2NCIFkTMlS+pmKUqjxhyUGdd qvuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126284; x=1723731084; 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=Q3S7QPLEURrKoIwFgHSZxiCOM+/Ua7+7TBafMqzqiDh4LnXttcto20+80M5245r172 CdkUg7S2xBs0IEfNAzvlz7FeneTRv3Qu4Yl5ZM0QAJDmBZf0rNOVH/To09FsOdpLA8fB 80fGjfFRDQaBGeILGk0lxfz0htb4mGjg+c4xHpe77F3Wsh0i3Z79qU3v3w2AadkwIXt9 cVoMUp1AOjqUFM4L0/n13a6lLC+vYAdTgtmekunZ9VtvtSzw2PKeJSxa6veTnD9KsIty Zui/vaCyn8KfIC6XVTdEM5PLLNLnZ7vJwDJTNEijHb422Gz0+nYeTTfmPpHx+W5RSNU2 qf+w== X-Forwarded-Encrypted: i=1; AJvYcCVawKWFgURVK6zKYndYIQ1GvwJPablR+4ctPMoiYmwAsjkPH+vVF/IlTH7UiiUOcz3e7AaE7AinOJkt4LoVC4ND5uqB X-Gm-Message-State: AOJu0YxSMYxMFGUtjzWNte3pfZu3w7TmVeGmMARgTQxquluxRViONLjC NZuH3w6mK9LvwWcEg/ZKYdrYG9XoQY2tM9C32Nj52thvrLJNcLfLuo/dGWBtxfs= X-Google-Smtp-Source: AGHT+IFf3g/jYuJvYQwgVJBe8vCrF8fGufVkSyYm1tnaBSWaG5CaYQLX35KDxCAtiZcxjnLr0qD2Ng== X-Received: by 2002:a05:6402:210f:b0:5a2:f154:95f4 with SMTP id 4fb4d7f45d1cf-5bbb21d08d1mr1734856a12.22.1723126284388; Thu, 08 Aug 2024 07:11:24 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:24 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:30 +0100 Subject: [PATCH v5 16/20] clk: imx: imx8mp: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-16-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:31 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: 13757550 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0239518FC66 for ; Thu, 8 Aug 2024 14:11:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126290; cv=none; b=svwn1Ftymq7n21AZpDe3NnfeNyjTTjYTVzRDzettIfu5sH801l/edAGvNLj8fhaA56pZMMbFvjVdgtwFgwBCRWyxHNZxzzjfGCE071sYnWGry03qpKG1H9Dcux15V5AkV2poyNDsvXJEr0yhjlEZNXMNO8md+QoSeCMokxnHCx4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126290; c=relaxed/simple; bh=IWr4xOLwFlcBBVMqbh/CeNYKnBYkZvyljj8xB0z/c08=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BuNp9YYCuspHm13uBiw15y6S/0jY9ZPXq/SteCjiLeaxr7qYGoZd16bbnj7OcB8H1+5Plr7+sGz6hCle0NvoNWWM9It4CIgtoMFImNflq/nqEUjTl+1KEpX2GrNnVddFvrkHYg4FzdYh/EWvXK2b3UxKbXCn4ux1r7hWS8cIf6w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yleTqXre; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yleTqXre" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5a156557029so1232260a12.2 for ; Thu, 08 Aug 2024 07:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126285; x=1723731085; darn=lists.linux.dev; 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=yleTqXreo7CskHbm8/nWvR+Kn1tBd4hg6YFqaV0uUv4032IzF8dK70snFmtkyYuPOa JdOaRCsSGC+38eEzsTr6meyrApjEQXiwc0sMyFkpjkSek8ftguAVRhFjKfGGCUui0iBP rS7yv9vhn0FUpuG0tTmjBCPFRy7OjRT+jsijz0gA4oMEILErwyfA8Tb30WvxyV1fBmK2 rchRnBTgzfCu1efBN6qe7iHZPqxJfHwvNZiV4v5JGTbe0M4pcndJdu/V8yCqU4132XeQ LMSnkqmQIga7BIKHTO+ZtEr8hTD+4GEqVPGnPHPy04b6zD1v8qMZwshBHRXoFalJv9lE 7MJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126285; x=1723731085; 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=POfWOEkGDKLPLwlbcU74IwczxB16TnD1/onFrgBAsf1I09rz4L9+6vMTyrbp593Ue2 q2mliL5ZsEAWcqs0Mg3lX3cTFT8Vhs4RO0GIwcpx8yUZyxv29p9Wpl91cjA7hp7pdgIM zRDo+wpZOj6/y9PEdwbHdza2vJp+X9Vk4eI/IX88vEeAiRdcyYhaSPHZoP4XE33zY58e ksXfJD3WWdPXGA5kiEkZ3kSooft7tyQElUlWFl0NudI9osk3/FzOMbg4UjolkAjjOCAf VsDMrXOLAVVQ+s06AOG+WP8S/JqO/RJ2iC0c9MlSnjboUdWLYNirUxgnmpxg9Ws3j4GG cz6g== X-Forwarded-Encrypted: i=1; AJvYcCVVAYpN092idc1d+0t0NttQteshG4tsZOlLwrUNKlBPr6NnZabuA1WHINReWfuoTLB5X7z4Y12cxfRz2a6FmWUR6TX4 X-Gm-Message-State: AOJu0YzZi5rnoHcVlyKF9UkVRSgvf5/pDS0jKocrW5dap6FgfHM6utLL y8qNfqP4qGwBThshkJMM+iLQOGYe4HW86YF8dVADZd6kFdKdX8Cza4Iz77W9a8s= X-Google-Smtp-Source: AGHT+IGQe2l23uShoIpRGe0OtZ/F9zcL/2P+TyvQ982GKO9ePP01YLyep9DwZHa3XED5ok4WlLQprg== X-Received: by 2002:a05:6402:42c4:b0:5a3:f5c6:7cd5 with SMTP id 4fb4d7f45d1cf-5bbb23f7c56mr1647715a12.26.1723126284803; Thu, 08 Aug 2024 07:11:24 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:24 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:31 +0100 Subject: [PATCH v5 17/20] clk: imx: imx8mq: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-17-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:32 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: 13757551 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FBE318FC82 for ; Thu, 8 Aug 2024 14:11:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126290; cv=none; b=uxMl5teDFe2zUEdM9x2gOKU1ljWsaAAtWZOqeX9GARDZNHm57nhf46+IBNb8fnY2bQQFLnRAth9LobbK+BX+DXwPH3MINQaxvjR36p0CkeJ1kOAdDFWdIXIPMY6VpELin/94wmkTu9rxfENYe5P+/Al5wg2qGp/SZr7jhUSMrMc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126290; c=relaxed/simple; bh=3MuovDtIRZorURIU9tYKQJVq47VGHfGnfR9ISQ9xJW8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CaqdUh2UX33f5QXxaukYLMRJMAvjJkN9PzNn8sMLGVIb5Uk/wRutshN4Ecji0Ao11zjd6XFNtGLrLA05OPJkt8+z5QV1OCuP/T5LiDOaXspwZQzeHVFNEfk8W/OY9mqKWFdY8wdowOwYNVt7gqrLxCtWT2EEC2bPydgufNggHH0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Ixv+JJfe; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ixv+JJfe" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5a10835487fso1355160a12.1 for ; Thu, 08 Aug 2024 07:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126285; x=1723731085; darn=lists.linux.dev; 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=Ixv+JJfev4YXOlO+Mf4d2V4no9XACVFU03nKKykAPnBrnkN+6yi2DG/fv7i9if95QB Vw4eDxDwU9lqUFadfgfse6mCmOLpsK0r1gFmBaqGAkp5jx7hnoQIgMke1ybrfKzprWWf +L/u5BULc/u9lUGZp5bAoilrF5Xl6n30xRomaiY3o0zJ483lvtaiPuBngMSzwWjfpxi7 Fylk55SOxICdg4pQK2+8L1zeYkflW7LseWsfvlprqTtwIQKQGEVaa2jDaRJp6wi8Qj5Q rlBY4EjpgLu/E2mCiN+WEAE3NT1RoJPT88vCuE19lS9LJAjsHpVukVAnnVcpM6Yfs/3L PqFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126285; x=1723731085; 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=r3H/pwnTS9jvetUDU916cm5GD3iMJyiy3OkX6yq+FY8AVFDuJi9GrvMoMwNSUBXKvq 7jeTFAsZVmgHXbRbzqzKTPCInygPwWwlRoEjHvGwzlgLeAzpyKlBSxmWrnTJjEx7I7UG E5T88/a31NtMJT3Z2gu8aCcFIM7Ov0nyVF3g8HyOLo8fz7jGfHbL529h+OoVQHZl2yyd 1x3eUKSmQdxs447vEpbil7G/f5bM2Xjv6/02WqDtgFXSf3q612Dyk/cFnwga+BAHuMz5 f4gfDOMj8aVO0e4PJLXINDS1lJMNUcXuO9gxLqwcpQc+eG6kqlye+ELX5KvPm9s7lTI8 BLtQ== X-Forwarded-Encrypted: i=1; AJvYcCUDfeAxY+cF4udw2QWwvXi7ZEbiIz0jgVZ24uivxM9ToOPAqn3Z27l3shogxbwq6RqIHUmZxemV3xdyift0GuYvj6b+ X-Gm-Message-State: AOJu0YyQQBjFxd1NaI7V/9THCSglm5B73JLDCOD5ek0Q7lIckbs3E7/9 aGWs/MtBs71YjsOGx3yyCMqsBPEc0O7tZHKzVPjZO4Le8Q79KOMiiVW1E10O0ak= X-Google-Smtp-Source: AGHT+IHNM0523YZN7FUzZaznT4lLi+UUQ6lIisgSbrEP+7eTyr4/ucborIocaVgNqxpxXRdnhPG6mQ== X-Received: by 2002:a05:6402:51d0:b0:5a2:3453:aaf2 with SMTP id 4fb4d7f45d1cf-5bbb21a433dmr1559817a12.10.1723126285323; Thu, 08 Aug 2024 07:11:25 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:25 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:32 +0100 Subject: [PATCH v5 18/20] clk: imx: imx8ulp: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-18-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:33 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: 13757552 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEDCF18E77E for ; Thu, 8 Aug 2024 14:11:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126290; cv=none; b=HOLrKqbMyBQ9ecC48xjalLv1r9h/zqBJQ9Jepu3la5I4jS7SsufiJz91cjVv/Axw4NeeUh+jaeQdmhsSzsj0P/48VE14rFT6s+2M9NVoxhQll6BIUv69Lm5vvcj8Qam00U5GWtIQddaRzu/IeMy6TRuErvzXWgxobvhl232Or/o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126290; c=relaxed/simple; bh=n+1hhj763mEFqV1dem2n36RFOjE3WvEU7qjocs6Feh4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hbqulJRbfAqulsX8U4lQGZ6Efv33gEX9YdB5+sfQAY7i8WFPyOLEjK8b1hWvVph+M95j7P0V9TB3mQkIkohI6bI/ilM9sQbnt29F89nk0KMzyOmAPIl7WhZ60Lmu+H9Bkzjb26nCjZGKAwGVkdWNW9znIQkXOYtTml+zKcOo57I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=rR7aCLa8; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rR7aCLa8" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5af51684d52so1209164a12.1 for ; Thu, 08 Aug 2024 07:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126286; x=1723731086; darn=lists.linux.dev; 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=rR7aCLa8IuuJU2U600La06GfqXQehO9DXF5VzVOE1ErlqgjcPXd3AZMwXOQMEkmWJt j/VNoH9M8PA8Cin4aoOxYb3evtMCikRe6SkWAyy+gZrHGcI6Re34Xwv1jO3g79omXSw+ PnU1WSFPcB0Cdqx58o+41JFB0BWKPp2UdHTHgG8xatmo3tjdtFprl3EhKG1F0Sbjyiat ryhtBN52/LGzdk06XHlVGadIgASYLEXacBrafjiDmpjMNPxgaAZ4oraHzJ5oiAUlqemP hTh4VpcnXpdH2SBgHO5QPWIMKw9p11G7xt/lZiNS8LMfn01H+LnlpqDkMYVcHQWiO2Qf /SEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126286; x=1723731086; 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=ZmIs4teYNppeM9n26bOkaFhjJHosw/U3QC2/2+FKsf0of4pWALmfxqgOqItLLtYwgo RBX7Kord9vNy/27gTWxVnF2fd4peo2P6XGydnhj5Rryr/O88+vz+SIFZ9FVZWFO5aTSH jAh8Akx+7f/adwLmZsXieQyvKHXZTDwwJir8xGojKaSC4aCM5fQ6hgOo3edCvQ1xEV3e Tdy1Ml4812TOPYijmtF8CkrFeNcfPBdEgeye+8hT3DZCDWRnTsbqAkpDA6U4+iY1Adda OkiAoMspZVaaUextEXBZF4PAfnMs9tLALlSe8+tMqe8XLBxoLk0FDkG/7339RxvMAYBu udQA== X-Forwarded-Encrypted: i=1; AJvYcCVyIh4Vng376fMxkm2t1uaU+yyPDspWw8sn3UNiWiPxU9pnkj4v/oP4ooIXdjlIQhrloZi1uy6Imcjru6nlzXY/JOfd X-Gm-Message-State: AOJu0Yy2327FB2usajgKm1r/cQhGLnwIyeWOIpotL7DJEfC+aqhkDD+I IjqkROcnoTbzMgJiJ5HgYEwqNVCuneoHudVyIWxJstnj0QTelUIkb3FuP/V2Eb4= X-Google-Smtp-Source: AGHT+IFHP+WAJRQKtBDAPTtKu22SVp1AeXoLDnW177RheT0ogYkQLTg/lKBXGJw5OqPnaZBvaHWibA== X-Received: by 2002:a05:6402:2755:b0:5b4:fa3c:d9ab with SMTP id 4fb4d7f45d1cf-5bbb2234971mr1842865a12.23.1723126285743; Thu, 08 Aug 2024 07:11:25 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:25 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:33 +0100 Subject: [PATCH v5 19/20] clk: imx: imx93: drop call to imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-19-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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:11:34 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: 13757554 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F52318F2C3 for ; Thu, 8 Aug 2024 14:11:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126291; cv=none; b=NIh1vCwRRbEiMyXi+/VcsT4IIc23JuyFXpRcAjAo+/Q2J8A8UsZ2EHMfHkmkDTUIjzvVXV7Dd+c6CugcChhI3ezu95I5zx9qpU4R08v30ehXtfhZwRmci3lmjIgMt1LtsJH2ZgbnEmbEZfosWLEP8DHVLKt+OaR3/5/iQxUuZE0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723126291; c=relaxed/simple; bh=nXzI2w3ThoiSRcRj8fOXuTW+n6yOdH+9/0PqUvo2i28=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=O4In5W8jLIAMbxWLGZ5m+sHIV/YMFExvRhjeDCFmh6h+v/1TlpurEzDD59o//TBG+W5PlyNr6DgB+AT7DUqMMJOHlOJnQsBN3GykkYXhTmVSSOHhBeSewu33QAZyn83lOa+KT6qU48eK2klTIGUrvHwvgfvT6eZt+NyMw0u1U4c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ibgLwl/V; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ibgLwl/V" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5a20de39cfbso1080092a12.1 for ; Thu, 08 Aug 2024 07:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126286; x=1723731086; darn=lists.linux.dev; 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=ibgLwl/VOPNSSD8XJyKqqb5qcWA/LIZIR1/5PgvAR6bUIvJmsWdA/eAULdICtkKxrR 5ObKBWYHoNUt7SXSo32az/IRcT6y0SCrM2Cc2IlfDDLhKFuC1osbA5t8KG1faP4Mq4A7 ohzX+54gAuTdOj9fkJtvoJzVGdMOa7RbTc3mjbw17KQdd3D1vkVaBcOUdtT9kE+SzDl1 oFlSPdNYOvC9BscdOiOPEsEPAT61kr6fGynrlgJcYDBWaZt7hazIY1ajZGr0STnHsFam LnjQbvieFLA86ijIBd0LwLG+duprBzVzACgkTSlVYs/03mLa12UsLTdHHTIdXVuWRWl0 b4UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126286; x=1723731086; 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=gkttW8dIS3hE4cGLG7H2fk1WRxSwsCiMrh2Zm6mO54r1raH0N4WUGhPwadRvYwm18h AsfIL1PvPudzIHBe1YIUzwt6YKWP7bfXXyhOPjGkOGpd/czWVMy7SX5otQ4daGizomQe 0JiTKEOQtoj0czP7300ErSzXOK2Dmb+3TdStMkm6wygtNlHQt+5tj+K5AbBxKlmiYDnA oWJAdlTGJscrswjG6zGFtz2LdZSMVzagmGKM/vAPObih+/W0wjsf2NurfOHAmSfZ/AEk mEchfY7czL1IM0PF5ZcwxpgpgFHS8n6b26GcN9tMav01x66kit13Qn7hXoc11Th/YTDo 62DA== X-Forwarded-Encrypted: i=1; AJvYcCVtQXW3EPNjnCdLmZTlusHRqQgdwxoOjveYBJO3VEiXFW3BCZygjqYkNCUMyKpNHMK0v3S6v4743PylH8/uP+iAgyDt X-Gm-Message-State: AOJu0YweYzglODtr19xwBvXizDfJ2BlODMKgc1R775DKPs/oOyrGn5Eu Y9QNcnAYx1+fjLUIE6CocIxcRN9RnPPs6Ugp63rytWCFEkrJxN6NNanP7t8pCHE= X-Google-Smtp-Source: AGHT+IHLyR3mIPR0bVi3zK5Pu+MOQMUFddYaWH9c8BVGPZ8CiQyaIW7/W5phTXQL3+7VzYauXFuUYA== X-Received: by 2002:a05:6402:1e93:b0:5a3:3cfd:26f7 with SMTP id 4fb4d7f45d1cf-5bbb2409945mr1779672a12.32.1723126286215; Thu, 08 Aug 2024 07:11:26 -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 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:25 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:34 +0100 Subject: [PATCH v5 20/20] clk: imx: drop imx_register_uart_clocks() Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-20-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@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 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);