From patchwork Thu Aug 8 14:42:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757685 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 0DEF018EFC9 for ; Thu, 8 Aug 2024 14:42:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128171; cv=none; b=D+87nT6ZDhu6n/6IC3gTPuu1E1kS4Za1Hw3G+bBaCJM2cB667ngEF+LX6eeyCyKaPGl6jEy++sbOAboYz3bBWST5AmoU2MrrHxatxvueQck2hrqboL5yDMDu+i5km0mU+Ge5fr4qgTfSHOhgAonsx7fy0B2b5FXq549JgE9gkNk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128171; c=relaxed/simple; bh=yNHDH9cROFXgCo6+xkemY/PjpYdZ+ompFIQkHrU5f8A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nv/K9V5Io3PpC1WdIEis72ZM+xLesMHJhJGZ3uq6+awcQDPXiNxL2Fa/+orDNl7/Yof/MVS/7NTqnLKXtbUK8zdroC5u531fXdj8+JQVMnBKPJAl620WhXG/+Xp/Ks6hb2P1Pnc4sZG9/+Y2/o3uF8yhF/RJskFKXbRukp2lxQU= 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=Wu3+c+Hb; arc=none smtp.client-ip=209.85.218.45 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="Wu3+c+Hb" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a7abe5aa9d5so138285566b.1 for ; Thu, 08 Aug 2024 07:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128168; x=1723732968; darn=lists.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=wAtcktpsyK1IopCF5kU8mOGUnH018rQKQhDOBPxOSZw=; b=Wu3+c+HbrssP5JrH1pUVQbJc8EH4v63QXzO1YSII1F7t3WbU9TG+7bw50i3z3Pgv53 gllCIshCUa0lnXKSAEC7C5ufnjrH4P73SNVr4lhXbN3o2ywJKpUqse5wNjSxUBohvXaf t0ssDlqRKNsB+ainj9MUxP5ZOHYhwh7sqp/1kiHSPdey8xuZLYZANXdVtOpd6SLp2j/D KP89BiQx6GBUOiUvwopZmWqB3EHabVWGfe0SttMOvVW37BrTAIlToRD99dsMtXjL6G60 trUml/sOGGWdxRHoNKHUfs/xaqoa2/2+Vmbv9Sqpw0INfh+by0DiYdLn/21amSaeebZ7 ftfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128168; x=1723732968; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wAtcktpsyK1IopCF5kU8mOGUnH018rQKQhDOBPxOSZw=; b=EA9lj0gnkJs1d/DEl9U6OP8AEPsvhqiCmxPs+oYZppKiuXgUQAzdUIia5zdtbxoNM3 T0hI8ItAARM7ys5lA9jJeN9GdfZk75DhINhVr84FPu++WGEsIuAKEO+xJQY8IF0s/ThL 5QbZVVKpiFLEwfEXyvf1kYHdDQ6taGEHbn1weNnqBlUpSUoMqWdnMrGZNQTU7WW/LHas EPweGB0jXoBnXM7Q/LJPzdvjG+DR8z0wPRIrdPXC7WSA6np8g4vj9g/vcmgkelnip4r0 xTQ8JigzQDtHO34NbkRLU9SpF38W4RE4lFFB6KbBt9iXxUfwYKPqvTPAa1u6IWGr4+K9 40yw== X-Forwarded-Encrypted: i=1; AJvYcCVEUVyHxIoP8FNgTsB6HfQNuTvlo0TOCaJ/kICFZlmikKJ/09Nx5NpJ6z/ZOQBP/ZmXQ7Bsqh+3trvO1llnepljNAgQ X-Gm-Message-State: AOJu0Yy9WnYoNsD9pjSn6xfuHmYxPcgM9rNHAxjghbkivLhnglF92SJs eBbEhbPWTZ1D42a9nVsxU0wG+IeqPFmJiE6JcOm69oFhPMjTI+UU0ajRfiTowr8= X-Google-Smtp-Source: AGHT+IFKqWTwUTF9It4/KiFcH08kll66MLBeAiBxCYt6pGnnfGGyfN4DPvbUWI5sbCigMk5HvKV9ng== X-Received: by 2002:a17:907:c7d4:b0:a7d:a00a:a9fe with SMTP id a640c23a62f3a-a8090c83b95mr144065666b.17.1723128168207; Thu, 08 Aug 2024 07:42:48 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:47 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:42 +0100 Subject: [PATCH v6 01/20] clk: bump stdout clock usage for earlycon 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-v6-1-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 On some platforms, earlycon depends on the bootloader setup stdout clocks being retained. In some cases stdout UART clocks (or their parents) can get disabled during loading of other drivers (e.g. i2c) causing earlycon to stop to work sometime into the boot, halting the whole system. Since there are at least two platforms where that is the case, i.MX and the Exynos-derivative gs101, this patch adds some logic to the clk core to detect these clocks if earlycon is enabled, to bump their usage count as part of of_clk_add_hw_provider() and of_clk_add_provider(), and to release them again at the end of init. This way code duplication in affected platforms can be avoided. The general idea is based on similar code in the i.MX clock driver, but this here is a bit more generic as in general (e.g. on gs101) clocks can come from various different clock units (driver instances) and therefore it can be necessary to run this code multiple times until all required stdout clocks have probed. Signed-off-by: André Draszik --- v6: * drop a stray #include from drivers/clk/samsung/clk-gs101.c --- drivers/clk/clk.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 7264cf6165ce..03c5d80e833c 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -4923,6 +4923,131 @@ static void clk_core_reparent_orphans(void) clk_prepare_unlock(); } +/** + * struct of_clk_stdout_clks - holds data that is required for handling extra + * references to stdout clocks during early boot. + * + * On some platforms, earlycon depends on the bootloader setup stdout clocks + * being retained. In some cases stdout UART clocks (or their parents) can get + * disabled during loading of other drivers (e.g. i2c) causing earlycon to stop + * to work sometime into the boot, halting the system. + * + * Having logic to detect these clocks if earlycon is enabled helps with those + * cases by bumping their usage count during init. The extra usage count is + * later dropped at the end of init. + * + * @bump_refs: whether or not to add the extra stdout clock references + * @lock: mutex protecting access + * @have_all: whether or not we have acquired all clocks, to handle cases of + * clocks coming from different drivers / instances + * @clks: clocks associated with stdout + * @n_clks: number of clocks associated with stdout + */ +static struct of_clk_stdout_clks { + bool bump_refs; + + struct mutex lock; + bool have_all; + struct clk **clks; + size_t n_clks; +} of_clk_stdout_clks = { + .lock = __MUTEX_INITIALIZER(of_clk_stdout_clks.lock), +}; + +static int __init of_clk_bump_stdout_clocks_param(char *str) +{ + of_clk_stdout_clks.bump_refs = true; + return 0; +} +__setup("earlycon", of_clk_bump_stdout_clocks_param); +__setup_param("earlyprintk", of_clk_keep_stdout_clocks_earlyprintk, + of_clk_bump_stdout_clocks_param, 0); + +static void of_clk_bump_stdout_clocks(void) +{ + size_t n_clks; + + /* + * We only need to run this code if required to do so and only ever + * before late initcalls have run. Otherwise it'd be impossible to know + * when to drop the extra clock references again. + * + * This generally means that this only works if on affected platforms + * the clock drivers have been built-in (as opposed to being modules). + */ + if (!of_clk_stdout_clks.bump_refs) + return; + + n_clks = of_clk_get_parent_count(of_stdout); + if (!n_clks || !of_stdout) + return; + + mutex_lock(&of_clk_stdout_clks.lock); + + /* + * We only need to keep trying if we have not succeeded previously, + * i.e. if not all required clocks were ready during previous attempts. + */ + if (of_clk_stdout_clks.have_all) + goto out_unlock; + + if (!of_clk_stdout_clks.clks) { + of_clk_stdout_clks.n_clks = n_clks; + + of_clk_stdout_clks.clks = kcalloc(of_clk_stdout_clks.n_clks, + sizeof(*of_clk_stdout_clks.clks), + GFP_KERNEL); + if (!of_clk_stdout_clks.clks) + goto out_unlock; + } + + /* assume that this time we'll be able to grab all required clocks */ + of_clk_stdout_clks.have_all = true; + for (size_t i = 0; i < n_clks; ++i) { + struct clk *clk; + + /* we might have grabbed this clock in a previous attempt */ + if (of_clk_stdout_clks.clks[i]) + continue; + + clk = of_clk_get(of_stdout, i); + if (IS_ERR(clk)) { + /* retry next time if clock has not probed yet */ + of_clk_stdout_clks.have_all = false; + continue; + } + + if (clk_prepare_enable(clk)) { + clk_put(clk); + continue; + } + of_clk_stdout_clks.clks[i] = clk; + } + +out_unlock: + mutex_unlock(&of_clk_stdout_clks.lock); +} + +static int __init of_clk_drop_stdout_clocks(void) +{ + for (size_t i = 0; i < of_clk_stdout_clks.n_clks; ++i) { + clk_disable_unprepare(of_clk_stdout_clks.clks[i]); + clk_put(of_clk_stdout_clks.clks[i]); + } + + kfree(of_clk_stdout_clks.clks); + + /* + * Do not try to acquire stdout clocks after late initcalls, e.g. + * during further module loading, as we then wouldn't have a way to + * drop the references (and associated allocations) ever again. + */ + of_clk_stdout_clks.bump_refs = false; + + return 0; +} +late_initcall_sync(of_clk_drop_stdout_clocks); + /** * struct of_clk_provider - Clock provider registration structure * @link: Entry in global list of clock providers @@ -5031,6 +5156,8 @@ int of_clk_add_provider(struct device_node *np, fwnode_dev_initialized(&np->fwnode, true); + of_clk_bump_stdout_clocks(); + return ret; } EXPORT_SYMBOL_GPL(of_clk_add_provider); @@ -5073,6 +5200,8 @@ int of_clk_add_hw_provider(struct device_node *np, fwnode_dev_initialized(&np->fwnode, true); + of_clk_bump_stdout_clocks(); + return ret; } EXPORT_SYMBOL_GPL(of_clk_add_hw_provider); From patchwork Thu Aug 8 14:42:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757686 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.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 9ED6318EFD2 for ; Thu, 8 Aug 2024 14:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128172; cv=none; b=ODmmQnqXSKV9WBIQcHOjw/P2LJrOXPIIDjfTP4hRKEw14iyG1v9mqgdUg58+8kgH5sozXjOHv+ACiS0iW9hHZWrBcKtJb7E56QpH4wFd5ncr/PnWW8YM2hWaqhouT4aLvoonccTIRZ6Tm9tuJAKzygOxWyHIcTNP/yyNyT+R+Bk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128172; c=relaxed/simple; bh=phSh2XvCFEiUMauve2onB18CfRqYBSjgZvD5K1lRvxc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YhgRVDLquW5vw/cVhrcJT9fpeNJ1xq2YM/UuI+2/aroEm3lDTgq+IcRMpwXmUF2N/GDXW6y/0St5QtnbsHaNSrU3syD3fxTEbSNaF+FShwY5jSNUagqky6i+QFOjnefBhpt4ZphFFyUN8PpmhaoXw/Lsap0uQSepVAn7a36PCV8= 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=KGTP6ljT; arc=none smtp.client-ip=209.85.167.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="KGTP6ljT" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52efbb55d24so1875064e87.1 for ; Thu, 08 Aug 2024 07:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128169; x=1723732969; darn=lists.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=6h/PuTPKH5TJqQzR5VNqTicpqs9HJAf+NVaf1wSFmws=; b=KGTP6ljTBM7Wq9Zlh+eU5mkD60T3nm3yEcP5qCx98/chj7CuIxTCwUYJV0r252hHNN B30CRq04l3G3LXXEw7QxC9h3sJxvCXVJyOEo3WAw7xv50fmwsLWNC4zRYWVywM3zGfWA JI2VZ4VV7igvaq586QrvhoEWpatgK95miK4lLTF5A1v2DgiUQS4GjU/AJtK4OUrUUfkt FUjYqGdHroInP9hISFLvtLDccfEh5vVTKQW+ztCq0ZG8DzUjcmlS9gCuRA8adea9ygWj BbV1Q0bKo3soWBbAuUFdQubHlXr/FzVflj1bBrvwnhBUN7cy0VgzngOaPk31dwSPRPq/ MsCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128169; x=1723732969; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6h/PuTPKH5TJqQzR5VNqTicpqs9HJAf+NVaf1wSFmws=; b=db7zocrjrtclnUDI0EbatrVjwyel+Jkc72Bvcl8gIk46/mUJp1P6/f91judQGDkl6P WYizok2A0Jfsp2gn2Ae7VxvxfXff/oekQrIqYmk4tBjDM7jtx/zemlOPAhfiWf+KYpLM Yak/wOMRz+ezWlQViOYrZh9/kgPLtoosbIEiPdZYTUFSAUBXYiSiO9cM83buNrIubNvn 1Ji/UwZj/gnhvBOfpj+QIkWTVfFp02NtnbZ3LSTHgUJQUzbIRtI6kuZ9YrsfovQ/oyoB 5FmL9D2ShZ4M1Q+dwmEMRJlOHtS3ZjnWlOibQphcb0Lwr0zO1XtoAywXhne5CNY/GW6u y0YQ== X-Forwarded-Encrypted: i=1; AJvYcCVQL6/jw5f5oKR95UMcjT/3SEo8kZ5srqHz3ElJCyBqSMDV4wnxRyM+X7vqMgBaTb4JsNgevVreHs2lBxEItSBq8Xga X-Gm-Message-State: AOJu0YxlypUSxmp2jyF25zZQPvnUoU0Z7jS4/cu+hLVUSAdf/OnHRYC1 UVbmSjh60wMEMevLtyYU2bal/Wrvmj0PXCT8+vn+dZQi/ymYIN1UBeEb1LCLqfI= X-Google-Smtp-Source: AGHT+IFDwoj0nnETAp5ptJMjL4P7urk3RcUJ04ImSOzddUGvLFkGFWs9zoWB3if6J8Ft2xrAtWRU1g== X-Received: by 2002:a05:6512:1107:b0:52c:c9e4:3291 with SMTP id 2adb3069b0e04-530e589929fmr1546854e87.60.1723128168690; Thu, 08 Aug 2024 07:42:48 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:48 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:43 +0100 Subject: [PATCH v6 02/20] clk: samsung: gs101: don't mark non-essential (UART) clocks critical 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-v6-2-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The peric0_top1_ipclk_0 and peric0_top1_pclk_0 are the clocks going to peric0/uart_usi, with pclk being the bus clock. Without pclk running, any bus access will hang. Unfortunately, in commit d97b6c902a40 ("arm64: dts: exynos: gs101: update USI UART to use peric0 clocks") the gs101 DT ended up specifying an incorrect pclk in the respective node and instead the two clocks here were marked as critical. As a side-effect and by accident, having them 'critical' also worked-around a problem where earlycon stops to work sometime into the boot for two reasons: * peric0_top1_ipclk_0 requires its parent gout_cmu_peric0_ip to be running, but because earlycon doesn't deal with clocks that parent will be disabled when none of the other drivers that actually deal with clocks correctly require it to be running and the real serial driver (which does deal with clocks) hasn't taken over yet * hand-over between earlycon and serial driver appears to be fragile and clocks get enabled and disabled a few times, which also causes register access to hang while earlycon is still active (A wordier explanation can also be found in [1]) Since then, the DT has been updated to use the correct clock in commit 21e4e8807bfc ("arm64: dts: exynos: gs101: use correct clocks for usi_uart"). Furthermore, the clk core now helps OF platforms with their stdout (earlycon) clocks during early boot and thereby avoids the problem described above. The driver here can now be corrected and the work-arounds removed. Do so. Link: https://lore.kernel.org/all/d45de3b2bb6b48653842cf1f74e58889ed6783ae.camel@linaro.org/ [1] Fixes: 893f133a040b ("clk: samsung: gs101: add support for cmu_peric0") Signed-off-by: André Draszik Reviewed-by: Tudor Ambarus Reviewed-by: Sam Protsenko --- v5: update commit message v4: - the earlycon issue described in the commit message in previous versions of this patch is gone with "clk: samsung: gs101: allow earlycon to work unconditionally", so no need to mention anything v3: - add git commit SHA1s (Krzysztof) - add link to wordier description of earlycon issue v2: - commit message typo fixed - collect Reviewed-by: tags --- drivers/clk/samsung/clk-gs101.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/clk/samsung/clk-gs101.c b/drivers/clk/samsung/clk-gs101.c index 85098c61c15e..9769c00b6ca8 100644 --- a/drivers/clk/samsung/clk-gs101.c +++ b/drivers/clk/samsung/clk-gs101.c @@ -3946,20 +3946,18 @@ static const struct samsung_gate_clock peric0_gate_clks[] __initconst = { "gout_peric0_peric0_top0_pclk_9", "mout_peric0_bus_user", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP0_IPCLKPORT_PCLK_9, 21, 0, 0), - /* Disabling this clock makes the system hang. Mark the clock as critical. */ GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_0, "gout_peric0_peric0_top1_ipclk_0", "dout_peric0_usi0_uart", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_IPCLK_0, - 21, CLK_IS_CRITICAL, 0), + 21, 0, 0), GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_2, "gout_peric0_peric0_top1_ipclk_2", "dout_peric0_usi14_usi", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_IPCLK_2, 21, CLK_SET_RATE_PARENT, 0), - /* Disabling this clock makes the system hang. Mark the clock as critical. */ GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_PCLK_0, "gout_peric0_peric0_top1_pclk_0", "mout_peric0_bus_user", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_PCLK_0, - 21, CLK_IS_CRITICAL, 0), + 21, 0, 0), GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_PCLK_2, "gout_peric0_peric0_top1_pclk_2", "mout_peric0_bus_user", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_PCLK_2, From patchwork Thu Aug 8 14:42:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757687 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 7CB1C18E760 for ; Thu, 8 Aug 2024 14:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128173; cv=none; b=ENbpFooMFupucv3hW4Vj6wjEqXlQYH8u4twC+2QxVQkmMLkTLq0032ffRNvYl8VP7oE71mD9zAWeGC3AUZxQmXwVvEpY7kgnpmBz9sK/zb4tXdUk3gGQmmsCQnxRkNtpUC269T5MQ5Mb/Y6KqsQV+W1ayZYwSeI7syuO7dqyoEY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128173; c=relaxed/simple; bh=0YLrrUzUpbGAZRD9K0JKJsJf0lqzpBPah1/3yREgZxU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kmUtN0bROcCd3R+QT7dSeyT9Cf90Z6/QYS53U00uSvapv9aDaB5sStT9oTCsijbqVmFy+XeNZdL94CW9MjcHMmIajSXEiFuJOeYTGF5ljT33/XwDwc2Xhd8W1VxbffVkjBwo2UDcpRiSrpGV9uWXN6ptBMFF0J6C2GIKzcT6QQM= 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=xFrKEe0x; arc=none smtp.client-ip=209.85.167.52 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="xFrKEe0x" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52f00ad303aso1323459e87.2 for ; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128169; x=1723732969; 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=xFrKEe0xN2V+y21hBvidJlYdgt5XzkDtiheapQU8p3q7rmNaOWjN3OoLokCpuWJQ38 8fzVdYB3NyMCwlUOzLzLwpmXgxiNGPWW/XkiueBgr7Zu78Fdp1stiwxdcIdCNCpHNPew f2aw+qe8idf2oA4AP8tGhz47ZwIY++uV5Qjtwie82OZZx3Kxcxq5lYhSXQZSr/RMBev1 pPHoN1pFj90rZwlKS0wK6YdDFCVd54tNQTOOFea9R1pEWstq4iypZ1FLGh5mTsSSGuJr o2ukATioZuwdwV9VFi4AwUdzscOwQy+Uovp4Sd+8uA7If7BdZui+QtyD+47l2tnx4ulw 6w2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128169; x=1723732969; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TUt9AGf6xrjDYDkMTJVYo9C6PTxCMU+FJu9o1lmsxnc=; b=kD5JLaWCfsCVsoFRN+hFe+SN7UVKAx5xNQ7HtFmyo9ocOiKaKdtH4rUFpdKCiokqKj vpZkXlC5TCnihPcJSzLDQ7VJxWHRfOfLfW8mKpDxfQ4wiXj8ZD2Skm8ACJ+uOnNrtcqp Gy1f5wWn5yhCgLp5Hd9jyCpp6s1Fk/1nBk8pJJaxfKDmUfUe/UzjZnxyR2HH706JMXoC Rba2sjzxbEswL5M4xJ67IQlDKiaTu2BZ4KKOGW+RobWPowp2em61OMkqaLw11skXd0Of M/82Upy4okd1dgPMoEOA1cBX4jQfDvYwotB4HqLdlDC9W98JZpCq2fK+5aCr53lE2cHh +/6w== X-Forwarded-Encrypted: i=1; AJvYcCUG9kskOs+oNE+UEgS0AklPu0iRQiMttT2w8VFBU78F1VkQ6eaBxqCFESVxIEeL/VeaaSY1NfWJVaRIYOMx/d8CPgde X-Gm-Message-State: AOJu0YxnQEt6mcgKaGERRgqgt0em78gnFDx1mxy5lxLu8kFj207j8AYP FL0Jcvug5wEyUBCv/I4s4fYfEdlga7iTScw+NwelkFT4u4E/6jBZTHXzYs8rG4s= X-Google-Smtp-Source: AGHT+IFY8t3FAEwa8bV86t3VKFqYi3dhhpoYWLQbdgyWVvZM0O1V5zSZUI8DcqEFM5UreIQyHwReEw== X-Received: by 2002:a05:6512:3d29:b0:52c:dc6f:75a3 with SMTP id 2adb3069b0e04-530e588cd22mr1710500e87.40.1723128169168; Thu, 08 Aug 2024 07:42:49 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:48 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:44 +0100 Subject: [PATCH v6 03/20] clk: imx: imx25: drop call to imx_register_uart_clocks() 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-v6-3-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx25.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx25.c b/drivers/clk/imx/clk-imx25.c index c566be848c2d..0474778f988f 100644 --- a/drivers/clk/imx/clk-imx25.c +++ b/drivers/clk/imx/clk-imx25.c @@ -219,8 +219,6 @@ static void __init __mx25_clocks_init(void __iomem *ccm_base) */ clk_set_parent(clk[cko_sel], clk[ipg]); - imx_register_uart_clocks(); - imx_print_silicon_rev("i.MX25", mx25_revision()); } From patchwork Thu Aug 8 14:42:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757688 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 A632D18EFE9 for ; Thu, 8 Aug 2024 14:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128174; cv=none; b=Ky8xI2toRkc/8sKyFdU+7KVEXrQ9+V6exnpFRNG60eo5sC+rrHJOuabo825Azj6jPucwLE1oMQs4Xi0CmPEp8q4T36prW0z/Y2H5tz8bQYF5EslJ9LrxezA9OTvgluMhGp3MMLEtAPxZn4TulvFdx3ivUJQ2z39TqZg0Trj85v4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128174; c=relaxed/simple; bh=F85JnWhsga2fKjX8ofqy8VS4HE5CVI70avGh7w8r0jU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XcqTYEg7bvtCA2/rx47V3+QbOfI0RRQi/vx3vd+x2KlC7xQPCxz8b3jJ3tly4v9RhJsOBGA0MPkTHC4TnlidFjIpa9A3vHSPiR7lQp4M678EUROVY0fQJawipvwWqDPMOroXQzXbdKJsAKyTAOaLbfDcwlfK7nPSNjrsMsfuhP0= 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=enEf/27z; arc=none smtp.client-ip=209.85.208.181 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="enEf/27z" Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2ef248ab2aeso15063211fa.0 for ; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128170; x=1723732970; darn=lists.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=enEf/27zVUZY0DJL1cin74pDobkOlf6C7TUQ7zQ3kL+eVNejKj3v9nEaDlf+ABdagE FUlTBGw9eyGb+/H+D5+6SRbUcD+oBaTpoAk6/43ZEGZpLHDPYTPdA0TUAryNQkeRW+FY uiqolQfooLtJks9EpwYYFgChVJ4ajgJ3NdZG72E9yRa8ej8pMfV+nwbD9qpaR11wmRdm 3Walhaf7efyst9YzO700hd7Af2midXr7ejQ3YmIEFhKvs64rK4ke0abB+mcEE+QQ/mPO 3gu70/VwG5NAb4ZZlcwuPSuyURWlxzvLoLyGlox7MdrGdiYxIqIyPq3cd21QSdmo/s2M crqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128170; x=1723732970; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CR2/Ipvc98fbygDSdyGUwyP4a+VA03w16ijfH8oQ9sU=; b=D6Bj/g+CneoZyG5O/MXAS1RKW5qouDQDZnd4fKG0MWI0e0MFRUHunz3wBRdp5msF+Z olZRa9bRP18OuMSa+Mh/Dhvje7Ye93qUPebHgompWUCLrMDorq38BP4XXx7sShbDwNLZ qliAMD/AY3GXNa4EF0dpewWD7cXrAEUuY5ImJP4Iqc+WVVa1uJSi0tPORyTeltlLX5n7 O/y3yIifdxiPfo8+Ddj0gBGVIOmnEIzVDeUtIMPvd74nO2UlzNIWLj1hCafh1bgkCSEc 4TY5WYmhd1xJ7L/nBDqE3oQIMYNAC0lMqMFNRL7Y+jSs9PWYYumLmKcSoamBIu9KybRK OCjw== X-Forwarded-Encrypted: i=1; AJvYcCXszx/yRNTzzFyibotSd9SHZQt8+bIoVmOaA4Z/RxlePV/L4LA7L6VeZehiyaQX1vQoyZE=@lists.linux.dev X-Gm-Message-State: AOJu0Yy/rzTs//ojqmpEu9iAbcVI8uzYYAdkgCE9qD//0DjZiNE8dABe UByGvZSI0fTTl6RHpdprTizT3pQ6ldpCyOEJsEhW8VZ3vXN2q4CGTghYYi7VuKU= X-Google-Smtp-Source: AGHT+IEa8lUG5PUwt8CAXfqOk3wGRaLOx10UCEmHtPBg+F4Hg/YBNadhRZneaPV+k6P/U8cOdJlD3A== X-Received: by 2002:a2e:4602:0:b0:2ef:2905:f36d with SMTP id 38308e7fff4ca-2f19de2c724mr15068821fa.16.1723128169710; Thu, 08 Aug 2024 07:42:49 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:49 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:45 +0100 Subject: [PATCH v6 04/20] clk: imx: imx27: drop call to imx_register_uart_clocks() 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-v6-4-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx27.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx27.c b/drivers/clk/imx/clk-imx27.c index 99618ded0939..53018e80ca51 100644 --- a/drivers/clk/imx/clk-imx27.c +++ b/drivers/clk/imx/clk-imx27.c @@ -164,8 +164,6 @@ static void __init _mx27_clocks_init(unsigned long fref) clk_prepare_enable(clk[IMX27_CLK_EMI_AHB_GATE]); - imx_register_uart_clocks(); - imx_print_silicon_rev("i.MX27", mx27_revision()); } From patchwork Thu Aug 8 14:42:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757689 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 E266E18EFEE for ; Thu, 8 Aug 2024 14:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128174; cv=none; b=F8xcMluV00Rj0AGTLzbdRdxwclZAW6JU86fKidkzJw6UiLTf4NxRS6BtxNmPpgzD41fiM1Q4/Cml8LnKPejslaQTegd+HBg3RG0ltXagnCd2KvUGdylNVmoPjUvkdoteRUASWbNlu0kpCso6i1ww6f7NN6pzRA9deWFNRH/DhT8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128174; c=relaxed/simple; bh=HMlBx4X05JcRgo1zDJUFrZT9TkayrN7B5twwxpWIidA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jXY72Rf0iKmr78kcmp2HImTGYSMeEf60DU1pp/stLwnjlJzzXoSMXtH2U5l67L7xVma9yVMxfCdFWp5pwSOKoaS4CfrQSdmgGjeML352p0nnudx62E7OtkFxRfCLJU/QGBDX2pjjrCAGXLtPuxOLyqJibK2Dh8SgPvIAC5mE0JM= 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=Pfcsz4nv; arc=none smtp.client-ip=209.85.208.49 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="Pfcsz4nv" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5af326eddb2so3486527a12.1 for ; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128170; x=1723732970; 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=Pfcsz4nvlvnq78deBFTNVSlI3sbHy7Z9u6KVATpi+WyIwHI5matuPcT0zhaF8wUCxo V77g2+qLVwq4Z/d4crtawNiL31jseZxhuRiTLKbQYjQT3bXBjTvrRL2P1CrEbG1JNgEX O0D+HYNgOW1iejuoMgM9xcWmc1TG7QLPHgBI3ErSwoSW+yKoYop4L6a32uAyhNSsJCce GNgknowEVIpTxbkNzVXt/g1C6NbQ1SZ4/vwnShBNBAgyKpHNdU2S+ruF1yY0iuf+tTYQ e9ktxQTgxA0UAcuY7QL1FIhpyecTUVAtAz0O3QGaMTdM6wXXXPivGZ/llK1SPIDYnqhk KakQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128170; x=1723732970; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y9to+L9bTdGJqYL9Sfh+XmsCrqySZTcdIgL2IwvTZdM=; b=Il6+BNZ10d/q67dzHWKIpu6aeAaqjU3dk9if9KhqXMOdOcSr32ZrLqYeHxJ3Mj98Z+ B3D30qSFhyg2W4W6Hu7BLca+PN/CeDA11TPQsng6ucUu25o3ZWlpNUEZy20CAjNYsip3 uNi+SmyJDNhNDOvz4rX2T6ZWlEGNO/OCf3rSNLaIsKlwKed6zluRqTQbbX2b2aq2mXxo G2jIH/Fj01YGkcU+1UL6CI2ESwyimKI331BuHcrcHyXUig8pcxplMSg0Zf3LCJvAN+Ek obdSbSJXWr5HN01TOQ+eunZ/n4Y4gI+mZRF6kvM5o/p5E3MLBARqZjC32u2oAJvWWkNi Wn2w== X-Forwarded-Encrypted: i=1; AJvYcCVfDzu16FHs8X7vsetDK9/k0toGSXtNygK1b6pmFZFVfER23GNAT+tOM15e/P9t3LO/Xa85i5WNrTiUWJMB+tb+oZS3 X-Gm-Message-State: AOJu0Yx/4Cc30Zpll1Bx02glRAJMtLmxEkM1dpLQw/SXuMZ33haWkpHj 7vWuHYeUE42Nmq9LkUj1JEWelVnGbz9eDN/61ib81EmjWucqdOaJqy54WwODJtg= X-Google-Smtp-Source: AGHT+IG8GywzWr1gIp9i12RLWgA0KqKkT63htyiYzlG61i5bfa1BVS8WIMeH/VTqcF0FTAZqtfonTw== X-Received: by 2002:a17:906:6189:b0:a72:5f3f:27a2 with SMTP id a640c23a62f3a-a8091f95f90mr126698566b.26.1723128170220; Thu, 08 Aug 2024 07:42:50 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:49 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:46 +0100 Subject: [PATCH v6 05/20] clk: imx: imx35: drop call to imx_register_uart_clocks() 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-v6-5-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx35.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx35.c b/drivers/clk/imx/clk-imx35.c index 3b6fdb4e0be7..00355a187340 100644 --- a/drivers/clk/imx/clk-imx35.c +++ b/drivers/clk/imx/clk-imx35.c @@ -234,8 +234,6 @@ static void __init _mx35_clocks_init(void) */ clk_prepare_enable(clk[scc_gate]); - imx_register_uart_clocks(); - imx_print_silicon_rev("i.MX35", mx35_revision()); } From patchwork Thu Aug 8 14:42:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757690 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 7C17718F2C3 for ; Thu, 8 Aug 2024 14:42:52 +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=1723128174; cv=none; b=Nyr2282HiMAu7Vz7ZrkuXCCl30SoPp4nu4gkFXUO8pcNlBFBo5Jw1osF57mMheGgaXDxZvG0qdN+cq2RanbTyfAVlHznO5iy7pfolD5QqZIodHOk33jMeUGm8FkuL2a4aAazf+C82EXkLa3if29NHJbxtNnw9QiCyfgi/gts/4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128174; c=relaxed/simple; bh=BM5NOBExieRXZnAEQvVUw0Kowl8OGVo6wjlq8o0hJrA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CbDKqOYBLsBuPNn9/w+rEys/42USA/RsBsQs62dYKzesv8bKgB9a9JiuXPHZA84LaUnrOCSszVpPdc4fFRQExJ3qD59murroMrZ5N1iAwj/6hRdRkKfT0PmfCnNx+iqW4qt6DBVnkbAkZT3D5AafdSx4qaeh2RUqqmknxX/U+iM= 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=JU4k3MY/; 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="JU4k3MY/" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a7aa212c1c9so143070566b.2 for ; Thu, 08 Aug 2024 07:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128171; x=1723732971; darn=lists.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=JU4k3MY/+EdrvlH8xhAPQ7kEQtt7Et/oHrgGEGHAZeY6vsBQAsv6P8GQuCTp7fEJ4T BHul6+f8R7FW2EJh0V8MnRNyZtRcNTTIFMCPsYM9/figiBn4jMdI2vkGn4Rnks9SXBcd BlGnJJr/WGP/q8BkV316OzCq73K6FrEG3PHXx1jD7g+RCIh0jwb2fUdP/yuD5Zpobz/2 HQ2l31BsZjHYauFUrdaKfXxZUH8rkXJMKq4tY8/zMtV2tspusFUBpElat9pwc6G2TQU4 aWuejC5pbqE1G/rQ8gyy3cmhzZh/KKVOW9np6gzdPSCUgY5w4zHVGQsZyOP7nQg96ygT P/LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128171; x=1723732971; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b0KZBbN+nQ1FI8ntFiIPj9qlGXoBaHjCw819hVXcAjw=; b=p2CBCb3/NplOd4h5ixABUITDgCTb2qb9DI2VSz/AUqMZphe6hkotT8NUue+Y2TITU5 vVoNuUMezU1KNUdGcY9GRbZVd3417yomoi9kCAClqv+1hi8j7nMFY7tt8VtnwWjrR5w9 v5gs2w37CdJd22PnjAP+bxB564me2DqeS61tZ70ZWe+RaGu8fHkdHkmWM0gSup5jj3tk F6hC8QSuU6UUqN20iMndG5wmKjqndU2wI5STkJ/Gu3W1J/ccynWIOf3urcv+1zo2XwKx 5P3FMdD5y3skHw/G4en0TbMumHxHJ0m8UjqJmh1b9K1l8Pht7IfT8Dyt5CfWyR1bbk6K 7kJA== X-Forwarded-Encrypted: i=1; AJvYcCVNr44tI+P3M8Gcim0mhsjGpMkOcOnEZPSSGntbp110NpHonhpOT2cbmjY8IuRpU0BjXkCsGcp2CttZdeVXs9LplDG2 X-Gm-Message-State: AOJu0YyhR+p+qf1rMr5qUwWpzXNtiTKHrVbzOHSCSfRqGFxhk9zd/uBJ DH4DyY/fhrjO3+Bw+zlDHCIzkiBAeBsPmFnaZ88l+U5LvB99bPZm5Pa/NQZh9k4= X-Google-Smtp-Source: AGHT+IF92aQdvuypDx1fq+tYFY5OivN5JbCVt20C0ukwfaeiDnLswwfjXsSThMmHvMSzFV280ksHCw== X-Received: by 2002:a17:907:f1da:b0:a77:f2c5:84b3 with SMTP id a640c23a62f3a-a8090c828b5mr152030366b.22.1723128170682; Thu, 08 Aug 2024 07:42:50 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:50 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:47 +0100 Subject: [PATCH v6 06/20] clk: imx: imx5: drop call to imx_register_uart_clocks() 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-v6-6-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx5.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/clk/imx/clk-imx5.c b/drivers/clk/imx/clk-imx5.c index b82044911603..163bed084a57 100644 --- a/drivers/clk/imx/clk-imx5.c +++ b/drivers/clk/imx/clk-imx5.c @@ -357,8 +357,6 @@ static void __init mx50_clocks_init(struct device_node *np) r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000); clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx50_ccm, "fsl,imx50-ccm", mx50_clocks_init); @@ -463,8 +461,6 @@ static void __init mx51_clocks_init(struct device_node *np) val = readl(MXC_CCM_CLPCR); val |= 1 << 23; writel(val, MXC_CCM_CLPCR); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx51_ccm, "fsl,imx51-ccm", mx51_clocks_init); @@ -608,7 +604,5 @@ static void __init mx53_clocks_init(struct device_node *np) r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000); clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx53_ccm, "fsl,imx53-ccm", mx53_clocks_init); From patchwork Thu Aug 8 14:42:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757691 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 ED72218E756 for ; Thu, 8 Aug 2024 14:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128175; cv=none; b=SVsnZ4bgXSEY2XuCyY8GCfJSWHKpu5joel36M9VBp9LGBVb+Xj35kMvGkc0UJfhFGWR/xa5FycljoP5mv8qVOQthqTfxFBFGnnZkm0Kg9IwQzpJ1XUJwlJ+Fr10C7WTRQQh9CV2PUwa2baPt9mA/FjqPAtJRvkvihlk5l7yzbIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128175; c=relaxed/simple; bh=SiZ3szIGvyuxD1G7YmXCV9iLcepTAaj5c+gARHQ/bJ0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TS62+mydb+/IwkeQNPRZsa6FwFnbjxHv3fB0FhYxacE907GG/wx9AtpecfBPz6lV7RRYfTnjmqMeZ3SqO6hd6NmrV9teyt6nbpf0NqbTR4QC+JoZADtz4KrYNcLkOhJMzwWFZ21JdtrzaT6E4uxxBL3hsQfKhevFMG/VnwkkGQk= 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=kA+/A9Jf; arc=none smtp.client-ip=209.85.218.44 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="kA+/A9Jf" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a7aa086b077so106611166b.0 for ; Thu, 08 Aug 2024 07:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128171; x=1723732971; darn=lists.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=kA+/A9Jf91uYSy33I5G2iEyIjtgHtoPsrosySSQCgJbN81KUOdfH7r3y3GhaTs/Oxv ZsvjGfnR5iZABd1uys10Ts97IH1vwcmBogI4TZgh8AQ7+/KBUTLeDqxn296h7A1tL9Of 7uILXAoPQk/kB/EilWjrUt/25wtBdQsFTYGHh6hKaiOW5zO54bInrhXIg5QwE2DV4aKF Omq+xBJHPFA7GPXlB9f1QhW/0OzuwQT2Sd+SUJyPRnnKmHey8wznpOZ41Wy5Mkl1fIwz JALteFZ1NfQgpDKznlvykiE4HwnqCdOvt06q9G6sR0S2WaHq9fxLZ9eHlNRTQh5GjjZ7 fh4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128171; x=1723732971; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f5MWL3cjgLEXuvIZC5lLXbB33GYudCtwZlnHK0GLdqg=; b=pW44wy+ZI1Qn33p1ZC/hPlCDgBbEZModoDG+bscBb8zCTwsPRIh6L4lp9VH1Vone+u I4IzH1U49C8DgVIfmfpui5nAMRuDnvtbfyYoDq3eHgfoUgzeBFJSbvJYSYsXqj1oEdyT EWEarPGo54MGT1xR51sP6x5gGKMoZbl+4kGd86lZtgH+2tNLwfYEsBYzDkvv+kceYKJT 6tYo+NIV0o2twZxdZWyYnabg47o7FBonQ1aKMSQHsqzUVV1fJ5/mnOPOS8z12C2ehzzO 1C8EcatSdRo+iEAXmB0YheP0jvy3Pr60f+Sg+GTWPWWN4EiSSJbV5/CDiFgv/fIe+JZC QRbQ== X-Forwarded-Encrypted: i=1; AJvYcCU/9TYjlLmsG3eZm7InzAjMQN+zjj0Gqj0mJzyLmt1imRIiRF7fqTHRinr/mIjnncHkDviKVi1AjDEkAT/kvwRhArd5 X-Gm-Message-State: AOJu0Yx/TeqiikjbojunMhlqbQSCX10Hkk69494JA2E5kKTBaQQ+8jk0 fJFQ0m8ypZP4JQ4dN3gULmgzaE4kIRaqev2TLWkze5QUJFkXayx43nmpEL9nZfo= X-Google-Smtp-Source: AGHT+IHSewliej7ECiKs8Pj4pcmuOAg1jmAB9ryEfKa8DiqRd8T5n1QapjnGAgj9RIhKle0pBOsBOA== X-Received: by 2002:a17:907:2d0c:b0:a6f:4f2c:1936 with SMTP id a640c23a62f3a-a8090e4057emr169860666b.44.1723128171105; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:50 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:48 +0100 Subject: [PATCH v6 07/20] clk: imx: imx6q: drop call to imx_register_uart_clocks() 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-v6-7-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6q.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index bf4c1d9c9928..b436463e06d4 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -986,7 +986,5 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) } clk_set_parent(hws[IMX6QDL_CLK_ENET_REF_SEL]->clk, hws[IMX6QDL_CLK_ENET_REF]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6q, "fsl,imx6q-ccm", imx6q_clocks_init); From patchwork Thu Aug 8 14:42:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757693 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 7089A18F2D6 for ; Thu, 8 Aug 2024 14:42:53 +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=1723128177; cv=none; b=ZN1aavsn6W7jh7oNkOtTRrmBQ0idPcabGqASREDwv393L8rWaTjHOJ9AI6GsXyKr2KtS2YGg+dv3oBqQPz1dhUAfX7HlnuwXEEeFC0nHlss5Q7aitGgG7r6mner8FGttaWb9k5mHopCpbuj1Yl5UFkc4zgY+GxR/+g9AowjxNsg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128177; c=relaxed/simple; bh=gR0CyM9a7lgnJr3lEM9JUrDdLahkhfxbkDJhWgDwKZg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SdlJiiZdIknhAOopLDmUN3Cdt3RwYm73NOJHbnNmkHk+uSFapxuRK3LbzKtGYwC0tUGDwpjaMgmf0bCOv6PEvPkNyX9GK8boLkdPLyoVuDPJAkyYYSH66hNoMz+H6r56o/Qm1iHAM8G+HlqCX7wDCnOULDQc6zGmDJ1C9TnkbEM= 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=jF+NhPdj; 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="jF+NhPdj" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5a15692b6f6so1172152a12.0 for ; Thu, 08 Aug 2024 07:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128171; x=1723732971; 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=jF+NhPdj+KcNewLnPpV3gaci+ZM4Eucsd/2b7MtPpfAeXyoRoVOoWSnFguocDZe+lY mMkq/FsG53CXla8eROde04vnbvBzdjhY+e0aop9oSoL6/G0dq+Ys2BiULt7hhIqxgGTr KsjkTjdYmU0qyHgsXtj+G+lwE4HYipyMHUQSm1vW+zp3jqyzTUyHQAKxkwekC6sl6lqU xHfyFjb79dHRt69qTvOCotLf17OIPpefQ/zJvkWn483QHxyOgE1Pl+S5q4170cNAATcF DcqLr5zv9yzp9sRDHYAE/raO/MGsW7GoFIwGp76RY/IBpbrrDfOTEw6clRX4Y9VdHsdl UNwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128171; x=1723732971; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l83L9SwgjM7cQs40Ix45OsltdwbTgmJEPf1zQuQtrko=; b=vJWo/TgmcjKB3DuMN+m7yrlQKUZfms6LvSulTyvxV5N/P1sgFnWh4y1VJTcJoXK5zb eDUgKLAu/N945E9WMYdYfqBBjwR28YGuyW6ZIDd52FGfVKYuDPw0MY77uzD3D+svp8Qf NwoW9xGvdbEHihd87a3p74gcSW/rTqUbGMEembZ2MUh4th4ZQvZRrsx8GY31vOD6ZN7k Z/NtSHpTHSt9nbuNejJ7ZBnzntLaUWvVfOuUXTRoAVCVj7mCZ2heU77F6lY4/cALrEVq 6lfyZlbEIWuQdxc+7CwdTFMx1T1yCxV9ft/E24Uow6IoRizcGnqyDY0W/li7mLtOKw0+ 2a2g== X-Forwarded-Encrypted: i=1; AJvYcCWe5dMzivT0gU6r6rOdy6IaDfVU1IrV01MGFNjlcE5M1cNOwUpFjIfIaahC80ZwPXuEeRXVBBT4Litzwf87nudBNcja X-Gm-Message-State: AOJu0YwZD38m9byXcp9q+rfYo/1Ky3rOUozt+Qm1XsathJu1YMNrIalG IkdC5XWkX/A4tg4lcj6T6ZSWBMAjVgFS9SU3rym/IXw0QBkDsnoQ0Pbkm305hfQ= X-Google-Smtp-Source: AGHT+IFe5yBX51Jekzt7C2kWUzgmsjyVacpfri7mMLlLy1Lqvgq+tUY5fWelUbD2TlqgI0C0qNqzwA== X-Received: by 2002:a17:907:2d26:b0:a7a:9171:88f4 with SMTP id a640c23a62f3a-a8090f0363dmr157822666b.68.1723128171552; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:51 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:49 +0100 Subject: [PATCH v6 08/20] clk: imx: imx6sl: drop call to imx_register_uart_clocks() 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-v6-8-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6sl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c index 47b8667cfa3f..bc3e414eeadd 100644 --- a/drivers/clk/imx/clk-imx6sl.c +++ b/drivers/clk/imx/clk-imx6sl.c @@ -439,7 +439,5 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6SL_CLK_LCDIF_AXI_SEL]->clk, hws[IMX6SL_CLK_PLL2_PFD2]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6sl, "fsl,imx6sl-ccm", imx6sl_clocks_init); From patchwork Thu Aug 8 14:42:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757692 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 B15EF18F2E5 for ; Thu, 8 Aug 2024 14:42:53 +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=1723128176; cv=none; b=eJBz72OzO3j9FQ8SC8Nxc1oNK39Sqi4O1aIQmYcqlvfahlXH4sIhj53cSRcVwvBYnigeaptYNdT9KwlCIPbsqUKcFPy3cdCfMi3ShOnOuRBvxLbFtSEr+IMcKhYXyzyvyFHdexwUOmpa6+ninQdOL3tGJjzWNqFSawPr0vUELtI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128176; c=relaxed/simple; bh=F8XBaUKciL76OFnGIv5KAgXWQ49BMItLdMHThv/YF90=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UNvagXPvKY7UPS46hrD04rOze6Zr5zBUFZat6Ku3eMlthv2bGf/4ZufoyF4Vk91jONN2tR5b+PF6IdXOevHActlS1A2HAlqNO6cwv0ZvrXMjOZLaOrUUAUMdwieIMJlMQQwx+9lDMzBPvRf0ndAdn7rG2Em5Hfj7faWSbgXuBpY= 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=iLmYboQ6; 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="iLmYboQ6" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5a79df5af51so3245000a12.0 for ; Thu, 08 Aug 2024 07:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128172; x=1723732972; darn=lists.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=iLmYboQ6+fWECb9Ngg93LfcelMHub+pi3rY6YFlesVhdBoMERipClc2K0p2ZY7Scmj qcomhPrZ7lqdxMwKXEeDXZAsSyMcrDXcveJW03Xo5MAllTUX0zgTvapHr2BgroBSfigr xGd2Vt5QXRwPbCbv3Ryd+/8rV6tnaanDi/bXe5G3LCvQHlGgKSAEgzYrezTKNwAwh6lR YdG/Lig/x98ja5rm3aphiiiI9WtCrcQrCVOb0I+trMR5wMZ2Ri0exni3IPS9/WcfJCS/ 7T3JJlClWBfXMeJt8br4RErHhJbzO+7hQZEEos+MwlO7NZgnY+Vu4KDVT1rP2o8dcg6d bxhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128172; x=1723732972; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EG/ZG6dnK/7FkbT8sGSrbUNfGaArXZW8+ft27slBbKg=; b=AuZ5zTFLJBDPjw5vA5orBPw4OsibFH5Muf/W3z/M1GeUA3ZZPx0Yxz8tphabnYrNDL R5LM2LJWgfLg5tBXZ8f2O7E49gdjaxEs1shDzZNl6KXRkTj7ehjE74Yum90USnmCWnMK GqhU3LX5/zoHrsoh+qq25zi+pQFBddHw+DjrlG2ueMx5ueodkYq+VXz2S/YWKxrv0z8E fhLDcYlfBSDLM7Lm+4RQlmN77rApMP/UKKnwPfNVX/xyzSJbm2I4gsd4zUemv2aG3inm K+664KRz9Zc30f2MY+qSnmPhobHE7xSSXB/7QZq/5hrMt0xwNPsN/eOjNq+aC8IlxjZx cT2g== X-Forwarded-Encrypted: i=1; AJvYcCUx4TmZb+pY+wDknSp54lX/gGXFl7QWQxVPwDpJbPxOOsO3DxsG+EwIw0swFTdttmQDbZxnzUzNcu/D1kFXnSbo+ycq X-Gm-Message-State: AOJu0YxL/GnP2PUJJhoPudQ8qvXcQB345pA1EMzT/gvFpZ5MhwVHwApS 3D1Yi+kTEsPo7mFxdjbCIs8qH+oUPvHy3ESyuahq5t9lRsvYmuK3T9FzHAcLjtk= X-Google-Smtp-Source: AGHT+IGtJSveR8KZxSWZ0BBBvkzHjtJ1Agj61Z/XNfYmQr6Fm/KzaJ6kZoSkBXVQlwYGFGtVuoa17g== X-Received: by 2002:a17:907:3da4:b0:a7a:81ba:8eb3 with SMTP id a640c23a62f3a-a809201715amr190601366b.27.1723128171973; Thu, 08 Aug 2024 07:42:51 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:51 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:50 +0100 Subject: [PATCH v6 09/20] clk: imx: imx6sll: drop call to imx_register_uart_clocks() 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-v6-9-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6sll.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sll.c b/drivers/clk/imx/clk-imx6sll.c index 2fa70bf35e45..4310adc5d54f 100644 --- a/drivers/clk/imx/clk-imx6sll.c +++ b/drivers/clk/imx/clk-imx6sll.c @@ -340,8 +340,6 @@ static void __init imx6sll_clocks_init(struct device_node *ccm_node) of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data); - imx_register_uart_clocks(); - /* Lower the AHB clock rate before changing the clock source. */ clk_set_rate(hws[IMX6SLL_CLK_AHB]->clk, 99000000); From patchwork Thu Aug 8 14:42:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757694 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 B0EE318FC65 for ; Thu, 8 Aug 2024 14:42:54 +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=1723128178; cv=none; b=GMaN9LMAwugNzf7GCzlG9KplxDLgievu2dE0+09vjNk2NwZkw8sofDOlj61FuqjqJS5WfeDap3udCBiCh58lAvOrObJpI5sLUwppHpLdbpJqy7opPcy8lzuKDbIIvKkeKCuPs75eNbQO9IWy4TFWOv1aX+iL/HtSseZSx7Jvn0Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128178; c=relaxed/simple; bh=Aa36Al+8XL+o6jnCRaXGcn3QPeSfqDekEcFkrR4ZXoI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=o5ItPcE6h2iigpLJMuKusQaQlxuSHjGnDfPVB3AqJ/2OEJQ+gpGNpbKLPig4f1RpX+OYjq0vI+7YnzyqAIFEy6iBmbFTO/swM0rvWJHay54lz1ZViMzcx87I45rBxrXHBlI+AOxewaoi8Zyoz9fDBVTtG5ACjY/xZXT5Jcn7ap4= 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=dMi6zJV9; 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="dMi6zJV9" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5a1337cfbb5so1328150a12.3 for ; Thu, 08 Aug 2024 07:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128172; x=1723732972; 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=dMi6zJV9D5lax3NN4JNdE/JpDP7p9uMvoejuZehoBvZAH6Zv5Tp1LIiaPpIDlLafFc C5Wj5UI8+fAcC+rJEI2FP5cSKPE/EQWF87PCwhosOjDjcNnVvshUbaHg63Yb3QIcDHIN ero/hZo23W1lWqjutiZcZlhI9lgOoV5Bt6rO/GA2bLUd2wHUPuahaQP1IVww5skspElr X05kazojhrgC46MdQ10z+0K/v8KILrf0owQ2csLYspB4dGUalA1oGRwdKEaEIzNT+Rl8 E0loVyMVQ0a6FcPv32CRK6gmwHRzcyxVwN1FXCT0rXcMrU6ebhwxr7b3tcMCNny5w1CX q/Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128172; x=1723732972; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xSaLptLfozVkUpjw1oRI9Gwlbl43zWvMUP09a2upKVw=; b=TwRbAzHcSnnsDXu4xjkrnpJG+pl0dYOVF8BTL1IL6+hCe4ANfJm7/RLsK7dxJNg5Pb JbLo8wIokB1qgwVQDCbS3h2q0k/LheJERK755ZJCLu20Tgu46UCDPHBBsqDhbqjLM1bQ 8pVirAwBhq3b2R3tQaUhNXFhtv3l9emqsOcasOOwIX7Pcvr9wr/YDIzsr35jLYvNkw0y Z855dLUxOwGD80F4tASWzbPbRe9knPwUxCyTSq3kcC55PFufYHUx/1dvT5OO3ka/4zFu 47l8RUHyiHqFHlpdZD/C8/Ac3Xkc3yJlc19KtbH/vVk62QQcuukE+YJuJXLbFZ7C3Y3+ Zl8Q== X-Forwarded-Encrypted: i=1; AJvYcCXr/8NnMuy3EAmgR3iGtBiSb/MUaEOvN06IRnf3TH/RtjI8pDVKDCpu9kKCeAfnRVvdz/6aBwdGPQDHCeXDsHA/Gthq X-Gm-Message-State: AOJu0YymiYH5EqN/cRjsSL5dsXQxpNs+Ew4lXe1bsgUZbMxBi1qgNwwd MyZHpSoupz0fjnJZ6B2jYP7gsAuD0YJAlC2YEQooWVRJeqHYskgCSqzJWFxxouU= X-Google-Smtp-Source: AGHT+IFMK2qopGYBycdChfC/X1LoyzHCLARQBPYUBx9YA9oZBE8LNw3RFGiTAugu4rQMz79p2jq/4Q== X-Received: by 2002:a17:906:6a04:b0:a6f:1036:98cf with SMTP id a640c23a62f3a-a8090e8a3fcmr157838366b.54.1723128172451; Thu, 08 Aug 2024 07:42:52 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:52 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:51 +0100 Subject: [PATCH v6 10/20] clk: imx: imx6sx: drop call to imx_register_uart_clocks() 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-v6-10-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6sx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c index 69f8f6f9ca49..4e42e30245b3 100644 --- a/drivers/clk/imx/clk-imx6sx.c +++ b/drivers/clk/imx/clk-imx6sx.c @@ -555,7 +555,5 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6SX_CLK_QSPI1_SEL]->clk, hws[IMX6SX_CLK_PLL2_BUS]->clk); clk_set_parent(hws[IMX6SX_CLK_QSPI2_SEL]->clk, hws[IMX6SX_CLK_PLL2_BUS]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6sx, "fsl,imx6sx-ccm", imx6sx_clocks_init); From patchwork Thu Aug 8 14:42:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757696 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 8E66A18FC77 for ; Thu, 8 Aug 2024 14:42:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128178; cv=none; b=j4iQ178sDPB3hHEcNJ9WH1t1BV1l2CApvDcotfHGAvoL8LB9k8guGlnTDk6wAfDStVx7C4GltoIjJprIOhEIFnC1of3n/OsqBt8gTP4eWshwx6zoDOZcX9dG3gBZ/5sg4X004f7BlGG6WH+0ahj8LjeueIUhuzDpLrFROq2g4wU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128178; c=relaxed/simple; bh=RCzb4T7ygPujxOgSIHXjGoBW3H5sHyUhE9zlzlMY0qY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cYiQh5vK43gylcj4F/eSppFGYXz/b0rv2FDkh4/Xd9N8y18K7kxqgxwtLCoJHOmEbfaFR2ft8evhLXdUnW06uFTYGTyxUUZBGMPYGOG5PnU2ylW09+qsEzYHbLZS0oZfItedbORIv0TvydHXL+UyAO6pM1id33DBjBtDfWVKW3A= 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=hq5zu2VQ; arc=none smtp.client-ip=209.85.218.52 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="hq5zu2VQ" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a7a9e25008aso129366366b.0 for ; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128174; x=1723732974; darn=lists.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=hq5zu2VQkqOBU3vOExo4Ay/Imm5HwxVU+PumqS+VP/Q8qThI2A5d13AAzJK464obrP QC7m8/NxVCfxXAg93vdu4RSSZ82PVSPt17Ht4bCRWp8pz0JsV0EJJ5YnfT+dEmvh98gV brXP/SVnzFwKdm1OFoBsupt/39SIB/DM8Oi6l8Jj3gMrbwx6Nu6vb1CBvRR4j6egUDx/ flGWeZ2EMLunxiDCSajvyZV3HuO+WkwLQsAa7ARhjd0KtTK+YMK9cBMvi6saEaDiUEei 01uFt6diKphkOZg4jNNYeDf+9kK8vIVDL47nn+oAy2OYqyABN0li55LnAhug+ILRSO2a RNNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128174; x=1723732974; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fELKcjyo4D+4io09ckq4Quxisz8/UoBpXMhoRi06ZaU=; b=hOyOzgEArmoRrm09YfC0bOzWez4utmgS3Y8YYDCVsDr1OQ1hprjwqOXmg7zcGnxuaC Kk77MgRxeHr6ji1LlGf2IILKzbrTvtedEZbzb7SS59vbNC/WkDk42N7V3Oz3rf/F92uJ TASy1Ej01fh5PH6DUX7a8m54XwyYqnzZzlnzFwP70WVicEvU/3PyfmWAE6SW8ptFA+Sb KhoVZjOC9l3rL0frC9Co6WeLL3UetWaK2A/UmIbVBmPVjD0RMHmYUeQzaqVtfjcKXCcR JSs4eYNjOAHOS+S3q/RNPBmymL+MN5zbDx/bfVIG7r9X2qPiX7eWJP5lWbkHwiLPHULu J1iQ== X-Forwarded-Encrypted: i=1; AJvYcCX0im3jzJ+h4RNzJLQ8hQIjJmTAQ0+akypkkXkbE2gouzxxNxpGoiNzGeGdZyv28H4duxSwCYta2afRnRlScibLWfYX X-Gm-Message-State: AOJu0YxRBQXOaNY4aCpVVAus15nL+wE58oferb1J8j6US2K2/dChCkRa LC+R83RU7iME38dHZGFy4dW4QPYvFPhoEI3c8WOGY5hdj4az5aS2q2lPCCXKmjw= X-Google-Smtp-Source: AGHT+IEdiR2uqxL40ypq1eVBsdbq009S5HpqMJsLtiHNMyRcup08bUljMUs/bT8PIRSRi7Q4xYViWw== X-Received: by 2002:a17:907:97cc:b0:a7a:b9dd:775f with SMTP id a640c23a62f3a-a8090e3cf84mr182258966b.55.1723128173566; Thu, 08 Aug 2024 07:42:53 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:52 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:52 +0100 Subject: [PATCH v6 11/20] clk: imx: imx6ul: drop call to imx_register_uart_clocks() 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-v6-11-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6ul.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c index 05c7a82b751f..b828cecd3690 100644 --- a/drivers/clk/imx/clk-imx6ul.c +++ b/drivers/clk/imx/clk-imx6ul.c @@ -544,8 +544,6 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6UL_CLK_ENET1_REF_SEL]->clk, hws[IMX6UL_CLK_ENET1_REF_125M]->clk); clk_set_parent(hws[IMX6UL_CLK_ENET2_REF_SEL]->clk, hws[IMX6UL_CLK_ENET2_REF_125M]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6ul, "fsl,imx6ul-ccm", imx6ul_clocks_init); From patchwork Thu Aug 8 14:42:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757695 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 D0E6418FC8C for ; Thu, 8 Aug 2024 14:42:55 +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=1723128178; cv=none; b=IGFp0PS+ez3RjpcofssigYXnQeLulwVgnGjA63osYDA/DadoxK0U+UQ+riEtCwrWZi6PRxOdlT/ux4whisG7aODcnEu4wiYPd631qSGxq2dfJ3Pxa3q4uGcMXqUOc0jWtX2csd1+VliAhneKDaTFJAhoTVlJ2wzSzG1+AATMtbY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128178; c=relaxed/simple; bh=k4Mp7OQtKEMyYQQBprE0etTznHJ6XNdrfUzHCPYj4Ho=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lrhp9iuz+BBOGAErGveX50NACK97+uqXLIbUr1y9US0Eqk7BPxvqAZRShDg+qamBqcLMn1dtNTbj2dduNT6Gj4COGK9PUFEQJ1hnupa/SC3aVwolNQXkrwSHPHtAWCExmHyuHbVQtiCigtGe0fUtFP1CmfqDiBxtfGTTM6EO3Ro= 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=nz0zfDn3; 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="nz0zfDn3" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5a20de39cfbso1125693a12.1 for ; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128174; x=1723732974; darn=lists.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=nz0zfDn3AiGxL8fJXS9xd0Bl9KQXpoA86cdlKtXhmd2MduMf7WajJDo8oGLt4JhRzq 4Tal5tvAqSDxeDFP28RxzUymYYOpCo7IbDDFDdCSxyN9PTGjq8lDbBVZ6YtSFcs1u79j yUkvEs8QcYRdA7n0o7+M8r+Fbg9kV0z6DyYGc+aV919LdRkGBlpfzlUXhT/9XIBpTqMd vUb96gIwDMMPFZTjP07wfqZY48WYpPq+cNTtpgu8C4MQTAEjCt3rZsxnxD7zPxT15ubl dVaSQ/LkUNtXB5KpstPzWh/ayHpZCtf8FfVpNCVGwewCKwbl50YE66WxK4tro8veqgMr Y+YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128174; x=1723732974; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0sTSIJgqJzgG9ZOeXhaBq4KjYwR+dgEfjYLq292FpHw=; b=N9csvcC3/lbneFfd8AMgV08UDOQzmgYa6nw56PL9eEsqLMf0mmphYsBDkTcnaNvP7M xJFiFxOc/FiZCb8NsNXZcHVkZJ1vM8IepHpG4g90S9UeJVEMbB4+yuRix6qcT55AN9zV PiexqL89CBro3v70csHu59TCkjxW7qIbgZ/uhwEUJLVhkeJSfx9c6uA1YhBJFoGOlb+n 1b9iP83UbDO7KdwmItITbWEVEkimf0tRV9KjmDQw9i1pcQK/96uK08Og6izqVnDkFcI9 zaZ/EUUbpZq5hETcJraLQ8hYSRPv7vBySJ+QAQHS/RkckWL+4deLNHpZJWKeWgEgDzOK ihvw== X-Forwarded-Encrypted: i=1; AJvYcCXrpMf81YBuaHxTaVG+PUAx/9Ii32fGxsxVgNzFW8BzijRU4WKwKkIROkKx9aYK/nGXKLVd7aDZbP/gxL6YAa2svZfC X-Gm-Message-State: AOJu0YyOhe0eRMIiSzwzWfd4kF3kEB0SkMDOa8cfs8KeAY6T0NmdRKSW FlQ0NxYjf9x+OUV4VN5ICXM641fhB/mf03kEQiCj+F3yeGPgCtaRR7FHKKw8Rcg= X-Google-Smtp-Source: AGHT+IHR8FpJNdzuqaSJlCS0dga7rPYT+WlNUnJeQS1SMhIWL9rsDOEKxbf+CirVT6VIRhxUGlibjg== X-Received: by 2002:a17:907:2d13:b0:a7a:952b:95b1 with SMTP id a640c23a62f3a-a8090c82bdemr182009266b.24.1723128174054; Thu, 08 Aug 2024 07:42:54 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:53 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:53 +0100 Subject: [PATCH v6 12/20] clk: imx: imx7d: drop call to imx_register_uart_clocks() 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-v6-12-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx7d.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 99adc55e3f5d..789cc3afd062 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -882,7 +882,5 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) hws[IMX7D_USB1_MAIN_480M_CLK] = imx_clk_hw_fixed_factor("pll_usb1_main_clk", "osc", 20, 1); hws[IMX7D_USB_MAIN_480M_CLK] = imx_clk_hw_fixed_factor("pll_usb_main_clk", "osc", 20, 1); - imx_register_uart_clocks(); - } CLK_OF_DECLARE(imx7d, "fsl,imx7d-ccm", imx7d_clocks_init); From patchwork Thu Aug 8 14:42:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757697 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 7E8F918F2FC for ; Thu, 8 Aug 2024 14:42:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128179; cv=none; b=fs2Vy8T4Y7zwnvDn7NHz0QTSEX4d0NgdMdLF0HM4ix2qj6+Cc1WSQKPgKyRGwPP2xaTyF2txUwGzLVybaf8d6gCMcDozsaw/EbKHF3/ra+uc3NgNPl/KXTzDJo4ApB6tekZNc/xAQU+OZnGQm0Q/epAeJosLzHa/0rO8lYNJk2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128179; c=relaxed/simple; bh=dtBXWxh6pEv7DtMPsjNa6bKadgnceb0rxD2xntEHe8Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=i1L9u7uz+961iLmp8aq1CERPT7G/x60Oos9NTq7kylXyZ9zNYAK88ELCJAO+3zLL9l/tDyfoWBjDJvzKYS7owqpMHMO1KbOuxe7Y0ffG6DMxenTyaFEojPVEfzn767J/DKZ27rBjm+jeOMyz79ak9dFBl8udMy91/X99B/aIVyU= 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=LVWtDdsn; arc=none smtp.client-ip=209.85.208.48 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="LVWtDdsn" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5afa207b8bfso1083678a12.0 for ; Thu, 08 Aug 2024 07:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128175; x=1723732975; darn=lists.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=LVWtDdsn+bEwGnth4eCFpkBTsRfs1Zf14NU0ptBUpZqm2D7POC1gy39nJlRmhwlEiL RmRwOOlV2KQmmdC77VML12TbKL7ju1L8I2P4AY9fX0dHPzsqDDE/36VEeWgpArBvSRNg HIbSXUDd0yIwKhZ8wq4J947nhdx2rriZmYMEKa5dLT10/2aly854OPiXO5qs5/JKlKvT mBPjal3pJJcfj49Uw+mrwfLRUpwZpYA12S0hbXhXPVC31Yq5COl5ejlyr6X2IpcR1ZPM J32znij3M8SJuhun82Y4RTNbZPd8bPpuXL1/hpNyqby7xvt2RJcgIBY9VSyV+wO3fbn4 UgnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128175; x=1723732975; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=645sqhYxiGhlKPfMQkDqwsuRcG9BMBI/0rO4pG2w9xI=; b=lykRKBu5HCZL8CaZY/DdHzg43/S22aN3OgieVnk9t1mxmBpd3lfbrbixK9TrzZM6Hk dyon3aHoUm6G+TpinMECWuxOm89r+/5hBslUr183AaxJiIcTupf2XZSNLcv1JJHucUcf Qm6cz64cC/xO2w32465zttlvKo/beS84unF+rESBgqyaK8goQBfBH2CbvEgkteFVPVsE 9E5sGmy36c4YiSlQrYx3636izOe/UbT/0jeSao2sMOMUaqWUaka7Bt86c6EbOitswvu5 Lxe4zu4pLvekfnNdeu8jpQiqEMqoQXBMet1TXVrqE+dvgLGVGcltGM0OpaVa9n4MIsxw uJPQ== X-Forwarded-Encrypted: i=1; AJvYcCWzK7WGeqDYuNsDPJeZCLtEGo8PURMH5oA51o4RgkHoaDmZJ5P0jaIoi4wgDjHKzAw4oWqX8I9pLIF0CyTJ6wt5Mz9e X-Gm-Message-State: AOJu0Yw8qXVflsRl1/D9TCucPedfhAzCmabr5smjXU8M6mYEMf5iW9Sp /S/6PLSDj1N+VQVEhwHlcU+Bop+D3qx1lrANeFMZDA/ESjxuYHI8tjb6QJoK9NI= X-Google-Smtp-Source: AGHT+IHmAxlBw4O2VUn/A8heI+wfeEh/p3nxcqvtlZJmde0nHyNMStnoDpAJEr+6mWLx5is/WLQ66A== X-Received: by 2002:a17:907:e6e7:b0:a7d:3de1:4ab2 with SMTP id a640c23a62f3a-a8090c829ecmr157391766b.27.1723128174551; Thu, 08 Aug 2024 07:42:54 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:54 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:54 +0100 Subject: [PATCH v6 13/20] clk: imx: imx7ulp: drop calls to imx_register_uart_clocks() 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-v6-13-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. This should also plug a memory and clock reference leak due to multiple calls to imx_register_uart_clocks(), one for each clock unit. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx7ulp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx7ulp.c b/drivers/clk/imx/clk-imx7ulp.c index f4a48a42637f..517fb388ce85 100644 --- a/drivers/clk/imx/clk-imx7ulp.c +++ b/drivers/clk/imx/clk-imx7ulp.c @@ -175,8 +175,6 @@ static void __init imx7ulp_clk_pcc2_init(struct device_node *np) imx_check_clk_hws(hws, clk_data->num); of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx7ulp_clk_pcc2, "fsl,imx7ulp-pcc2", imx7ulp_clk_pcc2_init); @@ -222,8 +220,6 @@ static void __init imx7ulp_clk_pcc3_init(struct device_node *np) imx_check_clk_hws(hws, clk_data->num); of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx7ulp_clk_pcc3, "fsl,imx7ulp-pcc3", imx7ulp_clk_pcc3_init); From patchwork Thu Aug 8 14:42:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757700 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 DA98918EFDC for ; Thu, 8 Aug 2024 14:42:56 +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=1723128181; cv=none; b=qPo+aVgfGrlEnoFlmSIDF2sGRZ4ZcL95Jh5ytTW2T1BcjzVoSL5KpXkmwqLWFmWvi7vffteMtpTymqt2J0Rs801iCiIEmOW0YvXpP0ar+wstf1l/PbS0BlnyMC4OQ1dHIJz0YnKg59jisjq9+pmC4UPA3Lw6BeIUItf2SVb3gKo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128181; c=relaxed/simple; bh=1ir13MZl0az/9cRAPNM2xtHw/7Fiznd6AQuTHA91Vq8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kvY3Qx5Llmu1F6cSfZp+vQVe7Y9iatr+FrzMT6P1+i/8RL62UEhuhXOjQVUa1pP6IRL1T4khxK+EOFRLAHo7dqHwFJhGJUkKqNqRJzP4b3WZ0wXMcNEklqpgFtiMKn0CvxxQ+C5ourx1cSMQilVzIVHz7iZ9wOAKLYNDC4sl95I= 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=Lxj3ZuBm; 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="Lxj3ZuBm" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5bb85e90ad5so911174a12.3 for ; Thu, 08 Aug 2024 07:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128175; x=1723732975; darn=lists.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=Lxj3ZuBmAjGp2tO09gS+ui3J4/Jua/SzaOvvv6kHjeNHzlcf0RBFBVlijK8ukurMFX ek8shRzoF0pK7kCX5DWfYvo4Od3FzrdLv1e9WXcmuXJlTwkiKIu6qAuuWZ1/2AYTIFXm i+xYkAHfl36wdzFEACqmYrpJ5RWPX5ep7bdsULgKRKCn19itUCLcDUYAlgv6WyjeO1so l08UcDZ/rPTAGAg/7Z+kSMgTCrkse/tc/LK/CAZHHiVDZ9WN/OZdHaaQkeGR8sHbB4Lh m/7GCugpmYhqo0eoH8GVx8hjygPCVmXpOhIMfb5qIMy6TvIbiec3bXAyFBRS4aMdNZY+ ePlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128175; x=1723732975; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y1g12t0G6k+jblt/poXm1qsZh457ASaKEWb3Du9DwTI=; b=ZvS8qQ4IkHqB8bcp83gckm4GNUEW51AK45VHs15lhoHIf8buRoOkXn5DPzGQb9SpTC v2NSccksE3mRDNT1gAqFLFcV2Li4ksyixww3YS1PHISHV42cHRQXfgBCAGHLO5VC9LHo 2hvDvtEaU6jrrdQcpqasKDJ5X9i/ce7gZY+6F0US4xEsm858uUheTNaRNz5KzgDv0jxm EIK3SVlXBqvxC30JWzuWtWJj/rMH7TWNvfd7yj5iQdMSAoMgrYumqGD1N7YdOTPF0Sgf fwUwurHNaH6pV/aT9DRXymDC7g7P/RdJmqOVOufmtt9bUzQ9HVTrL/Gme6KJanSvkDJ2 AAyQ== X-Forwarded-Encrypted: i=1; AJvYcCVTk7/uqVp8n0DK3W6unCk4TddKk6xyrAptaAW6DcJxRlVrQD/c52yMxKJPVCLDcKjHeWqNinteo/tgbmFiH1YYzrou X-Gm-Message-State: AOJu0YxHqQ8TKOvkCy8JHwfe6JfB4JFAf8Wz1U/hGvuYm1aEXO7zGK8Y fGqrZMUpxc0vv2Q7WfR63WnT31ET1e1doDHhOHuvRkW2ddWgto3eJsVHsg5pDDI= X-Google-Smtp-Source: AGHT+IGAVsFCrxEa0nQ5OTtx9phtXWv1jG1gQdi9l9rawdN91kA1XKHVuXOiSginDsSrGNiBP3l5gA== X-Received: by 2002:a17:907:c8a0:b0:a7a:83f8:cfd2 with SMTP id a640c23a62f3a-a8090c68ad0mr142902266b.17.1723128175026; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:54 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:55 +0100 Subject: [PATCH v6 14/20] clk: imx: imx8mm: drop call to imx_register_uart_clocks() 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-v6-14-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 342049b847b9..3f649da0230d 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -609,8 +609,6 @@ static int imx8mm_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:42:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757698 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.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 7F5AA18FDD7 for ; Thu, 8 Aug 2024 14:42:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128180; cv=none; b=DDW8HaYGfD/37HulXhuulKfTVDQK4uoro3SqJevr5mZxHtPtW7/LMDwSNCUaKDYuNFELIOftOiQYe/8hOxUM5Ui7tXcDRaUcau4H+I5lfzgWd/UyBgDbCXqR2qjdRKpI+KYU8N8anm4BDw9wKAzUUHZvchPZRyQHianNIkIl3WI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128180; c=relaxed/simple; bh=e8jx8xmkdW6YnrISThEmwGeUauedgdSxxNVyoc0/+CE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dlgRI2bPVH8yWyIisXBktXOtSR6+QbBDQSH9TIMIVDGHYz3zEHZyvvq6aeecHwboi2fkufedtWB8kynxEChq/G4eKtnpfymV2ivdLF+n9iTPJwJO2yBmRsfiP9kvKD3ZiUduvAyFZF62aJ9QbM4Ent/RW7p7SQCkOY6UvXI1Eg0= 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=bCH7Rjgy; arc=none smtp.client-ip=209.85.218.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="bCH7Rjgy" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a7abe5aa9d5so138300566b.1 for ; Thu, 08 Aug 2024 07:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128175; x=1723732975; 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=bCH7Rjgyjriul4tqTuWnP/AKwEPEgZmhCnubU1iqZY+2/B11Wkwhtcex+rYxV86guW 2GtjIrX+MYjUMzo49OzxArxJsIjMAIdogGrobscDKPDXLX4PY87pnxHy8uwO9Oeys8YF c/DfSOfr/pGjDK8dPrX1xokWNJ5OdtQLn0aqsLBwu0p/xT2SZS4L/mPDa6nLiPXCrOns YBAFwcOwccJ7WQf/nPdvBoeVnWF1pcKMTuBFHS0C/VyFhVZkme7mMoWYUT4PnFVQk3tT V2jrrmv5sFNqTS/sX1t8jkBZCLPENn/Defo2kJ3ND/w5TrvgoQi1x84q9ewn7v3D6UJH ky/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128175; x=1723732975; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c1BcegJWI56BA/X7kHTU13cyTVS8Z7HSnW1uFBI1IcY=; b=nmeBlfgio7zUdwvsUFXwvh81o6xlI/Rlghs3jdcvkXJqrvg++PXLgc41Wk7dzV13mb 1IzzLLZDeSyKgEycVmZaI5UB4TYE8JeXWU43FHg1We2YdmbefKjFq6pRhyw8r7qGUQHk pcdMeCu4PgQgBiHncWK0jiTGtV2MNwnABRrP+E4ZGFHB6lZhCSXSfcEo+8or5rHO3JM+ YMJEUBCtZ34Ghr+fyWxVc+DtrBx+0AjRjCE09SbJ3R7qFz0STXWZQsJzJEzPn+K0nJ/V aaVEyjOTY8JNgjZo/x8koCmxhjbgPrmo+TRjm8hvKXcxmwQlar6ix8k/s5TW0NQkkGtT zfIQ== X-Forwarded-Encrypted: i=1; AJvYcCVDnlM3NPgRUsUl9iI5m48jk/RtsQJvV73bV+GdAKjq9jNKW+5VvkpZvlXQubrLOk1zVhlQVN4xy+RH/CGHADqjXXuO X-Gm-Message-State: AOJu0YyJtBqLBei9YiTQbiSw0yRCFn25mxenzw2wfSDx55tJnQ25kefo 4YuaFbjttSET9yEGJFFtJrI7QusXHSiByYS6C2v2vT2rfDMSNh9uhb7F1x65+rg= X-Google-Smtp-Source: AGHT+IGEjPZ6D3mw9uu41eGOe1/9dd+KO47dw+ehD6I1DSyq5FPAseWCyaO5gOFwMq0QnQVKVDCluA== X-Received: by 2002:a17:907:72d4:b0:a72:750d:ab08 with SMTP id a640c23a62f3a-a8090c32551mr185430666b.14.1723128175435; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:55 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:56 +0100 Subject: [PATCH v6 15/20] clk: imx: imx8mn: drop call to imx_register_uart_clocks() 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-v6-15-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mn.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index ab77e148e70c..af7f4c6b51e9 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -603,8 +603,6 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:42:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757699 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 A316218EFF8 for ; Thu, 8 Aug 2024 14:42:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128180; cv=none; b=B9RpcYIPyLB1Hr3Kc9qgKpb01oYg7tVcx45DMo76/TmhXllG/RHaPNSqv0Y97LQL2dyeAxgjUvy+qU+3gBQGvmYbn3YPGxJcCb7p4p3TDScY05xMG0jbBxCVyCSLD0pN2w2YolIQqcegf8UgSjhLXONz0x+ZAQ1ZGyKdBAESG5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128180; c=relaxed/simple; bh=fgoFdUktN0AC8jt3vFeTIBwCbSQYaBCYL6rp147Iyig=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=irVl2YEv8N7zDay752J+NJb6k6Ke84kdAjobjC4rTTTmAOT5wBkTTFaqgglrQR5xBGaiikfO7VAiKIiSVJx+qa95wVYKju7dDY/M+uulv0PZRRecEwDGCIL2tx1hGNbwuox0WKwOOKUI6ofJUuqNdHbudT9StmfOs1XjqaBHu30= 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=S2U15kZ+; arc=none smtp.client-ip=209.85.208.45 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="S2U15kZ+" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-58ef19aa69dso1062260a12.3 for ; Thu, 08 Aug 2024 07:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128176; x=1723732976; darn=lists.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=S2U15kZ+nyBbeh7XTq6wEMGSu6bjRD0rEvlwaMp8wgEJ6RcYoCf2GkWem5AWLL8VVd 34d/TVpqpFCTHaT5WO/+R4om8joATnfFfGrsA2gWdH3PeDQSTtbgvu1Vo4yK8RDwjXKr okMPF3QOTnfH9Vr9bO2Qk5wJ4Y7+8R9unpdiE4gRxf/Svxw3v/z1DUuF5kouIrhN8b0y 910Dmde2ry470Lknv07kgTA/iJW2FfMZo4UwHg7zyMw+CR8pxJnz68y+/fHC5Qfb88V9 EZz8sEtwAhLKpY9jus3P8vnRzPbl5gYGNU2gYjBpNbdFZRTCeR8DecC1jqpfhu/jAQ5F SeiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128176; x=1723732976; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Of9JwvhLlmcEUvlQcUj1kyU6mPikzafRwyTDPy8iQT8=; b=ZHB0kIZNyBBzA+03KPr0pbAKTle2eo11d0IQe9tN2RFVcHhcg5B8aFNPgam+kVmvW1 9KhpGzhdktnhbLgWFx9iNTNzgiI/wbwcveTqZMsv4Z6Ak9kyczyHHcfDeO6YSeobV7su zs7TQs2h4t8hpyBgwq+JrFl5v17xYO8JZEKNWmv9R5HV1c6BIg8GqwmwAJ0j+PWvysuz qHIUhSWS8Izz16YYkMFDLfITGBqkQW0Uv3afciBR/COq9tKPywceL9QCSOds6koOpBSN BD3AVoY2yNMRkw1UMLvobP74i9OojJ9ixyUeeP+vl6lSRN+vJ2SS8Gw/ZImbpL2i1MX4 Kfqw== X-Forwarded-Encrypted: i=1; AJvYcCXYUWciWy8VAu6e9iRxEX4hDZmKoqsJ3sAfckTOsCXk/J0omrmi10FPU2OgQyxIvpuPp1035Ddh8Eej+WmzBCms5TOI X-Gm-Message-State: AOJu0Yw/nm23UOMClysJpzBJ/rMQNIC6rJuk79O8KpvUu51pI0Ky9sJ+ v/47tZvC7aKF/611I3E5VpCH9Bs8e6TvbCaQRjOoiSaeYRxIgKQC/AdPTGhGkUU= X-Google-Smtp-Source: AGHT+IFSPGIEwEerUResLzza1dskdeBStZ+yQq7ZShNAdphCslLhbLSN6wQiNk3FONRiktC7/rGCQA== X-Received: by 2002:a17:907:a47:b0:a6f:33d6:2d45 with SMTP id a640c23a62f3a-a8090eb48a1mr160008266b.60.1723128175854; Thu, 08 Aug 2024 07:42:55 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:55 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:57 +0100 Subject: [PATCH v6 16/20] clk: imx: imx8mp: drop call to imx_register_uart_clocks() 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-v6-16-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 516dbd170c8a..1c128c051199 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -721,8 +721,6 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) return err; } - imx_register_uart_clocks(); - return 0; } From patchwork Thu Aug 8 14:42:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757701 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 AADE718F2D4 for ; Thu, 8 Aug 2024 14:42:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128181; cv=none; b=FcZNKbkb1B0Gv8W0vTgx62E6yf3lbLvLymU7fxyRb7OACrxoK4wv3LBbl/WyicCBYTQAh4Hg2EkmlRDZoDxfVf1f+mB2vD8egLN3K58EdK1ytCxzyVKh6rEzJopPErk8LC4mJR7QMVUqEWGQb8197wxSx7LtBDHoKJXtSc8bp+Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128181; c=relaxed/simple; bh=IWr4xOLwFlcBBVMqbh/CeNYKnBYkZvyljj8xB0z/c08=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bJqMBgbZqtld2anNLBcEbzFTJifbF3qSbnwHRgfyu2BXhY2vzNcKW9rykH4Zbmh1btKcZrVUAhchVKbpzvtH7OC38r1ApY0GVUPsrFcpw+Iqyj19Ky4mPIahbhzPrChYBiz6DORi/Ia9V54rGH8gw4GbmgnoOvCKCbodZE7psbQ= 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=TM/I24sG; arc=none smtp.client-ip=209.85.208.48 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="TM/I24sG" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5b8c2a6135dso1405980a12.1 for ; Thu, 08 Aug 2024 07:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128176; x=1723732976; 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=TM/I24sGyC9JrCVfrgsGsGCOo01auWOzQNaJdDRp5b68HXQlkb/h/2RiLfI2QA9+Pk ZAalxU6RDejjEZ/DXkRvjxVs6Iv9RQj55oooqv8zMcLRck3qI7nW8Gej8ateKq3tyaMN VaT00Sp9NHtk+uld+RoabI1GoOadnHrrt6ks8kqoEhoWeuzhJWJwggQTr77LKaHteBc9 NwgXm+UuHTa0un6A5dE7Cw31vf2h89j+m+Cwpi7zpU4Nlv5u3TsP7141ndi5OKM48M8U 902OaIkeLNO+NCoUz2tti4WuYPADyB+a/cK4AOqN3tTI/JfqicU8ucUMTuaivmjQ2pL3 PdAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128176; x=1723732976; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UhprNA5ngdnDDPt6+AGX+wASXbiO8LYK4hmScrmWYDY=; b=XFAwbfU5aPNvR2j94lgtBXBddJjYFNJ+Z1D4lkRixCHLkfRINBgBh4e7EK/MxKC6lw ARlw6JxsNA5+h1WGzTRl3r7wcUdnQZnzC42wj1HXVYMfrfB1pAXEHXjKWY/QP/23dIRp Ei0GhPvLXoNilRD4z/S3quvKBYskFK/9ZI6oWX20J2AzSfDJ5JEuiDBNNs3qwKvzDFnm +82RvRi6Yx6l5Tsq8g0WicthuQIxCuBM6wcM8/zqLqBgVYtI/Bhl8683wKq6j0vMN+/I nJmuQNw5DO0hsXcJcic/3AVDP8I/T+yNsoVfM/836c/FtHjbBkyMQJr9u2/rW3VKorr0 nTZw== X-Forwarded-Encrypted: i=1; AJvYcCWQhueszoG97ekiXkNNjILcfA7GL4uLr/V38fvjHsSe3mLcwXSVokgBkwQ+amULp0l5XTWspBPCUj33tgM82NpHclZ7 X-Gm-Message-State: AOJu0YwJKZtGum3/yARA7bPXB2IKoBQ9venxEONja/cfyuOrdapznsgj XHYTQLi0nZ3WffmZfkgoSC+O7wo0OIVkv1Tt82bOl+Aagc8Xna2Wh4lTug4kSRg= X-Google-Smtp-Source: AGHT+IGqiI0vglxKcqyNtx/0toY2g/EAxqDpRfsnT3HZrYPk9OUoo9cgt0W0M6U+BQ788mgVAuOhmA== X-Received: by 2002:a17:907:f1dc:b0:a7a:9d70:82b9 with SMTP id a640c23a62f3a-a8090c826fcmr135586466b.17.1723128176276; Thu, 08 Aug 2024 07:42:56 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:55 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:58 +0100 Subject: [PATCH v6 17/20] clk: imx: imx8mq: drop call to imx_register_uart_clocks() 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-v6-17-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index f70ed231b92d..db9aaec42800 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -604,8 +604,6 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:42:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757702 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 B6C3B190071 for ; Thu, 8 Aug 2024 14:42:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128181; cv=none; b=jkM5yHX7ryvTKXN+OJI0AWXJyKmgzjkp0Udh5J3d3Qi/MVvGAaZ+3JP/IVU99nP6Hbnrm7VE693ZYRPCVK4HcaPZkfwRkyruRwFdsfyiOqxIEZ0zWaPhLCN+HKl365W3IkiQB5/twNP040DCBvqPoZE/ZMLNYUx6yY5dCrmvkSc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128181; c=relaxed/simple; bh=3MuovDtIRZorURIU9tYKQJVq47VGHfGnfR9ISQ9xJW8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KP7isyhEAd+IT7i1ND4SdLtpkxpPKeQeL6R4BD4hK4Gte5ScBGF50vmL+KZegc2KrGpWXh4/ZFEhToUQaHYEZhaA3wrDadG2lDAMVqDYWxKM3RNGxS51zscCo6A48loAGUyzSAKfLuc+4Sagamei3bcuebn8ZGZyYDVqbSG0dPA= 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=IwIypyNG; arc=none smtp.client-ip=209.85.218.51 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="IwIypyNG" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a7ac469e4c4so168209366b.0 for ; Thu, 08 Aug 2024 07:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128177; x=1723732977; darn=lists.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=IwIypyNG6YVWh3DyKP9Lqwp39791fbt0MLU7ICyxvx7OYOuLMNb+oQaLWEg8ad0UyI h9iPdWsp+BNWL1H5IxevULv97HcgGNgLBmbKdPExY693Tx9YzlSAF7RxDMXCbrvu8gwr T8l2yt5EskyMYTLAaW7fbmVPFzrowe8jD/h39eYOMOfhNoBk88fpKYY244qmlymsChqj kqQyLpU4p7ovLEYmSJ1vQ//c/Fi2rmIeZauffVUzlzKGmgPYgvWSt2LaBTYMoQpvLQHk GFdXGD2NJCMNtIQDFX5tBbCJrz5wovTIXgXCQGSPqUlfsTLnGYem/CR5+QOQwfPushK0 uh/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128177; x=1723732977; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EZspTtdY5QAEUSn7UgNMVbYIWDm0rZtsqchGrqjMzsE=; b=I7n5aCdOhCG7c/wYZqASR7RnGRGFuMgqBJXyYp7EY4ztxw3Qv8YbeEYhBk9xNjHt4y sMYoAPjkaMETMXEdr14/msnJXqPjeWWratky6hjHV9HV2vhfXzP9PsuUOnES9BndmwAW bTsJEw3iSFRwAvTbSIRX+PFtCoE1gltU9M6dvmPC0iCc2W5h4vAplmXyLdx3VgjSil9e Ry3mlZUQyv4t5Uo2mIEUns7AL5q1ptPB+2LzzAZ3N/fWss7WzEt4qoG8wuxKT3f47pK2 kfzkBpyqAQMugWfgCqes8189iA9kuvTcv9E4W+2TIfMZyhDqRVO5oLQgOV0zoTHyvRNI 6O5Q== X-Forwarded-Encrypted: i=1; AJvYcCWVqUmPcPrSRDHp0RLRi7yWF/mQNzUVRDla6qpJIiETqCoMm3Q776w/59Xo2W68KK3hB7VCbdQawcu2kAm07opgYwFW X-Gm-Message-State: AOJu0YxXlfxE7ySutZs8haG62E/oG0Sgp89Xww4b59kNfDZR7hbDx251 n4c7syL8aUn9WN3mNkBuhZaTe4q6TlEI/oDzAUOZqXC1Z5Y8/9FXDMkAZfWageI= X-Google-Smtp-Source: AGHT+IE7R8B3T4fgiuoLqDk3xF7+I+3kP37bpToSGsITYor/oRfOoUboQm8qOJh9YQr2roRMF9fkPA== X-Received: by 2002:a17:907:8692:b0:a7c:d284:4f1d with SMTP id a640c23a62f3a-a8091fd825emr175510066b.28.1723128176714; Thu, 08 Aug 2024 07:42:56 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:56 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:42:59 +0100 Subject: [PATCH v6 18/20] clk: imx: imx8ulp: drop call to imx_register_uart_clocks() 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-v6-18-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8ulp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8ulp.c b/drivers/clk/imx/clk-imx8ulp.c index 535b6364ca7e..5531e51a1e80 100644 --- a/drivers/clk/imx/clk-imx8ulp.c +++ b/drivers/clk/imx/clk-imx8ulp.c @@ -385,8 +385,6 @@ static int imx8ulp_clk_pcc3_init(struct platform_device *pdev) if (ret) return ret; - imx_register_uart_clocks(); - /* register the pcc3 reset controller */ return imx8ulp_pcc_reset_init(pdev, base, pcc3_resets, ARRAY_SIZE(pcc3_resets)); } From patchwork Thu Aug 8 14:43:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757704 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.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 EFDBE19047C for ; Thu, 8 Aug 2024 14:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128182; cv=none; b=XYoApJXV/ICfuM6HHBUGJyKHvTsbX/ehnDHRbGnUli66wchI4bzAV/LHnN36qf/zG5l/fXUN5+ubjbONmnWhvn0e1by+jwx0Vg+fOx4wY95hsGQeUhGqgXDp5IvmdgWoxibJclg89B2+DAN1hT72wB4HND0/7hwyDr5y+syv1JE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128182; c=relaxed/simple; bh=n+1hhj763mEFqV1dem2n36RFOjE3WvEU7qjocs6Feh4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AjK1Kns6TZwoeoqY7xbeED85lhCNQcHDN4j8UmWk/PD4I4Br2Iu4m9Ntkp0RmVYbWel8q+q7+ZhxUZ6vQTv7a3Pp14PGHnEX8anMutXbq58PeUb8mEIUeLsoKjUE0jgK6CZn6zfOsUypA6DJbASynlXSvhB+0sgwkUMuaNQV1O8= 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=pZDQkvBH; arc=none smtp.client-ip=209.85.218.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="pZDQkvBH" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a7aa086b077so106623166b.0 for ; Thu, 08 Aug 2024 07:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128177; x=1723732977; 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=pZDQkvBH0bUB6GYjqr71gnMrfLxgQGl/Ol+gRUMjJcg3gqnXpVA2bj5EfaXu6QUEc3 Vir7UpP7xUIn8uiRDfclP2UqZ5geqGTSMQm9wWqfkIals+NfsnGPbs4ovWHE651QKQkJ upteElcjTLXoA1/MuR5uvpbQfZ5AXSgedBekcUZ9owmP4uZj5eqQBcrlnTCKayOqm75O MShIWqCI4cCeprm77CYCOVWR8oXRQrXKN/9hEncZaAHHmQIOttDAw8G7W+PYE4J04sh4 y3+yP2S+G0SZb/uJUzeJj0rxmwsN5Eoxt4baxHc0SevulZ1bw6ZokIvE+Qr/ntDcrBRp ICng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128177; x=1723732977; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Lpweh87gijIIJF4cQA1mk27Giq5WUQNyR9nG1a9dx7o=; b=capwgiZPdLxJwhGMupbyTAA4ceUOrr2wR8G+bxhdoe0GY3idxDPvid9UMzo6zpF+/U XqlEdpZDKE3IsNcGMAnVdbC0Kmb8s+46A8OUWSKHOhFXWlhF0N39PL5QeOZkzjDhyHLQ NQXxu1msGzad9uSiAUVzPsHzsY4QVOIa/r8Xjh5NmcSs0D9LSRQjQsZ4SYPAAoIQSHrC jliSZQReOMNgJjBxi2BchpyhG2dRQv0o5SSZcRhHBXN0eY7LMKh+mz1ZmR/kgwpoBioQ 5gwHiTq1ymmLPT3NI4m8L+hCnpXRd4cG3AgS2TnqtaLCu/behu2QWJrqCcl1B5m705ra DAZA== X-Forwarded-Encrypted: i=1; AJvYcCWXBElJqorxKhHfSyraryctTwgm9fDesxrPF3WzaBIRkrCIJwnry8KWjGj8voTpbQo8ANzpS0MSINzK7qXyPKjPff2b X-Gm-Message-State: AOJu0YwX3/E1koBTyor+YrkGmiR+XdBtf2HvkVEaYl+L1k4kJ1v2Sixl 7QUG9WwKYgMLf1r+F8wIwRh3UNy0K6ISMkbPcm3insyXnOqRDewg6GNb/Sv7bug= X-Google-Smtp-Source: AGHT+IEwPmF6AHiigxgHBV+EJFuVs6w3OGWE4wzZqmI7eDvxo4EYmmOjzDlsuV9hWRsxZBFpbrUimg== X-Received: by 2002:a17:907:d59a:b0:a7a:c812:36c8 with SMTP id a640c23a62f3a-a8090c6b841mr159287966b.18.1723128177139; Thu, 08 Aug 2024 07:42:57 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:56 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:43:00 +0100 Subject: [PATCH v6 19/20] clk: imx: imx93: drop call to imx_register_uart_clocks() 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-v6-19-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx93.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index c6a9bc8ecc1f..9b8006b15d0c 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -343,8 +343,6 @@ static int imx93_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:43:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757703 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 C79EE190479 for ; Thu, 8 Aug 2024 14:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128182; cv=none; b=WS/bh1cus8aGsuAIRkQva/zif34kWZuUzmbNptt9mSH8PyoLFqsT6RuEZ6jK3ZGelhsTL8MlFeIy3WwY0duMdnphOxGkVit2HRA5IJ/2IZytFqWAiNlddjANK1DQOP6zqbUFjl5t62FaMGyMRuAsXP8GB1SwsUHe9PRWI/9OXzg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723128182; 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=NB2jlvbXXbrROJq4QoKsymCQSRlv4wwiN0z1OGbBmFsR5eEo/atms6lTE4bnuFSdCwugbfMxmfUr7WmjkC4ANLSq4ADPEDsMNs0A9yYrTkHTC8qBLoeR/RyjMfVPE7sAKzqQebjlVVmeqqGo8oHmjZn3bW0LLG32CDQcd1M/4Ms= 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=kFEuKQoD; arc=none smtp.client-ip=209.85.218.49 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="kFEuKQoD" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a7a9a369055so106387066b.3 for ; Thu, 08 Aug 2024 07:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723128178; x=1723732978; 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=kFEuKQoD+lmlaeqol83mYG1qALHfRNCP4j93nvwnq3lx8VDUbIm2KNvzUFjATfVgtJ 515uZXCm0IdBK8kJ7WKwfTr3yBT0/rvKhVe+LAgbHa29DoqT6eMB/w/wpn0g/Loz+21S WJvrj2ChnTsGP33w8XbYQjQxQY6ajslOqF+VHg3YNixtZnOVWY8Fx/tUly6FvKkQKsqY uCEPiJxKND+/RTYDzXr+qH/qa010ezuBM7ARDNJAB8d7gSTj9efVH55g1wL0rS13fPOh vPsiD3X7u4C821WL6zttZMoTk8UOQlJaaauYW90s0ZCQChPVfh5Sb4EfdT3yshsctxkb Iuig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723128178; x=1723732978; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g4eCyKnwzwhvgvotyhGHB+vsH3GCQ4YaY3HQS5YaZiA=; b=FaR0lc5RfmhX6lA2K7O+CnksyHjhEq6XqbuEYFnRu4c5sII304obVgWjCE4GfGPnEQ VlguWAZk+TQYVgYSIqOOw6BV2l4CigToVsm0eWYuZXFNUnR2wG6QvPS1pGWTNTEtkGIN Hb00nyEHsUvHYhnaTZogNj7zB54Hz0ev7LIMVJipdY1wh8zxylzG4g+zOHYFp9chd8Q5 R3vJEdrJ9oxjJ8QumRiywqCGrXcl/7xGu7B75VHOQoFS2tmwB1mvjsYuadF+jqiAOXa9 /itfyiYok396w1YkDpUwLMtSL6we8MpsPPv3wWjR+KKR4vHH23NEmQNwRguy6oHU8a7Q jLQA== X-Forwarded-Encrypted: i=1; AJvYcCUnFgsvznoSRjVG+OlpIkTQwciE59qX4Y12yvp8xWW0OUjjSY7ipzFQBsLXHe6sRKdg+E8P5N5v/yZFZZkwFylYYIRE X-Gm-Message-State: AOJu0YxdOBM4MBJIfo6KmHmBcgDUFuA3PfUiQiUV4lj7je1+dwH42Rj9 a+4xSHHXwb9NCyDvZRV8VR3o6Pd1Tp7ItHN7wvr8keixykFxjJzTiUWWL202UJE= X-Google-Smtp-Source: AGHT+IHqbohN5vuse2tZu05wgsB0D/3481cW3wuuO9L9OkxukplhEORcbJpoFFUAYLw6KR5UnB87lg== X-Received: by 2002:a17:907:da6:b0:a7a:c106:3640 with SMTP id a640c23a62f3a-a8090eff092mr152706366b.66.1723128177570; Thu, 08 Aug 2024 07:42:57 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9e80e04sm759298966b.175.2024.08.08.07.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:42:57 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:43:01 +0100 Subject: [PATCH v6 20/20] clk: imx: drop imx_register_uart_clocks() 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-v6-20-e91c537acedc@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v6-0-e91c537acedc@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 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);