From patchwork Thu Aug 8 14:11:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B390BC3DA4A for ; Thu, 8 Aug 2024 14:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UaLjrFsw9Zi0L/EdvO9DIKyYpEUrx6lEBXaptLR+VmU=; b=GF5vFTgzSgbWkR1vKNKA31t1wM kn/2SESaQn5XOagFGcNb+GX0tO4BPyAjOLUV65388aMBbEajeaVIUAtw4D2HyVGYozxBpbSE8n0Bl 0LntsOaM6bbUAZAV/Q2QPT0IuW3+iabWYhfKe3WILYXgPCewuarHla7diSgfjMnnp0E1D0bMtRGj1 GxZ5oVec2XozjJJdqMJoRVozmPFEBY/r+gVOyA50hVeg8z/4TR4bse8ABLIiaxAsNDv1B5U7D7eoG HyIkByf9Vfnc3pfFFV74iXLn6UhSJxPR8O3VTR9ZePnZn6/D1uwdvpwwZkrjftK7IM266oub8jPd4 sRnBQWHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rx-00000008T5u-0SIa; Thu, 08 Aug 2024 14:11:57 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rL-00000008StV-2bmX for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:21 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5b9d48d1456so1618679a12.1 for ; Thu, 08 Aug 2024 07:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126277; x=1723731077; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UaLjrFsw9Zi0L/EdvO9DIKyYpEUrx6lEBXaptLR+VmU=; b=JHmusCVBCeXrmfX8kH/YXbhiC0jl5xD/ovfo3RQoZm+TmIdRGrACoY2gcfhwMTbSTa Wi9J1BOzQAAMPovvNLCWnEzYNtl4da7U6M0p9QBKcCOrKpqaGMTjXH2+T0BDNHALj3uP XfPjR7a8oRPZztRsVVi1rvwbz9iTFAIBYTibu5cAn38HpN5iZdjgm6GC2fgJANHFUmmW dMgfwt4sC7HHTk7Wijm3q4q8msO9ZVpHsmf4TekDOGy3XgfEnxVac9EVcCLpwlzWlWES got1es9n8PMd57+TecedQEMWW9KFN/XX0rIYhPASUA70bRwh5gCdv6YQf/aJGSnlJNi2 qRRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126277; x=1723731077; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UaLjrFsw9Zi0L/EdvO9DIKyYpEUrx6lEBXaptLR+VmU=; b=r7Ha7dGHjCGga9rDtrm7XcohDIkmMV4LTa4moP9L4ezmEveeuhCnJMvwfSKBGZjvo7 k/UMW+hvk3JG9BTr1ractBoh/Zc4dy26OXkwD42Ne0GsD0Xv2zMSQcm0/X4rFsO32TU6 BnYKP5vS8uL5nJq79IiA9F3T7SAZ8R4hMUvlIj2In+uWlfRDUk9422CMoce1mPZ83Qz9 42aN7yDfPUFYXjTKk4c+8rft8WEYtc9Cmp6fm4LbXxJWO9jxpvNjoehaHgoktJPeWQzI zhkOcwnzh5H+8MBklp4LJ5BomaKsc+yEZqcYq81A8HzB0SkKR4asWZJVvJ03ZxXG+Zv4 dEgw== X-Forwarded-Encrypted: i=1; AJvYcCW87e3y6GJxNucOMI+zCIp0Qcg6Raq5g64w+ZLPz45Med5NHS+RAwXBnGMX7W9u/5h+Lupjg08ads7Ij58jFFck@lists.infradead.org X-Gm-Message-State: AOJu0Yxu9PAS41nseLE2mF0wnluE1SZPxL5UDJ/QPXylDa7KE1Pb7i2j yudvEKYN2vPRPHj6wENEwVUfBPIFjUQzAOnmaHl9MQwFgxVLXdR/UJ01RM+qFeY= X-Google-Smtp-Source: AGHT+IF2Z+gOOpOJVUcuLSGq7/jhh5CJfmmh1hSytACnK5GYE20eb1XtkmCCnKm8aJbOYVVy6x+hag== X-Received: by 2002:a05:6402:3585:b0:5a2:bfd1:b892 with SMTP id 4fb4d7f45d1cf-5bbb3c41273mr1981407a12.11.1723126277143; Thu, 08 Aug 2024 07:11:17 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:16 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:15 +0100 Subject: [PATCH v5 01/20] clk: bump stdout clock usage for earlycon MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-1-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071119_690472_F237A10A X-CRM114-Status: GOOD ( 27.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On some platforms, earlycon depends on the bootloader setup stdout clocks being retained. In some cases stdout UART clocks (or their parents) can get disabled during loading of other drivers (e.g. i2c) causing earlycon to stop to work sometime into the boot, halting the whole system. Since there are at least two platforms where that is the case, i.MX and the Exynos-derivative gs101, this patch adds some logic to the clk core to detect these clocks if earlycon is enabled, to bump their usage count as part of of_clk_add_hw_provider() and of_clk_add_provider(), and to release them again at the end of init. This way code duplication in affected platforms can be avoided. The general idea is based on similar code in the i.MX clock driver, but this here is a bit more generic as in general (e.g. on gs101) clocks can come from various different clock units (driver instances) and therefore it can be necessary to run this code multiple times until all required stdout clocks have probed. Signed-off-by: André Draszik --- drivers/clk/clk.c | 129 ++++++++++++++++++++++++++++++++++++++++ drivers/clk/samsung/clk-gs101.c | 1 + 2 files changed, 130 insertions(+) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 7264cf6165ce..03c5d80e833c 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -4923,6 +4923,131 @@ static void clk_core_reparent_orphans(void) clk_prepare_unlock(); } +/** + * struct of_clk_stdout_clks - holds data that is required for handling extra + * references to stdout clocks during early boot. + * + * On some platforms, earlycon depends on the bootloader setup stdout clocks + * being retained. In some cases stdout UART clocks (or their parents) can get + * disabled during loading of other drivers (e.g. i2c) causing earlycon to stop + * to work sometime into the boot, halting the system. + * + * Having logic to detect these clocks if earlycon is enabled helps with those + * cases by bumping their usage count during init. The extra usage count is + * later dropped at the end of init. + * + * @bump_refs: whether or not to add the extra stdout clock references + * @lock: mutex protecting access + * @have_all: whether or not we have acquired all clocks, to handle cases of + * clocks coming from different drivers / instances + * @clks: clocks associated with stdout + * @n_clks: number of clocks associated with stdout + */ +static struct of_clk_stdout_clks { + bool bump_refs; + + struct mutex lock; + bool have_all; + struct clk **clks; + size_t n_clks; +} of_clk_stdout_clks = { + .lock = __MUTEX_INITIALIZER(of_clk_stdout_clks.lock), +}; + +static int __init of_clk_bump_stdout_clocks_param(char *str) +{ + of_clk_stdout_clks.bump_refs = true; + return 0; +} +__setup("earlycon", of_clk_bump_stdout_clocks_param); +__setup_param("earlyprintk", of_clk_keep_stdout_clocks_earlyprintk, + of_clk_bump_stdout_clocks_param, 0); + +static void of_clk_bump_stdout_clocks(void) +{ + size_t n_clks; + + /* + * We only need to run this code if required to do so and only ever + * before late initcalls have run. Otherwise it'd be impossible to know + * when to drop the extra clock references again. + * + * This generally means that this only works if on affected platforms + * the clock drivers have been built-in (as opposed to being modules). + */ + if (!of_clk_stdout_clks.bump_refs) + return; + + n_clks = of_clk_get_parent_count(of_stdout); + if (!n_clks || !of_stdout) + return; + + mutex_lock(&of_clk_stdout_clks.lock); + + /* + * We only need to keep trying if we have not succeeded previously, + * i.e. if not all required clocks were ready during previous attempts. + */ + if (of_clk_stdout_clks.have_all) + goto out_unlock; + + if (!of_clk_stdout_clks.clks) { + of_clk_stdout_clks.n_clks = n_clks; + + of_clk_stdout_clks.clks = kcalloc(of_clk_stdout_clks.n_clks, + sizeof(*of_clk_stdout_clks.clks), + GFP_KERNEL); + if (!of_clk_stdout_clks.clks) + goto out_unlock; + } + + /* assume that this time we'll be able to grab all required clocks */ + of_clk_stdout_clks.have_all = true; + for (size_t i = 0; i < n_clks; ++i) { + struct clk *clk; + + /* we might have grabbed this clock in a previous attempt */ + if (of_clk_stdout_clks.clks[i]) + continue; + + clk = of_clk_get(of_stdout, i); + if (IS_ERR(clk)) { + /* retry next time if clock has not probed yet */ + of_clk_stdout_clks.have_all = false; + continue; + } + + if (clk_prepare_enable(clk)) { + clk_put(clk); + continue; + } + of_clk_stdout_clks.clks[i] = clk; + } + +out_unlock: + mutex_unlock(&of_clk_stdout_clks.lock); +} + +static int __init of_clk_drop_stdout_clocks(void) +{ + for (size_t i = 0; i < of_clk_stdout_clks.n_clks; ++i) { + clk_disable_unprepare(of_clk_stdout_clks.clks[i]); + clk_put(of_clk_stdout_clks.clks[i]); + } + + kfree(of_clk_stdout_clks.clks); + + /* + * Do not try to acquire stdout clocks after late initcalls, e.g. + * during further module loading, as we then wouldn't have a way to + * drop the references (and associated allocations) ever again. + */ + of_clk_stdout_clks.bump_refs = false; + + return 0; +} +late_initcall_sync(of_clk_drop_stdout_clocks); + /** * struct of_clk_provider - Clock provider registration structure * @link: Entry in global list of clock providers @@ -5031,6 +5156,8 @@ int of_clk_add_provider(struct device_node *np, fwnode_dev_initialized(&np->fwnode, true); + of_clk_bump_stdout_clocks(); + return ret; } EXPORT_SYMBOL_GPL(of_clk_add_provider); @@ -5073,6 +5200,8 @@ int of_clk_add_hw_provider(struct device_node *np, fwnode_dev_initialized(&np->fwnode, true); + of_clk_bump_stdout_clocks(); + return ret; } EXPORT_SYMBOL_GPL(of_clk_add_hw_provider); diff --git a/drivers/clk/samsung/clk-gs101.c b/drivers/clk/samsung/clk-gs101.c index 85098c61c15e..1759eb23263b 100644 --- a/drivers/clk/samsung/clk-gs101.c +++ b/drivers/clk/samsung/clk-gs101.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include From patchwork Thu Aug 8 14:11:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757559 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1BDB4C52D6F for ; Thu, 8 Aug 2024 14:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=i61g3HqvXtrI0H4Wdt6BZeDZIZP41pUUULE7Fmxi5BU=; b=YKeHJMki+efe5ffDI8t/Re3+29 3H4NrBMcLOObZPqyws71CsYYRsCR7s3gp+z0ixDCitCaRGN4gQ2nQyiq5rs2LcUjmCZptLgwyDDOl vEhli7cko9sVt25HlU9ynDxp8M6TQv/NVPFkeyV/5Fn2sad+LuW75a0D6XiJlRx2c/Dt9ojyHvwqV 8NAndcBL4/sUBFhB+U6FhW/E6ZR57Tg0qH3pJxnXwpxYWtGvqv4AMQEmasY5OcrIWCdGunb9Y43/O 2yA3z4rnQB74nCynX7LO30MPhT85IG5YtO21kcpHJVSGCD4Zo7Br8Pw0ni7ddTd0FG29stQ/4OqZz AjPZPq2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3u7-00000008Tp7-2Q1l; Thu, 08 Aug 2024 14:14:11 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rM-00000008StY-14QC for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:23 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5bb477e3a6dso992620a12.0 for ; Thu, 08 Aug 2024 07:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126278; x=1723731078; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=i61g3HqvXtrI0H4Wdt6BZeDZIZP41pUUULE7Fmxi5BU=; b=AScQpozxldEOTiAPoR6uwfNLoP0K6rp8pwG5BZIfyzBddnHNbpdYAQnJhxTI1hF0ca 3bB+4v/ON89nS3yDAL86+/tJj1fu4PGnTizIzCCDEinik1t2ObSOPDF7fTH0XprCOgaO OL1Y4s8SR9xcQmSKOwkgInRNhS0Cblnd211LgB+OH4gdwIs4kKIzg9XwtaDns68Z/wht UOhM5E2XfG51MwloEx/zhtx3/Yhjn2I1MJUfXAzTckH29WEe//p+5HcC/40+3OLlUxj9 AJB5tlbxlCU+wLnU50zCNe93sEV1CC+9z4NPMMYBC8rajKwMHVXeJHCEaOf4lLgFHFNK PyhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126278; x=1723731078; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i61g3HqvXtrI0H4Wdt6BZeDZIZP41pUUULE7Fmxi5BU=; b=VbTghjfJo8P2Ri9+rHnbFLPC/lywPrNwN517h9xGmX44t3cf8ui4eVaz+KyVuln+8+ l7ZybZcTgqvcYjDpbWBQUxAS/6P+X7NjQDieGs+tTR48ibT29j+URMLVxOz+/wbmmLGd twU9qUIYEcpp/3l/dozmP8t0I/q2H4vDnME9V2oV36KsyGbaDeCjPqL7OoaRqm3enMnA Mib8HRYaowjDFyIaXPTy3iXSvmtlVtNZ2hL8fCGLLBKzhxFuN4NTZ5//1N7GWrAz+ffq EcnzeGM6Rx7l5MuDjdT2PR0cssQ138Z42byVFUQK6D7y2oxuvI0GGZO8hyGaAPuU29o6 yNlw== X-Forwarded-Encrypted: i=1; AJvYcCX1hMwslQemXKosO3306BdmoJqqZ3flUEzMCDRhp5s5L5LKSvjFqSl5UkRaBzBle3aouet+KSVWsg99LMpgPo5blrfw2PTnFAuBJxXFClZGZe7FZn0= X-Gm-Message-State: AOJu0YyKpu1Mo/100tepL44FtajWjIsCk4a1g0Bkc2VnF1TClroYcbT8 KqvLc+lGSiQBBfZ/7qNBp6pvEV+UO2v+wqtFkr1CcnTaZ2pPR2ZxiL4JODebSnc= X-Google-Smtp-Source: AGHT+IEiMhOMDiTpZBQDmYwk/4O0X4rmiXEoHQeeCddSIXSmt9SZ1xmlKbwP23bfJ7piM3Yp2IjSiw== X-Received: by 2002:a05:6402:2354:b0:5b8:34a9:7fd9 with SMTP id 4fb4d7f45d1cf-5bbb23c7b6dmr1889019a12.27.1723126277640; Thu, 08 Aug 2024 07:11:17 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:17 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:16 +0100 Subject: [PATCH v5 02/20] clk: samsung: gs101: don't mark non-essential (UART) clocks critical MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-2-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071120_335096_5B54ADF3 X-CRM114-Status: GOOD ( 17.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The peric0_top1_ipclk_0 and peric0_top1_pclk_0 are the clocks going to peric0/uart_usi, with pclk being the bus clock. Without pclk running, any bus access will hang. Unfortunately, in commit d97b6c902a40 ("arm64: dts: exynos: gs101: update USI UART to use peric0 clocks") the gs101 DT ended up specifying an incorrect pclk in the respective node and instead the two clocks here were marked as critical. As a side-effect and by accident, having them 'critical' also worked-around a problem where earlycon stops to work sometime into the boot for two reasons: * peric0_top1_ipclk_0 requires its parent gout_cmu_peric0_ip to be running, but because earlycon doesn't deal with clocks that parent will be disabled when none of the other drivers that actually deal with clocks correctly require it to be running and the real serial driver (which does deal with clocks) hasn't taken over yet * hand-over between earlycon and serial driver appears to be fragile and clocks get enabled and disabled a few times, which also causes register access to hang while earlycon is still active (A wordier explanation can also be found in [1]) Since then, the DT has been updated to use the correct clock in commit 21e4e8807bfc ("arm64: dts: exynos: gs101: use correct clocks for usi_uart"). Furthermore, the clk core now helps OF platforms with their stdout (earlycon) clocks during early boot and thereby avoids the problem described above. The driver here can now be corrected and the work-arounds removed. Do so. Link: https://lore.kernel.org/all/d45de3b2bb6b48653842cf1f74e58889ed6783ae.camel@linaro.org/ [1] Fixes: 893f133a040b ("clk: samsung: gs101: add support for cmu_peric0") Signed-off-by: André Draszik Reviewed-by: Tudor Ambarus Reviewed-by: Sam Protsenko --- v5: update commit message v4: - the earlycon issue described in the commit message in previous versions of this patch is gone with "clk: samsung: gs101: allow earlycon to work unconditionally", so no need to mention anything v3: - add git commit SHA1s (Krzysztof) - add link to wordier description of earlycon issue v2: - commit message typo fixed - collect Reviewed-by: tags --- drivers/clk/samsung/clk-gs101.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/clk/samsung/clk-gs101.c b/drivers/clk/samsung/clk-gs101.c index 1759eb23263b..0c963e72e8bd 100644 --- a/drivers/clk/samsung/clk-gs101.c +++ b/drivers/clk/samsung/clk-gs101.c @@ -3947,20 +3947,18 @@ static const struct samsung_gate_clock peric0_gate_clks[] __initconst = { "gout_peric0_peric0_top0_pclk_9", "mout_peric0_bus_user", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP0_IPCLKPORT_PCLK_9, 21, 0, 0), - /* Disabling this clock makes the system hang. Mark the clock as critical. */ GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_0, "gout_peric0_peric0_top1_ipclk_0", "dout_peric0_usi0_uart", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_IPCLK_0, - 21, CLK_IS_CRITICAL, 0), + 21, 0, 0), GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_2, "gout_peric0_peric0_top1_ipclk_2", "dout_peric0_usi14_usi", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_IPCLK_2, 21, CLK_SET_RATE_PARENT, 0), - /* Disabling this clock makes the system hang. Mark the clock as critical. */ GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_PCLK_0, "gout_peric0_peric0_top1_pclk_0", "mout_peric0_bus_user", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_PCLK_0, - 21, CLK_IS_CRITICAL, 0), + 21, 0, 0), GATE(CLK_GOUT_PERIC0_PERIC0_TOP1_PCLK_2, "gout_peric0_peric0_top1_pclk_2", "mout_peric0_bus_user", CLK_CON_GAT_GOUT_BLK_PERIC0_UID_PERIC0_TOP1_IPCLKPORT_PCLK_2, From patchwork Thu Aug 8 14:11:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757558 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5602FC3DA4A for ; Thu, 8 Aug 2024 14:13:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TUt9AGf6xrjDYDkMTJVYo9C6PTxCMU+FJu9o1lmsxnc=; b=45/0MTlr3y+QUbTywKkQ30H883 JKWu1WX6t3lqmVSI7xZ5FPWL/GGHFU1aXpi4ta5ZOXrGgSMCt8Aoo2xPHCFIcyNAKISPEVPwN1SRc 33Vcpsh/t+PDnyvOiFAS0Il3YyySaA+5dlqsuQGRMzg7871m1ZmoZ2+uQUH5Tu1XupUnHtTYav7qe sEBRUNyW56EyMHN0ICjITO5EczsSNvlqdGMzIzRGbU5XFy011bX83n69mYBp5C4MF/Cnjcossm9bT Cg10zGqA7wK7otCt08ADNWJChhSmCA+v6IKd5h94gtqCAxJu0rFnknM0RSYhjZqc77ZX79qC5TptH 2qxF/f4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3tY-00000008TX2-1dw6; Thu, 08 Aug 2024 14:13:36 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rM-00000008Sta-1grJ for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:22 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2ef23d04541so10255401fa.2 for ; Thu, 08 Aug 2024 07:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126278; x=1723731078; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=TUt9AGf6xrjDYDkMTJVYo9C6PTxCMU+FJu9o1lmsxnc=; b=IZhrxjs2p+zfh4yV4RgkBsqYajM4nPoT1t5UGvlzsjvZSID/iC13ax+/2N9L9Si86P jGpyYAYQAlY9MD397dIsuogN9UA1nNsaroTr7C/Lu8HxKX+jzi+/ncfgN8JGB7C7kebK JlgVDramBGa/eLNaHI0QFs8+kQJq4VsJub0yXX9p6QttRWrT/Zr1IQPDdQOhhAoymk3T nmisIdjbs77UZNeAXFAkle9XUgO2KVNBYoYnH3etMlBaGbLmwKGaIT6VhI8FrDg4Epf2 u+uhEi55ZA5YR3XKZct/Lqvq1SdDtj1MxTHchyNMbONM0kbPH7j0pZZSwqHixq4Vh5OT 9j5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126278; x=1723731078; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TUt9AGf6xrjDYDkMTJVYo9C6PTxCMU+FJu9o1lmsxnc=; b=HiFGjgZaU6MziT/G7L8lptwNfqQnLA5Qb50DI6Pb89jmkuwcLOJzlA4QwPVvXfry+T pdG8EyuvQPnYrn+fYBGcH56IDhbpICbtZif2AYwBRAz3mGavn4GOh6UEx8fG4DF4rLvf afROfBbsuDGq76K1P0nYZ2vDHs0iXzFdE4uakACURKJDkYPiuSAP+4YIkZ9nrg7Hq59N /QPMeqI0SkEwiNVbDksxnapHlWukUI8tVnBGSRBRr0jK+ZKWZ+bant9gUgztL5iLn2Ik k8wLey/dRTyxRUiTa+SSZ2FzmLAZ8xo18G4ITuWMUwOyWaY6UqnSTMXcPkUdRQ/FX0TG 5F9A== X-Forwarded-Encrypted: i=1; AJvYcCUHYBXkWwMcSgxnuwHkC/B69gEPXqIQTR7LO664jWuYAYQuhIdhhhDCseNdksTSahMARfd15j2doTRa3vTzauSomr1b/dnJN0/N+8U9AA5Uk9ZXfRo= X-Gm-Message-State: AOJu0YyDOxRSxITb7C4uWF9ZKL3h6yV3p6MC8Vb1OWDfSefBnwzmV6ne eiAx/34Upyc23AXaEe1hvLdSk9lO/mWpmfbmb9KYNqy3Rt1ui5C+wD2Nj4aLSn0= X-Google-Smtp-Source: AGHT+IEY2DAUwJrjHTEH10xM6JFqkX4gRZp5wutBA8Sn+BdIuNTzPwSCN+6Nbt1OGfGJKNwnn6NPhA== X-Received: by 2002:a2e:b04c:0:b0:2f1:8624:a4c with SMTP id 38308e7fff4ca-2f19de79f8bmr13694521fa.47.1723126278097; Thu, 08 Aug 2024 07:11:18 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:17 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:17 +0100 Subject: [PATCH v5 03/20] clk: imx: imx25: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-3-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071120_464778_F1AC3A51 X-CRM114-Status: GOOD ( 10.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx25.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx25.c b/drivers/clk/imx/clk-imx25.c index c566be848c2d..0474778f988f 100644 --- a/drivers/clk/imx/clk-imx25.c +++ b/drivers/clk/imx/clk-imx25.c @@ -219,8 +219,6 @@ static void __init __mx25_clocks_init(void __iomem *ccm_base) */ clk_set_parent(clk[cko_sel], clk[ipg]); - imx_register_uart_clocks(); - imx_print_silicon_rev("i.MX25", mx25_revision()); } From patchwork Thu Aug 8 14:11:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757557 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1130DC3DA4A for ; Thu, 8 Aug 2024 14:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CR2/Ipvc98fbygDSdyGUwyP4a+VA03w16ijfH8oQ9sU=; b=Yvuzq979G2DTTb8F9Vk/CkKcYE sTAUcFx4dYtl9phLNPvQqccDhErfjyF24IGB4fmTrUtq9w11ZnbpRRS9BSxXrbsM7dEQwv43XJT7j 0O1kiA45MYtNQBTg1KsI9cXWwu7IJSRGzHpmh6gmfrISTWu/UNsQU5pZ/YUcb4sWVoIqzOiOwHUMp w0vOKiqCtVC1o458dEgoRTTlnR5OgjVjUk5k9SUYU8SN+MZ5ykBMpAySirumXvvBwYnyMYFu382Pq dp1X9WvoorTrQdP0kCTwbwgl7/uz4JTqJrJ5Qi7mrUsVeC/RW+BMBNZikizd2FTtSumxSBhqcgc6T GkqMQT7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3t0-00000008TNI-2nVC; Thu, 08 Aug 2024 14:13:02 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rN-00000008Sth-0tJq for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:22 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5a309d1a788so1021294a12.3 for ; Thu, 08 Aug 2024 07:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126279; x=1723731079; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CR2/Ipvc98fbygDSdyGUwyP4a+VA03w16ijfH8oQ9sU=; b=AMtIz+UXEToHQOoH1Y+Pr6/LfIWfDo/aDAadpfVqBlLSwNBwk9wRMIwQ9VIdlFEvg1 q2RA0BXcqqR/79mn96/LReQVdDZQVV5YbjVplosiYWLA50bsq4IxNoiRAWDxKyC71Bbl +ILOrHV3chiC77YqcGTiIX8pGPCTnRz6vjC/U/vxbJeHzaElPzo2F232jGXFLbEdJY2W NK6bwz9i5BGwq7fFNf+xcO7J708gK39Txna5lcoZsAAfkcOhVklbVKhLRlkpCTtP96h6 3n9ngJGBlU1OFJFkK1n5r7jCIJFJ13Ik3esdwrCSXffFnLyTVE1YMkLzhNCGBPyMRsFx /UCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126279; x=1723731079; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CR2/Ipvc98fbygDSdyGUwyP4a+VA03w16ijfH8oQ9sU=; b=xQlJtZr6VM7vkQZJ9GQCv+TrL5z15lE5ls96PBjqgpIQZHJcfYaKU84jC3RE9oF57f oXsApR9B06wdNHf0x/WGe28nU5/rxUlZxzhCcQ193khVAOu/X6fzJ3r4/WzwllP6km/E WF8kk029cvGSn6oS6+qkHgEq1avPdJGkTLRyERf41TIhqQwRjhvCG7q9yc7k6mSYhbjy ETztp3wnRdbxRTUzLzuuMpJQ1WLMJf4jzMT0FT8ZMkPllNGm8yLYRhaqc5iMZmcNDEAO 5q3bPbtX13XFFXoZpOX4rPC3OriJk1lvNCEdIWfU7ho89rF/8p0y5KyJRxcBD1lE4VyN 8p1Q== X-Forwarded-Encrypted: i=1; AJvYcCWx0eItVTCONmvbo9hfpW+wJ49VCjMe/6HYlKJQa97y+LK7aMjg+hF+ywHyWdLaH79VKXhH9YT29R2zz+4iNzOfnkENZXP+C1Tx+ovYlZLLKD5lft4= X-Gm-Message-State: AOJu0YycnZNMwrT1XUhAYlEbgQc04BAwZplDX/xcdkWSvwnzL1KIIJPF NAesK77JTTtqA4Ab1xk24ZMDJCHh2PTGUJHMO8VeLUl38q/kwFFbT6q1pQCTrsE= X-Google-Smtp-Source: AGHT+IGQvljBuJxnonICHpQDY/uQkKK/KV1ck0021rT8j6xJghx/FmB4/M4YPS1UIlFmnkBzuBf0oQ== X-Received: by 2002:a05:6402:208a:b0:5a1:6c50:a35 with SMTP id 4fb4d7f45d1cf-5bbb2411412mr1631283a12.37.1723126278581; Thu, 08 Aug 2024 07:11:18 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:18 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:18 +0100 Subject: [PATCH v5 04/20] clk: imx: imx27: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-4-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071121_272035_7016DACD X-CRM114-Status: GOOD ( 10.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx27.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx27.c b/drivers/clk/imx/clk-imx27.c index 99618ded0939..53018e80ca51 100644 --- a/drivers/clk/imx/clk-imx27.c +++ b/drivers/clk/imx/clk-imx27.c @@ -164,8 +164,6 @@ static void __init _mx27_clocks_init(unsigned long fref) clk_prepare_enable(clk[IMX27_CLK_EMI_AHB_GATE]); - imx_register_uart_clocks(); - imx_print_silicon_rev("i.MX27", mx27_revision()); } From patchwork Thu Aug 8 14:11:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757560 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA79DC52D73 for ; Thu, 8 Aug 2024 14:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=y9to+L9bTdGJqYL9Sfh+XmsCrqySZTcdIgL2IwvTZdM=; b=scCJONJpR5LaTXIr9pT7nLeN6m ANjjkKuyxrVz+i96yvO8NeDwibT7PFvGrYRFTbqI9MqpuSl/2ppr80VkEmn0Hd34qwNcmFQ6yjjH0 5SNwcTgu/coPrqC9O1PRJVx3I8r8+ZZbx+plig2R0M/qa6/STbGpxezv0PsIRgX63txF4iiFs5ym9 WGcC2JPWAShIqwLop/nncjB5wx+aL8o2Zi3kzQ5xyMGXAPQBfOx8+WPrZ8EtYEAxKKqxS72rhUhqW ZkCBVRF+1paATPvhMahHSRbIKe9doA8M1P0m3GnwzWeVkHgZ9wb2gh1L12GzL9A4rMEtaRvl3Pvj3 jqT00iSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3uf-00000008U2s-2xlh; Thu, 08 Aug 2024 14:14:45 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rN-00000008Su8-2rcT for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:23 +0000 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2f15e48f35bso9866761fa.0 for ; Thu, 08 Aug 2024 07:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126279; x=1723731079; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=y9to+L9bTdGJqYL9Sfh+XmsCrqySZTcdIgL2IwvTZdM=; b=JVyLst7k2aiaaFbaF44/6ykvjNC0ghZZ3AAvzPgizILlzcc2KhZbD+1y5DLtdLqaij LZdDCjUmkusmEEzNvrlUVbsbgftCeaL+xovoaVXgX5eGdCy1NGyUNyXqRnWRRGH9XSYc dLTNUFKHroG65IFPALN/dGe9+vg9kHNzSubN9MTekdngQdJmT3aOF0n/Ydubq4+/FKUY nwXfRA2Brt56EArbjqUjU0CZz71zGPFlCoo0qsGWDSDZKLhLJ2h5esAY/33ZEubAOLO0 ZT904SRDovSyLbgKF5XEe+b4eCMczeVVvsXGrF04r3hDiMVQAsjf0+TFxqnIjCeX3e+t u+NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126279; x=1723731079; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y9to+L9bTdGJqYL9Sfh+XmsCrqySZTcdIgL2IwvTZdM=; b=vMt36kVpx4MN7wRc1adlrcxtYmkMZWlH/fZzaIFcwprnZClac2CEV0hK3oMXBh4+OM 5GFgKPz0o+IHVF8h7GWpWFRfT9xm30+3wDVSYfrH9LIq35uQyuDG665cgFaamyvzy2OJ av0Pu2qDkbw/Hjv29p1KfxU6y2DLmXejZLW2bk8rDPjTNYj/CFFdHMqXgXxSiQbKC2PX d5n80wZbXziTT1bm977OGXk0+RNX6kq4ZWeY9GVyNtKuV+8NgwjHBBrrt+In6tBUYbqj K5eveCfKRJj9nNURVYjkmFQeuLpVWaqZpS8tnzcjSMYx9ivLf1azrRmRtcP2uabYuNnn GlGQ== X-Forwarded-Encrypted: i=1; AJvYcCU07ibhe9+WDrvbVCx7AIrtxjxWLlb4qd62/TYRAYN9k5BX/UF3UEoZw23j/+MSzJqgAnI3dig5G3MX0TxDC4R/y2sM+oIfSzg2xMUWTbkO7S8Ylf8= X-Gm-Message-State: AOJu0YxKm3pOe2JwfCb3Y8fFfV17Oo5uhM6t0TLU40juwrnQ78Olj1+s 1gQkzeMU/SN2gnqrEaaatQ0k3Hq+JLI+tlUYS4BKQ/l3SQNIdz2flLAzXyDuar8= X-Google-Smtp-Source: AGHT+IGWH0S/ei/y1WthSRTTdpDm06f1SlUXQDUywXr6T6gJBaiJZrXYiF4RkJwrM9dehhv/LYiJsw== X-Received: by 2002:a2e:7009:0:b0:2f1:597b:9aa4 with SMTP id 38308e7fff4ca-2f19de63496mr13785151fa.35.1723126279118; Thu, 08 Aug 2024 07:11:19 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:18 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:19 +0100 Subject: [PATCH v5 05/20] clk: imx: imx35: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-5-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071121_833663_FDD0A330 X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx35.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx35.c b/drivers/clk/imx/clk-imx35.c index 3b6fdb4e0be7..00355a187340 100644 --- a/drivers/clk/imx/clk-imx35.c +++ b/drivers/clk/imx/clk-imx35.c @@ -234,8 +234,6 @@ static void __init _mx35_clocks_init(void) */ clk_prepare_enable(clk[scc_gate]); - imx_register_uart_clocks(); - imx_print_silicon_rev("i.MX35", mx35_revision()); } From patchwork Thu Aug 8 14:11:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2AD86C52D73 for ; Thu, 8 Aug 2024 14:15:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=b0KZBbN+nQ1FI8ntFiIPj9qlGXoBaHjCw819hVXcAjw=; b=TauQfSfaH5k5KFRn8f6+6I8O4O xgP862yKEpfEUoSbHOI1HOXkLMAIuhaymc2ASpZtKrY2VEQo+H/iBi9EaKe5Me/RU5y9cRMjnO+dt CzJUc2tlnaE3gNz2IwXqzDzjtnMTBjOzi4403giu/Iuo91/obugkBL/F5kGh6CK7GaNI57a9Dmjwn HUUGbLLUvidaQYVcLesXf1g+qM924TySX8YnU09xuQlsqN4ohRQnmiQiH17QpGxqnCYLtpmgjnjEr qhYzJFEOAjKbxvLWDYWEa/G6fNBVlZtKg8ra9WBE6LwD6miYG1IkdIp6dLe396L9R3hM+u8kdTjD9 chx4G7zw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3vB-00000008U8X-13z5; Thu, 08 Aug 2024 14:15:17 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rN-00000008SuH-3LsO for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:24 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5a1337cfbb5so1283492a12.3 for ; Thu, 08 Aug 2024 07:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126280; x=1723731080; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=b0KZBbN+nQ1FI8ntFiIPj9qlGXoBaHjCw819hVXcAjw=; b=ZrK9r6tRYHujpEaMwPk89PVV09BwBqXM1ViyPDbdU1zAkRdyfzNbZPnu47VTUz/QFJ HIqvdyfrMJjqdHC/87y1uzsG6PY/rZoELba7pv+hZ9scFVBMGlqGOLS1TXA+i9iw0d+X jUadsaJ5jvLzh9ccR6XCQdFQshqrVfm608aKG1x+jk11Mw/S7YAVqO9FsRa5DhDMh/hx dW4/fhp894Uu31BACYDBYIPc/vpQWNOg7E75+tpjYId+Anf2K5eUQomCWZS/aMlX0YVs S8TWSWZsIYZ8T4MFXlODpI98/dkewZO03yY81Q+rLXJEixhxK/EE2dBHg4QQyzhxdg2F RDnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126280; x=1723731080; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b0KZBbN+nQ1FI8ntFiIPj9qlGXoBaHjCw819hVXcAjw=; b=VNLutmobXdHRfdCUHwBevBd1n/eXSGPl3zMzHD+nVYgPTC6ZhuSESbsmXwZcm6AII2 sW61gGcWdUnlAu9H1Jal9G1YRwZiFdy8Oq8i6mvVOnym/revZzZxE962FcG6MLimWC/t 2EOZd8HtWBovJIu66tumRzvl6Q2MK7rZOs1JCsvY60uIi61KJ6THp+TClZKwEUAc+Q+e mfteIbPsUFqOxlFuuRfWbzz/QBhpjG3kiu9/cV647oUafw6eQ2fXMYBHMNv2Smk7ognE Y8I3Yh0Eb1J4wp5pgE+cOBLwy1mzaB54JQ1h3azComzoBKhNeWRmBYkLkq7V4R8arVAL dwyQ== X-Forwarded-Encrypted: i=1; AJvYcCVryg2FTg6vy0XbXaIPVJFr6LivgyWvxPc8qOE5A/n+05yHgWUupMV22d8VviXCc/m6a+JeKOe67Vx2PZ0m6oONrOxJJi+g789ejmqa1BzWghiriQ4= X-Gm-Message-State: AOJu0YxqPidnAKmXDWWKbGtEGjoeBGNob9bNDVd9wIck5N+3WQ2qjYMj ZsYzpkXkyvpk1VHVjU+Q27fLj26avgZ+mmyK2Ya86EkJDYNfizAOJ7PwWypP66I= X-Google-Smtp-Source: AGHT+IGtyeiAxYcp18rF8HoQf16HSx6tLGtDmNJrCO+VQaF0ML3hsMyoqYty49GZM6aDNVCYElHp5w== X-Received: by 2002:a05:6402:2695:b0:57c:7471:a0dd with SMTP id 4fb4d7f45d1cf-5bbb21a3148mr1640366a12.12.1723126279666; Thu, 08 Aug 2024 07:11:19 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:19 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:20 +0100 Subject: [PATCH v5 06/20] clk: imx: imx5: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-6-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071121_978160_FB4BBF8D X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx5.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/clk/imx/clk-imx5.c b/drivers/clk/imx/clk-imx5.c index b82044911603..163bed084a57 100644 --- a/drivers/clk/imx/clk-imx5.c +++ b/drivers/clk/imx/clk-imx5.c @@ -357,8 +357,6 @@ static void __init mx50_clocks_init(struct device_node *np) r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000); clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx50_ccm, "fsl,imx50-ccm", mx50_clocks_init); @@ -463,8 +461,6 @@ static void __init mx51_clocks_init(struct device_node *np) val = readl(MXC_CCM_CLPCR); val |= 1 << 23; writel(val, MXC_CCM_CLPCR); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx51_ccm, "fsl,imx51-ccm", mx51_clocks_init); @@ -608,7 +604,5 @@ static void __init mx53_clocks_init(struct device_node *np) r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000); clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx53_ccm, "fsl,imx53-ccm", mx53_clocks_init); From patchwork Thu Aug 8 14:11:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757562 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CCD82C52D6F for ; Thu, 8 Aug 2024 14:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=f5MWL3cjgLEXuvIZC5lLXbB33GYudCtwZlnHK0GLdqg=; b=K0/mkIpil5Slphw3dbcjVUnVzv BdpH0gavkj/rPZMEeLSWsxqES/Y0pWoMPFf599uiupLmd6cLGTlSVWDwtDw8Zr1Edm6dBc7BPVwCi 98M5sd1NPcD0wbBwIG51a/YBHoTClJjZoPY3+6ityoVcNv6WMWuHHJR5aRoBXZP4++SGeYaVne1UU jTfNSWWbJxH51DfU6cJN8PjvQ7vCowIeJC2c0tujJlPlQJleZ4FaJB2GEbDcIkd0Fw1LAEAkKm/gx SJq1h0MBEoFUypJt2DZGeBAT8Nf02c8SkApNdYK9zLcl/nhXhi4kHaugObfU+qVEbmgwM6QgQId8P Z9ZRAnfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3vj-00000008ULB-23dS; Thu, 08 Aug 2024 14:15:51 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rO-00000008Sue-2Kbc for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:24 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-52f01ec08d6so1298982e87.2 for ; Thu, 08 Aug 2024 07:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126280; x=1723731080; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=f5MWL3cjgLEXuvIZC5lLXbB33GYudCtwZlnHK0GLdqg=; b=JzjfbyW7zU+CA4Jkg5KrPuIxz4TAJqpdKePZEH3UGUyr2DJwxS15kSc+MrQsomQsMd dHHFUSpDg/vshHiWc6LdVhqgiDzbzM9S76JwV7zVeXeQmIx9exki1hEuEI5hb4/j41ja wPU6y3+so1K8Vjp7sbKcTNQoifzNZa48uMG/mGGnCQora6OQaNp4aRRscc71KI4/UGBc 5y1WNzFCE6nTz5HnLNjWavJeGaFw65PWYNZe6IgiKKjc3kHht1K+KQ8atQrwahy44fdA paz3PawszP+f1lj5hpGLWBKt8FbB43ZNsGVf0djVBTxxW6d4Kvi2WpUH8mOn2BTP2Fg4 RUtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126280; x=1723731080; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f5MWL3cjgLEXuvIZC5lLXbB33GYudCtwZlnHK0GLdqg=; b=DhrvF9wJ5fHPk52nQYKVdEpMAIJYhcjqsAlwy9ug5latKmNbxB6Oo01C+oUZAONDIT 1h8248YBIxzJTdGJemfRefeUIF5zmeIz2CMkXuIZPehzz3Xg3B3zc0j8OrOznm97rtg5 K481JaOvcSqNI21P8fNVN7W2iugrnCos1vRmAe1lwj25bqaB30152xhX/9ZwtNvER03K /eu0XRu1hqMROvqGKDOqJk4foBrlkz5VUeoI9ME0okhuoEch4b+8IL1vtRnHzyXAUaLQ dOZ8BU7HYYvWah5Nbr4x6jnALuCqQqtvqWjc8a0g6GRV4eGkcZzpVXcHToJdEyrZJa5K kYPA== X-Forwarded-Encrypted: i=1; AJvYcCUV88kniapH8By/emdcVkJKuP/mEgbg7cDI/CNuxcsW7+CpuEYmKp6r/P8XqEnQxs4fTftI8ApB8IlqyBhfPjIV2pnDD2wAz9znHessQb31e83OYCE= X-Gm-Message-State: AOJu0Yw08Ffi3gx0jLyl1y7uEbyAsydpi281vNXNB5Qp8Q//dkgqE33M UXWDwUd1sUwzAT6rT+utWf7RT8guP341pzEoskWunPyMDptcL0oxruMntk1Sf8M= X-Google-Smtp-Source: AGHT+IH5Kf6gdlRKSpC6X2ZKv/aljG4na8Kr//uvGtQcNgodFdSqi5phhv7A8UtaPZwiOthbvaQKXA== X-Received: by 2002:a05:6512:3d18:b0:530:aa53:60f6 with SMTP id 2adb3069b0e04-530e581ffb9mr1693230e87.15.1723126280108; Thu, 08 Aug 2024 07:11:20 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:19 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:21 +0100 Subject: [PATCH v5 07/20] clk: imx: imx6q: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-7-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071122_622904_3BA4563A X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6q.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index bf4c1d9c9928..b436463e06d4 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -986,7 +986,5 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) } clk_set_parent(hws[IMX6QDL_CLK_ENET_REF_SEL]->clk, hws[IMX6QDL_CLK_ENET_REF]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6q, "fsl,imx6q-ccm", imx6q_clocks_init); From patchwork Thu Aug 8 14:11:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757564 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BDB13C52D6F for ; Thu, 8 Aug 2024 14:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=l83L9SwgjM7cQs40Ix45OsltdwbTgmJEPf1zQuQtrko=; b=bqMlBvxWed9uZd7UJYz5Yzakjc yRpghrhW6iuO6pvyrU02jo5SYElnqPQ33jo4NHdVRlNm9hF5R/mphy4y1lWKCVNSaI/lxtwtasxIT PqQNH/wbZPUwUTygkCLKFG3QH7gEhjnQytm2ksDd7JbRt9xSLr9ky8dCWZA+JpaEPrtWvbr7nVXCh Lf/5FhoVXogRyx/eTQKVYUE/v4QBODRZNqkSLzeW7EgWzJ0J6cuY67hNQH8mthuWZTXBxq6MACcSk 9Gyu3xpkm2zdOn9BT8r/cbPyHPnpdApC1j1oGA7WXU954sZfUh46zOvbstS+KlDTa6fyk7XMRtdVW PF3/7+mQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3wo-00000008UgE-20S1; Thu, 08 Aug 2024 14:16:58 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rO-00000008Sug-2yV0 for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:24 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5ba482282d3so1264591a12.2 for ; Thu, 08 Aug 2024 07:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126280; x=1723731080; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=l83L9SwgjM7cQs40Ix45OsltdwbTgmJEPf1zQuQtrko=; b=a3+dBr9k5Wrd8SDF60Ji6H96WsN+Tkq2o0/Qzj4R4NTO5+y6yOioc4ArM2J4L9DScN q+wq34k0bqGPB5poOP9gPxbnC+menCCppGISGJsYgYFKYlsHNZDKaYR+XXBUGIyfPb4X JzjY04HYzlop/dAON+P9dfDfjsXLPsPK8dq8tCU4dD9CGud5BL+0HediEVmNwtrzxzzt d82M2rLTrPRfBOEgW+Hcd0wWNOG3wa391vt1wF7w7N4iDm7EGVVddrbXVaCeSTqn9rz+ ifldrh4qgW27xpLcFISpdP8cjiNMivStZ5Hd8UMxTOaIaqt3Y6vhQ9AAL/Trouy6ynJo FI2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126280; x=1723731080; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l83L9SwgjM7cQs40Ix45OsltdwbTgmJEPf1zQuQtrko=; b=TlXCZiXDHL1P/gLVqwk1tkFGeVcqqGUPSpu259xSz1YVfzuPfc6Fd9424qVp/rzy4V 3JmrSnxBImTIfKBXUEUmzRRppYuHkrKkyAW7QhzkCgCbuKcHqdiNCe6BcWj3Q0dZrN7B ntSokHJCy7UmR711ZzsGsRsZItKD3buqRCgBY/sJmMciW0a0pbTMYsT/PSpyfiA+Rb6y h5Euvapm1NXflEIsKFDXcmq02EHO/7SEmFF8U6WIPHPRv4MDlxh9TQAoMpRTBMf8zty9 YpBy1CyTqhwmQwwC9GAr7iCfwqnRq7JCMKqRa7ypk7kw75kEStMcJHs2GG3QLez9eGHu zc3A== X-Forwarded-Encrypted: i=1; AJvYcCULO0WEcjmFCwwzkoufuBpw4O3CEDWsP0mfDbKCxH4nqm8MNk4FV2UcMI0857VrvOjtmH7sxOSOePJxj6PRnRThhh02x1btLLERiqjvu51xnf7+PFY= X-Gm-Message-State: AOJu0Yx1DN9JFtWybezeUFXxoAnfxFxTM8UhXdqlJzAAb22V+T7Q47H3 DoQzLAlB5f+kpbCYSzX2saEz4LH9h0S8gzZ6NONNegv+NvUgOq+w0+d12+oqEBE= X-Google-Smtp-Source: AGHT+IHHbEYfKvz99NCzEnYTqfn7cB+94G7FgbH5KFNqsiOTBHtM9BvVoArHK526vLwSDjCHbxrRMA== X-Received: by 2002:a05:6402:27d3:b0:5a7:48de:deb7 with SMTP id 4fb4d7f45d1cf-5bbb21a4daemr1489870a12.14.1723126280575; Thu, 08 Aug 2024 07:11:20 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:20 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:22 +0100 Subject: [PATCH v5 08/20] clk: imx: imx6sl: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-8-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071122_784507_B0028B2C X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6sl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c index 47b8667cfa3f..bc3e414eeadd 100644 --- a/drivers/clk/imx/clk-imx6sl.c +++ b/drivers/clk/imx/clk-imx6sl.c @@ -439,7 +439,5 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6SL_CLK_LCDIF_AXI_SEL]->clk, hws[IMX6SL_CLK_PLL2_PFD2]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6sl, "fsl,imx6sl-ccm", imx6sl_clocks_init); From patchwork Thu Aug 8 14:11:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757563 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7611CC3DA4A for ; Thu, 8 Aug 2024 14:16:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EG/ZG6dnK/7FkbT8sGSrbUNfGaArXZW8+ft27slBbKg=; b=KKhMQ1unu8g1XOxIFgkvZiOYEI qKb3u87eZfta+ugPxNlUsbhGafzz+m0HvLQrF6ZUketGfONWsV3Jn+aFRi6Wucisd/yWIIG/qChjX 1eLMyDfMX405+sw5C1/Cw2NiAAyZUl+4RxrxVBEC9zcYyha+KoQbWaSmYdOLJ/4fCAMNbSvzRX08G 10ZWL49NBCjTd2I3orFZQRatodXgdEC4BDMITgD/+NLqppsGxv3rsxk8XjbGrKWGNGbU174uLUrBg CDAb6T45STMFHLWOI+9Y3jE5iZoxjM6hDG6DI5iDQCkFu+CsXC7PZYK8RzDJpJ/YylEw+DiNej9Ln w/ItSbkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3wH-00000008UV2-2iqC; Thu, 08 Aug 2024 14:16:25 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rP-00000008SvN-01zS for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:24 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2f1798eaee6so9579071fa.0 for ; Thu, 08 Aug 2024 07:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126281; x=1723731081; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=EG/ZG6dnK/7FkbT8sGSrbUNfGaArXZW8+ft27slBbKg=; b=lAJtEmthizZ578NTFF7KCZznphOFi37hsm2aPmdz0K5h9rPAwccmy0fhmJsim3r/Wx FVq5LiojXYa82ddi6VfXF3ZaRkqWw3B2TJZpTctI2ijOnzqnpSsfDXFG415nC5QmR3Oj TJM1dbAqx69WK22RlmCip6lwqgXvEODOAlJS7io5DAS+l0zUNXmEEFnpch6oRIHSP2PO KqHPnhDVUZ/5dtbXe1NbE8KfM4WV9LQ1+r8elL79cYVUKV0XJnzNMoGG8nX3FidfGfUY ja78C6vY6SQC13huqSxiXPQbKVcmoHKRIl2jQw/ZPZHlOYIEST/90HrBhrFoyTZ6cFrS ph2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126281; x=1723731081; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EG/ZG6dnK/7FkbT8sGSrbUNfGaArXZW8+ft27slBbKg=; b=Cbsn8hzLYo3b+KLu0nzum+pJf9bbT8mIWeBJS029TWJ/KjFaamCoS67X962nKjxX4g yb/uAkc3aNgnI3IhN60AB+PRpumNzj/IjyA9nBOP1Ddf1Aq1p2OGMavx7ZryZYSXbqh7 VRkpqPQYT8elo4/VRK8NWEKX5iHuKpDkMZ8+lRtNc61fSH7+DtQbZL8KFcxOR1HTpX5Q aw4d4WubrzfD3XT0jUTtOzvrelm9B3z/Iadk9u8S20AE6BVbZXfX5719YPssVxEZNzZD LRmNFrnfMQ0s6fcCZUXT/88Uvos47vKEbJYu1M/7clnwSVDbFZEye//k9nZhF/qQUUmN /iZA== X-Forwarded-Encrypted: i=1; AJvYcCVvtaL4X9L2WW+6lrxJxFUfbf98cJBCV4Rn4zI2Hh77nMIEUT4wqdas70VoT1sw88VMrhnLHzhD5GaXO2Vz1NIp/2YfVwNDLVRnEmtMppleRXpwtqo= X-Gm-Message-State: AOJu0YwiGUEtZhl+Q/ecgCxXY24lipx4Tg+tkAeHzPuzkXyLdrvch8uq ECOvxmep9LaqzhgDEZZNe/i5U2DWzu15MmOdFauyPPKyNjpn2+spvbNsuOrl7P8= X-Google-Smtp-Source: AGHT+IE+EuzjKtlzVGUkIG93q6FhwJZo7ntOcGAcERKFIalXABnZj7xmQM8pOykTOJhv2cPudFbycw== X-Received: by 2002:a2e:f01:0:b0:2ef:2dac:9078 with SMTP id 38308e7fff4ca-2f19de2a28emr14087411fa.16.1723126281066; Thu, 08 Aug 2024 07:11:21 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:20 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:23 +0100 Subject: [PATCH v5 09/20] clk: imx: imx6sll: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-9-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071123_159625_58A412A5 X-CRM114-Status: GOOD ( 10.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6sll.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sll.c b/drivers/clk/imx/clk-imx6sll.c index 2fa70bf35e45..4310adc5d54f 100644 --- a/drivers/clk/imx/clk-imx6sll.c +++ b/drivers/clk/imx/clk-imx6sll.c @@ -340,8 +340,6 @@ static void __init imx6sll_clocks_init(struct device_node *ccm_node) of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data); - imx_register_uart_clocks(); - /* Lower the AHB clock rate before changing the clock source. */ clk_set_rate(hws[IMX6SLL_CLK_AHB]->clk, 99000000); From patchwork Thu Aug 8 14:11:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757566 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B80D9C52D6F for ; Thu, 8 Aug 2024 14:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xSaLptLfozVkUpjw1oRI9Gwlbl43zWvMUP09a2upKVw=; b=IikndK6R/vABH9TLLVm3lNc2en m8+pjFCAr7tz+cGrEz6LUHhtmoOrXr2Ch+RDrNVtkJ2CY0tfD9HwoULM6MVV/mvBYr8G9O18GZUgU 2HFm1G9+UHLAxoMOLTY6skLy9vL3E+bH0V2+qwk6vgd1Ig37Z97k4Qd7gBEv9Ek+HCuyqEujFmfbD KQP0Mphz8336KNgNNMtVZZEmrylreUHM3ece42QMqpALB4/itTQuaEjkv36qXnNfQq5uqXQLBGLQP xnf9hLAOgPsZE/Cn9A59LQo1dY2T+kseWSQZRFGD/NvY/RLmMmso0WV4HSkPcAFI+gnAhp3+mLMSI upGXThtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3xu-00000008V0l-0Gqd; Thu, 08 Aug 2024 14:18:06 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rP-00000008Svg-3cZv for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:25 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-58ef19aa69dso1028606a12.3 for ; Thu, 08 Aug 2024 07:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126282; x=1723731082; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xSaLptLfozVkUpjw1oRI9Gwlbl43zWvMUP09a2upKVw=; b=Q47r+4JMgcZIHY2AIufs0uRJtSfkELWS3nal/QXv+oz+cKIXaWXg7yYU7c2TrA8eHi uC4/x5Gu3CSNTQ0PbBX9xZ76mJsJzMbmNii/qXNN1wVUf/4bBGSDIb/eJ0dC9F9NDI6R 7/0egwgAYu2XLelPf8XBrSxQ2hxD5oy1PiLbZhcOjdTmidHA3514WrSpOm/5R3LMFh8E eTQpBPStIaopGvhzkQq2DV7qq31y2qLjynuJgbRpYhyHDbfscnupkMdrsnT4Y1c4oj53 QEhSAao80HSQqoHkCvLQdS1gWOQpJDOrB3mWrWnvkDhXLENqe3oY+9lMWz3r98ywMOXe ssaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126282; x=1723731082; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xSaLptLfozVkUpjw1oRI9Gwlbl43zWvMUP09a2upKVw=; b=qoJTCoiJWRu02Koy6BHqvMcMuzjvXfRK+ILBPJ+57jNpDtqRkpKt7L/t00AH2tAKw6 0iicn/YitVseBozvUuFEaaeTnZt6mDDtD8ZZ2z8RNTRVujXZ2S9iWKKGUxnVSUNm0DcQ lcx8XLUuIDahz4Z6sEjxABYiVjjqUO2kNV/xoQU5vYg7Kz2jnh5J7fQ5MS8hxrwHsTUG 4jQTOJQomOlZJDtsbP2xv7gpJazdVo8O8xNgJb8GA07JkBkK7J2MxjNQjl+LgUHXipeN SYONIvro8AhWZLfa7fkOVnVT2ZIHkPhgZi1zcTjuNoLYyT7jguRkv44E7Xqvuz2Js9vb pxoQ== X-Forwarded-Encrypted: i=1; AJvYcCWK2+TZSGiHwg4d892VUYq1LFCoUCrXg3OgpC9+JvzJPQWZ5wPIUUcPcPJx1R06qZBhDBba9brYjVtGzRwtz8dsp6XbIH7LGzIhwINcmtqwu1Y/EUE= X-Gm-Message-State: AOJu0Yym4IqIhNzpZhxKsbRPVNpvuWrgu3BfHYDPCKbpAZusw+27sIJW KN8vzrFZkiS95jjnAowHLiDJPukPwy9fDVfaWzqd53ZSpt0813eOMagZfESqs80= X-Google-Smtp-Source: AGHT+IEfS7LGmhzwOfvg0WuiGG6clp5qzEGX5Jeh5uDmvlBV96anV1MuY8BGYSssk+Dyt3tkyKIdwQ== X-Received: by 2002:a05:6402:3484:b0:5a7:464a:ac0 with SMTP id 4fb4d7f45d1cf-5bbb21bdde4mr1617742a12.11.1723126281574; Thu, 08 Aug 2024 07:11:21 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:21 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:24 +0100 Subject: [PATCH v5 10/20] clk: imx: imx6sx: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-10-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071123_939960_1767040B X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6sx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c index 69f8f6f9ca49..4e42e30245b3 100644 --- a/drivers/clk/imx/clk-imx6sx.c +++ b/drivers/clk/imx/clk-imx6sx.c @@ -555,7 +555,5 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6SX_CLK_QSPI1_SEL]->clk, hws[IMX6SX_CLK_PLL2_BUS]->clk); clk_set_parent(hws[IMX6SX_CLK_QSPI2_SEL]->clk, hws[IMX6SX_CLK_PLL2_BUS]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6sx, "fsl,imx6sx-ccm", imx6sx_clocks_init); From patchwork Thu Aug 8 14:11:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757565 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6A2F9C52D6F for ; Thu, 8 Aug 2024 14:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fELKcjyo4D+4io09ckq4Quxisz8/UoBpXMhoRi06ZaU=; b=RywjALFRxSqkvxgWKTVsRW9D7D cYQw9rpHFf+6sqQSqZa3hvnNFxjvozL0mIXBmj/qgjNOWY7TYS7fqnz19lHFd5qo909tOqebJP2rg /y6bPYfuFCYPs6YVJNyNNkRfbQ/R7yutMQ+556v8IuD0oe1OxsgEBr25Yy3TMh8KxkEfFPN0KNQ57 BdQGuivU6B3O1M74DXZqiRXxFlBRNNB5KQaEjRLTyjenhVyogf3kOyW35OWFbfwAu5q9S14BbhvkX 6Cgxq7XlnSRkWPx8isNB9eDt7DJiQHe8OrTxsz/4DJq8lbeQFp+XzaiUaBP8sgaK15/F5W7fcBpLb 1mL0FHhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3xN-00000008UrZ-1byi; Thu, 08 Aug 2024 14:17:33 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rP-00000008Svx-2QJY for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:25 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5bba25c1e15so1189388a12.2 for ; Thu, 08 Aug 2024 07:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126282; x=1723731082; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=fELKcjyo4D+4io09ckq4Quxisz8/UoBpXMhoRi06ZaU=; b=P7xIVoGwUNCf9xdOJv+ZKlTDZCfSAlsyiiSNmHtbZate10s0zp+YaVz/DxyZ4W2aPq EXw/i4t4g+BHcK/bH5KkuSLlXkIeuZwb2SOePAqZOZk1mLKrXie/nI43hiSG3t/3DAe2 nVTCIOAmkVgPUTzNnJsozR40vK2dIlyYvaGVQrjEuWXyCF0624ew/mhfrCr20bWBA27w P2KLVajfXcGhkUqA/MvqDnusYdOKJsiU9aRjOqxC1xHZcI4iKMBnLpo2nFhev9MA3Zyn zc9TqnJ9WmCNssp7AteiSSVI3CL92/fs1c2ws532uiifYunhaAJYkEyfOq8y/AzzTgXt Q0HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126282; x=1723731082; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fELKcjyo4D+4io09ckq4Quxisz8/UoBpXMhoRi06ZaU=; b=xI33v9xolk44+qUgWz9pUqxpArK4lQcA6HcrEl9GMpBga3G9I59T+S4qohlDjZswfR 64QQujMblfpcxaBgdpTZ69WwHPHTPLy/uTh64TzR18ybJxRfQLFtJjq8bWESbKMxQ1Uc Md/J+VxDCajCMWgowV9+yDVZbZ1J2Zj5xGZ4h66xV2U6HGaxSLCpijXpn/MMHIE2/Nyv NCTSzv2UAYqTT8ywdxGF78KEmqqt9tHeH0CVyFhx4GRsQz7xQxHXSUMAidT1wDL2jFWX sx/n/hUjErG/XISitBQxfDUP7J7crhIjvUxV1tykSV370NbiAp2PtEx9oVlZ6jXzbyxd AT8g== X-Forwarded-Encrypted: i=1; AJvYcCU/YgouHLx9r87sEhgMEa56JmJOq+7q8p8pRupGprtD5bLge5KqG9iXI0xq+Gje93BHG74ADiHqWv9Chexfq6nBxECNt2/Tziconjn8Rp7V3+ZBRMI= X-Gm-Message-State: AOJu0Yy3GlrfRMueOk7CgkWC10trts/ANaH4Nb+mwE3TLTDHKGxgxUSd QhAUIOW7iiGW6/yZnW4mqWZ9K4rM/4zOZNSjJSiDDg608yfkmp7qXGZMpToM+/0= X-Google-Smtp-Source: AGHT+IFXR1vW0WZ0FRgrHfrqZdVlmPqP0fVrSp2izewTrWhjcdUCbNwG/FeaTyMsaopKQeaan59LLw== X-Received: by 2002:a05:6402:270d:b0:5a3:4ae8:cbd3 with SMTP id 4fb4d7f45d1cf-5bbb21a38a5mr1707354a12.11.1723126282055; Thu, 08 Aug 2024 07:11:22 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:21 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:25 +0100 Subject: [PATCH v5 11/20] clk: imx: imx6ul: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-11-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071123_720594_05757B67 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx6ul.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c index 05c7a82b751f..b828cecd3690 100644 --- a/drivers/clk/imx/clk-imx6ul.c +++ b/drivers/clk/imx/clk-imx6ul.c @@ -544,8 +544,6 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6UL_CLK_ENET1_REF_SEL]->clk, hws[IMX6UL_CLK_ENET1_REF_125M]->clk); clk_set_parent(hws[IMX6UL_CLK_ENET2_REF_SEL]->clk, hws[IMX6UL_CLK_ENET2_REF_125M]->clk); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6ul, "fsl,imx6ul-ccm", imx6ul_clocks_init); From patchwork Thu Aug 8 14:11:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757567 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 766ABC3DA4A for ; Thu, 8 Aug 2024 14:18:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0sTSIJgqJzgG9ZOeXhaBq4KjYwR+dgEfjYLq292FpHw=; b=v2sdjsP7Jy0yffXd//v59p4zSy vaIVpBouYIMD8mi9k+OihNHZx5ZoM9HpNA+d7HHyEm7XL6bxdhRagzgKJJdRfFBDx+c1ITumL112p dtPgeqiYkK7SWuI7WfvSrZiDJWb4UuomOqaiIISh1K8ll1Zglk0dkDhwZwgIilb7Za0+5mrZlssLs StmZId+MtvCHbbdX5jHXGcReCYezwcYt2S3jG03HEAm0JBMF+wLCbARZVuLq5a1/deNSrIawDUsTn U/gY33itc6FI/GWBAB3QQPxquSTtrq/hwHgDk7tDttzB5PC0lxnRBNa9QxjI6T2pvUdhoYMsQ37vA MFbYnL0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3yQ-00000008V6E-11AC; Thu, 08 Aug 2024 14:18:38 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rQ-00000008SwV-3jKt for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:26 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2ef248ab2aeso14492241fa.0 for ; Thu, 08 Aug 2024 07:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126283; x=1723731083; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0sTSIJgqJzgG9ZOeXhaBq4KjYwR+dgEfjYLq292FpHw=; b=euUOJ37ROma0leZNgdSkHYv30S50EffZEHWEeanktGFZEtkWiwKzjPGoNcG+2c9At/ sHNI0y2CWqMr58S4Nu4oZLnULuWfuWJn/xz/vHRcxrnouvUEfsoA2aHCEYfXIqgGj4Hw c/rRNbqCLilxtPadGrGCdoVCYGBQPjgi4+9pWIIK7Q3IrmDF+kJjdWzaFIV1TWk1gtbw NMrMEAIVtITt0qMxBffHlAoaXOT9GUIt0QF4uOyJgrLWYX/gN+vorIazj/X6LRqlKdhs PYm+P7pcepdkULDVCo6HFtMWBmqzS7ccidTCWWlCT4NCmoH29ZJ1sfnIa/gmmk17ZXH8 eqrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126283; x=1723731083; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0sTSIJgqJzgG9ZOeXhaBq4KjYwR+dgEfjYLq292FpHw=; b=JZf/G2xFTKnRn7KsFaGPS8ToX7p8qzivCGTc1J+wbBKuqGlVJ4HkrZ5vUskTXxngPC yMaxdm203fj1yMYNHaoKKFkzl5W3MaPQaxUjqsihFieemsT7yr7PgvVobArRGU2gVn1+ dYX+M64VNyolKyZenR4N/6z4asQHZ1y2dgTVQTdg95xZ1WIDrAZd0iI1LqQSjNAh9iix KVzv1jPlSWDl5Grcjm9XioMsn1S43BOJguX9gPRGJMA3Y7VXkKSbZNpv7M+n9wAgWXNM LQhtOHf7lRGdwIiybRM3p23hI5OStGER80shR62vNxkpOdDg1fk9ioexS3BGPyqAWejJ wqEw== X-Forwarded-Encrypted: i=1; AJvYcCVUbowfQvS5HF9BsVz/qFpqkrQHmFUJO6V1XDBxhFvNiSVxGGkKZOlyIjXo+2MlpnyyaVE3xwtkOvtKW6C/8Evs/ax4RwQYmebFu6MFZyTPoEwWLzQ= X-Gm-Message-State: AOJu0YzyAkcILbNrWDz7Umf3Ph+bro0gztlQxUNNuF2Z5Yf5NZN+1mPP 8WSqNvxOwqXfvTwQuwNe7cjnp7wIG8tfk/+QaIKKkfs1sCfAEQlCXzfWzywER5E= X-Google-Smtp-Source: AGHT+IHzmyDjmbmh70t+LjuxJmyPnQb27LIwTkOn9wZAu/HD3ECQGEFR0hg5M02+6uogp0kQV3XniQ== X-Received: by 2002:a2e:9cd1:0:b0:2ef:2490:46f1 with SMTP id 38308e7fff4ca-2f19de394famr17881011fa.23.1723126282528; Thu, 08 Aug 2024 07:11:22 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:22 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:26 +0100 Subject: [PATCH v5 12/20] clk: imx: imx7d: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-12-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071124_952413_2A53B4D0 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx7d.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 99adc55e3f5d..789cc3afd062 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -882,7 +882,5 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) hws[IMX7D_USB1_MAIN_480M_CLK] = imx_clk_hw_fixed_factor("pll_usb1_main_clk", "osc", 20, 1); hws[IMX7D_USB_MAIN_480M_CLK] = imx_clk_hw_fixed_factor("pll_usb_main_clk", "osc", 20, 1); - imx_register_uart_clocks(); - } CLK_OF_DECLARE(imx7d, "fsl,imx7d-ccm", imx7d_clocks_init); From patchwork Thu Aug 8 14:11:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757569 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC080C52D6F for ; Thu, 8 Aug 2024 14:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=645sqhYxiGhlKPfMQkDqwsuRcG9BMBI/0rO4pG2w9xI=; b=PuPqJ7n/j2i/fXIRt60bO1HY3n EGZkhBYIRMECSPAIMzAjmK0U2g68/F2EgwQRvh4BlqU1oeyD36hRFbnFclKPTPfW6XJNOEkLTtg9K T3T1QAvHf+ifQ3x3XHAD+EGLoO9OAy2Y1juQufagQ5usNix6DPRVIAZHhOXBaVn4rsmzdN4ElXjXo TVa3GkLBKHWgHQ+Z9ZPBi5By5ST1q5GQPuYeGuVgL5zBFGDLeiTO3W1NAfb5efMyQ6mL+5WsVEQRl 7EyQbLybZESvMpmdmZBSTSaRqY5YtriGyxLhGD30Lwm1O+pVPffchiV5lFOk3sY2JXFuiKR8p1pbH tXs3su7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3zV-00000008VLO-3cWi; Thu, 08 Aug 2024 14:19:45 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rR-00000008Swi-0TAE for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:26 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5a1f9bc80e3so397658a12.2 for ; Thu, 08 Aug 2024 07:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126283; x=1723731083; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=645sqhYxiGhlKPfMQkDqwsuRcG9BMBI/0rO4pG2w9xI=; b=gvJ+BDHoKp0wDvI5Nmvl1IiumUxFCVZc5rhRx4Abcacy7yJDu8fZ08hrVJGJZXm/eu Ws/QZIjNULDQqBMPD6usTnytgYrkhHS8uVpzFdYakx857ejETiFe5bHlEEZ+pfmIaCDb e1w0pAl0Us4qft/fv9C38s8CmE0TDMUd+vo5iY+4idlzlFx+Iyo/kwZ153P6wW4au5zp hpBVyelth6QHTcbtiamHMkYnBqCkVSYLjqw6iO3lZNUerV4ooEEQwLkHgDNvkUNlver2 0d/emfY0usvrTbHGDv/koNb/83EKTUkVlNbmnrCevvOF2nuWHSWqVaG4LzYI4Z80B/Ww 2wkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126283; x=1723731083; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=645sqhYxiGhlKPfMQkDqwsuRcG9BMBI/0rO4pG2w9xI=; b=buiOKVrflFblPvGlIo9WWysFi19kfACc3Si3WzKYjRf92p6h1Rgai2Hg8LfiD413cz eSp5DWWZ3Q0MjCk6QQUS4t5YdILyzCLqjZ6ohpWL3FJHRevBR+VmyivKWZLwvpOVYjdE HeIxKyhSWdsBoidTnBBxOyxS3EMqdDFkrq98QCW7QFvtUUXVENyaf2ai0Dzvlt+Ydzci AskJJVl4RcVUxFw+CT/Se+SIoJ7gjEdzDEVIEetcNeoaHVii1796XAC9SeciKjmDwrRR EF0nfWSuI27eFtNDYY+YVcRR9NdIfYr+BFbWS1qXACyYNSooSYLI836Ff2AClPrG1m0d bdJw== X-Forwarded-Encrypted: i=1; AJvYcCUpbawdIYSbkw4eUcntLtAS90ySVA+RlcofVOwK3s/9XYgeK7iDpj6VVxJAASrCrEi6Qd7fLFvP0iRm+B0lE2EW+JpiBBnux8UeD3veWjrkbcG3Cd4= X-Gm-Message-State: AOJu0Yxme1q9Nh6ohdy74RjzbDF5fcI6o+t2ataFrafjAnOuD5rsu6/3 l3PN71VF6NYt6ztkF+NSrQEzSzVwS8WIToIlfx6VidB3KchC/Tipaax+cDThskk= X-Google-Smtp-Source: AGHT+IG0sC08kh/zmsOObZ3PvXcjyWyb0j5P2FOkvROsWIocHE2S7w2vlae2/iLc1s1v1RsqBQB2DQ== X-Received: by 2002:a05:6402:5308:b0:5a2:2b56:e06e with SMTP id 4fb4d7f45d1cf-5bbb24be6d4mr1598591a12.36.1723126282994; Thu, 08 Aug 2024 07:11:22 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:22 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:27 +0100 Subject: [PATCH v5 13/20] clk: imx: imx7ulp: drop calls to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-13-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071125_198205_A4F34029 X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. This should also plug a memory and clock reference leak due to multiple calls to imx_register_uart_clocks(), one for each clock unit. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx7ulp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx7ulp.c b/drivers/clk/imx/clk-imx7ulp.c index f4a48a42637f..517fb388ce85 100644 --- a/drivers/clk/imx/clk-imx7ulp.c +++ b/drivers/clk/imx/clk-imx7ulp.c @@ -175,8 +175,6 @@ static void __init imx7ulp_clk_pcc2_init(struct device_node *np) imx_check_clk_hws(hws, clk_data->num); of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx7ulp_clk_pcc2, "fsl,imx7ulp-pcc2", imx7ulp_clk_pcc2_init); @@ -222,8 +220,6 @@ static void __init imx7ulp_clk_pcc3_init(struct device_node *np) imx_check_clk_hws(hws, clk_data->num); of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_data); - - imx_register_uart_clocks(); } CLK_OF_DECLARE(imx7ulp_clk_pcc3, "fsl,imx7ulp-pcc3", imx7ulp_clk_pcc3_init); From patchwork Thu Aug 8 14:11:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757568 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 01FC0C52D6F for ; Thu, 8 Aug 2024 14:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=y1g12t0G6k+jblt/poXm1qsZh457ASaKEWb3Du9DwTI=; b=OlU3R7hP7tqyjXg4Hx2RS6ayZz 7K1T4yGJboI+qUlQf4NUkrnUMdwz9XJUwXrGeArCJOcCyS9JQrTC6+o2Vnz0gns7wL93emHHWoeiU LtaQMbEjFxeSVd0W2e0E3PALl52gWEEK0newALtpkD9ZXbVNdbt8FE2YwI9CfRcn9e78Hd8sLG4SV q2xMfDLD5kmNwwpZVvSZNBWcvNQwEsZg8zG4EaQCW/j2gv6pKU5gol4IbqCPyyKlWzV8dwg9eNp6n KuiPILoamIVCQa8beGUNp6KxK4Ck8VuZtCb/8AmAfh04TpZF4Svz2MEV6ejoMK3M7tTH1T+ObzAlO 9uxnTYLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3yw-00000008VDE-3Gz0; Thu, 08 Aug 2024 14:19:10 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rR-00000008SxD-07V1 for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:26 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2ef7fef3ccfso10277791fa.3 for ; Thu, 08 Aug 2024 07:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126283; x=1723731083; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=y1g12t0G6k+jblt/poXm1qsZh457ASaKEWb3Du9DwTI=; b=KWtK3OfjF5ArcvPqp6Rjpg5TnMYhLf4HxkCZUdT9FTIlLCNrmnQXltXx3BkwrF4COU GMsZ7wZrkNx0NU+wZZSIqtbNLije3WvOn83UnuhTVY1aQL7AdNhnPIeYGNokSSl2sCri lrNSRuBbW72gi6AZBQSLLVhyBvNWjUGfp8BMTlb0idx7CmHCycQ2+N6G1lN7+y9S7Rir wrAUeVqqBGqNhGS4GC3oKgnrpUp0VEB6i7TcVWKNTBUqrXdCMoJfEnFcAqgGV35Q+wXp DLySTZSj/NuIOGXXZlYcf7XRRbXMtSK/p2Xfg5x31Na6LfmseyGsF52OnksrKtaR9RYM kvfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126283; x=1723731083; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y1g12t0G6k+jblt/poXm1qsZh457ASaKEWb3Du9DwTI=; b=BtuegTfqz9wW/dvwR7UPDintB5u3qi2HS5AtqaiMYM29y8bjj2txQsQAfkM+bAY4aQ R/Unxc5i/rT9rYsXR2v6WlPPInpeeBj7dH+1AjWCQHSAYfEKe1nIDFi8bsbY2DxsLuMw RDfK03XZDiGBiEICL/kwJN1JPr8cxuwh9zwpT79PgmFjXvLHpz4NykCVpvav0nNrSUeU SkNQhQ9YjAZw3N2LOR7QDAL0efIxSvY6uKBWjnEQJNwuGSelB9jLmZeVo4zjewBm6H8z cBuG+bQ6gblyHDqXzrt2VamR2fC4l5rfIuh/3zApA8PS6yAnJ7uLON623Z8ozltC1gRA MXag== X-Forwarded-Encrypted: i=1; AJvYcCXSdy8pBRt8M3U1vAu6RCrE/X1laVvxmT8nzgR4EM0HsGd0lJ+Ep+eZQz7udN4wYjzUyhsYylmVWSyD2CM353RzB0c2Q9A0GUL+oa4Mlv/hOmgVKOk= X-Gm-Message-State: AOJu0YyvWQrbxoW2ue+VwlJy9IcJvr6nwS78X/s5Nmi0GbmsMOc4Ukbn V1hEFa9S0cB2SzIR+BWOFCuZ9AUzC8X59zS/wnwltEJfZFK/zsSDfWI4nUea0QI= X-Google-Smtp-Source: AGHT+IGDyMQHKv0RwbvPX/6d6Xk0Zr0aJrMD0f2Ipsmoyq60Ge259oDU095mhvj+uwb4LCGW4iMZ3g== X-Received: by 2002:a2e:9cc7:0:b0:2ef:2638:48cd with SMTP id 38308e7fff4ca-2f19de73ee0mr14044491fa.30.1723126283448; Thu, 08 Aug 2024 07:11:23 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:23 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:28 +0100 Subject: [PATCH v5 14/20] clk: imx: imx8mm: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-14-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071125_159187_45C7D845 X-CRM114-Status: GOOD ( 10.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 342049b847b9..3f649da0230d 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -609,8 +609,6 @@ static int imx8mm_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:11:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757570 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62C3EC3DA4A for ; Thu, 8 Aug 2024 14:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=c1BcegJWI56BA/X7kHTU13cyTVS8Z7HSnW1uFBI1IcY=; b=ex2M/cD5WLCvqqK7VFKDq9vN5k h6nNTIa4gHS6+QEUh0jmgEZ5/UYZBW3M1bNHBnf/KwPPg1CGfuN9yWjQUsWiNScWAG08uGhQHVTuW nRRFg26dEoUP0Zgk4RUSD2FQmSDPn/GzPeLVvLPF+2oKPX3V+LBEOL99KpMGZLt8xPIbm8XY0vFWW EUOPC7ujCZHLI2oKCd13OmWIJWORaXzI/4Y6obI4PccRKInNzHwIoOTHmZqhFZuCROYT08a8WfPJU yWDGQt1pL+pqKS6/pcaziiGW1bXA7v5FG1YWYd/iaFEGd3YXDpf8HlTSYspWvmNn8ktpzESB0zJC4 xfEmshKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc401-00000008VQu-262v; Thu, 08 Aug 2024 14:20:17 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rR-00000008SxL-1YsA for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:27 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5a2a90243c9so912602a12.0 for ; Thu, 08 Aug 2024 07:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126284; x=1723731084; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=c1BcegJWI56BA/X7kHTU13cyTVS8Z7HSnW1uFBI1IcY=; b=OoIlQHSN9HDM6VomdWWt6QT3ELfBOu1sHsnfAOo8qghLK14SsSIFASaDsCepHgQNlV aaH0ST9Cb2NcdyPW6ldYIGfh27bpDkKyMqWmaSDg5f3qEo9vVIbpfTO+3DSRt7QxEM+K kCfpYFbNIXEHfLJlwD63wec4GHS9YOZsA6BERIo0FLlBZ6wZHqS891y1LTUcHfmFFfPL TsKyv8pvgm0vO5Ns70Xs/jh+3elsMcXEUMm766AriNHGXUrYIfVZpQbPvK1w52c34hOz LwLNsVlHjx1CEYX6fEqz0OYffH5ym03FORPzvTtYu+f5zi3eZMd5aK5mh9iWEHhI14W5 S8ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126284; x=1723731084; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c1BcegJWI56BA/X7kHTU13cyTVS8Z7HSnW1uFBI1IcY=; b=k6otprbA5+G9w0GpC6BSo0yTzqcpOWYgDVLGL0mbgCfGea9pfOKJLdGf/W9APIAIyR vCAMuUOABiHYlcaNmlngB3LYhsK7HxmmM8uE9XXYB0pgVMmJihqavmqQ5A/XXYVgvs6o ra1f6jSZo0fS1Vbgi1B26f5gNvljZ9UhpiypYqSssnG5G8rQq9joAwtBeotsj2GCsDAB k9plnlolN3LMymgxNUlKcDIj3jHNZDMxl9ZTNpTXHYvWNtDtJ3E9xckida4ToQJ2T6te Lq2dZSjjYtD1tYFw3fu57N9BVUAk9yPz1A98BN5EobHtg5vXxhtNaGYXWdGCZmJhr55H BUsA== X-Forwarded-Encrypted: i=1; AJvYcCXaVAzmlS4b1yNC5HEUJ28IWW+oEejdgsEGfxL2UfKzJFS+Rrmv/hAwE8Z7zbSuIPI32YdXzxK9bP9Az8dIZGtheSjw0FS2RvvbQ4RmrmFeH9NveXE= X-Gm-Message-State: AOJu0YwW0d8viAO4/g0O/DatByyt5ROpCyQ5u/fcOz4DdgyIg5onJSRo Dr7l+IpghXG3JXArAAXBvFYgJPhHHVxd0qi0Mfok6iOrsV2Fr0XONVBxBFBiokU= X-Google-Smtp-Source: AGHT+IFDQ4xO+7IdMcxAQOisAYakQnBCgmZLgpWTWFQiC5OifaIDp2UC1DBibihQ4Kt2Bm/3m4eP0Q== X-Received: by 2002:a05:6402:1ed0:b0:5a1:1:27a9 with SMTP id 4fb4d7f45d1cf-5bbb2231a48mr1923760a12.18.1723126283922; Thu, 08 Aug 2024 07:11:23 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:23 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:29 +0100 Subject: [PATCH v5 15/20] clk: imx: imx8mn: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-15-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071125_508191_70302713 X-CRM114-Status: GOOD ( 10.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mn.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index ab77e148e70c..af7f4c6b51e9 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -603,8 +603,6 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:11:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B02FC3DA4A for ; Thu, 8 Aug 2024 14:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Of9JwvhLlmcEUvlQcUj1kyU6mPikzafRwyTDPy8iQT8=; b=cm9mJsLXQWBwdIdEb6nwKni1bs 5st95PdUTnkW5LXpverjIEgDRXsaGaOEg54LMrv6QCyYxh//OAMar7Hci80ybmSFjkyfaHe4mkbc6 X0mDsAFUfeYmrUGf4riDDe5XaGSf945XFn9f2ICwzmSROF0EYyIbtmbDBjfgwA96frcbP1t3v3ybD epqxanwv2S+qnfJwECOydSH/NMOQg/VxK/R7S3LJKHG5jBDL+a3GtVyGQNmWmkZ9+vXF8bAgEAVeJ yuZu9QXoLddABMJWn46D4jJNbzhbEOcnVWq+0ytDjm6Oe0BDqs7sQ5wtAaD7dDP21m4HOAe1buElN vIEMhnBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc40Y-00000008VY6-0XqP; Thu, 08 Aug 2024 14:20:50 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rR-00000008Sxm-3KWR for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:27 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5a1337cfbb5so1283583a12.3 for ; Thu, 08 Aug 2024 07:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126284; x=1723731084; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Of9JwvhLlmcEUvlQcUj1kyU6mPikzafRwyTDPy8iQT8=; b=iokb8/B+pWVVwR02H5MHWBm7F9JQ2efOJFcfHK8EPdu0BZYlueqAXOLkFcSsN4+UrD 0mKfDVx6O1HVzElHVbbSroo61lCpzBPS4tAdgIZhAhVUBYqU9f2D3H//M0Tb1bJYhrIy dYUoRmlSLDqqL6rGoqRMl3Pc5UsuR4FZRD4Com6azJpmtFsJJSOAbaV03ef14/ABs/YO 6jHZQUIubKTgVAhahtnI/XKBJHR6SzWVdxsTiXNk1OaxOqIPMpy32Er4LFNtBrzAd05Z DtQh/jPiQBGmIEy55I4KCgOFBFJ0cTJKerp9IthNAva/N6ngBrSpgh1zi2vhJ/n9irIs 2NiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126284; x=1723731084; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Of9JwvhLlmcEUvlQcUj1kyU6mPikzafRwyTDPy8iQT8=; b=mkv7B8vASxGKAMx6WgwN4sMnLrbxxNoujfzXpeqa335WqIV4XWgNoMRoR4432ylL7L YmmYTFYnYEVqAgS+K588gCvubWHHTxOi4GUsBMv4HFzjAmRs+VgTQzUiq+qr1XfgEStr 7bzndP7zYRcSjKZncVrKaXCLTReaSKeRPPY5+ZiN6kcDb+lHaMQXptJRIDVOCqy4LHy3 N/bwJFNiDJRcPzTo+D45eexHwDmrifk4KE1TmbSF8WeJJqQFKqaw3Peqd+1hdm1kNR1U P5AloClb+45UJOeff2SLpkS1l2jCBl4YqkRS++aldMIEmQe1ixSG/IZVG54FIbfDZz93 fyuA== X-Forwarded-Encrypted: i=1; AJvYcCUg84rdTt6l7lPdKufT7SKBBZP/LJ5EGh7mCuZlK5Rtpxv68ihsZ51Al8FKeOpnMo53puOdSbFinM4PLuypyCO1E1KWw0ppzKFoDmhOMsc3nYtXyJs= X-Gm-Message-State: AOJu0YzC7n7OLsxQC0KOZL/Au1JczCe+KYBuei3nwaGJ4TJm04QzC7DB 4cOJ6kHOhK0g726JhE1aL+nd/r6RzEeURIyilzsDmj1q55kUiOjR+5k8QXH+HOU= X-Google-Smtp-Source: AGHT+IFf3g/jYuJvYQwgVJBe8vCrF8fGufVkSyYm1tnaBSWaG5CaYQLX35KDxCAtiZcxjnLr0qD2Ng== X-Received: by 2002:a05:6402:210f:b0:5a2:f154:95f4 with SMTP id 4fb4d7f45d1cf-5bbb21d08d1mr1734856a12.22.1723126284388; Thu, 08 Aug 2024 07:11:24 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:24 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:30 +0100 Subject: [PATCH v5 16/20] clk: imx: imx8mp: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-16-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071125_881423_89E5F728 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 516dbd170c8a..1c128c051199 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -721,8 +721,6 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) return err; } - imx_register_uart_clocks(); - return 0; } From patchwork Thu Aug 8 14:11:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757572 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4DADC3DA4A for ; Thu, 8 Aug 2024 14:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UhprNA5ngdnDDPt6+AGX+wASXbiO8LYK4hmScrmWYDY=; b=UxK0VtYkseaQPF9VqW3VEkCBkx zIXwKFUkU8kRpE1fZQgCqDUw/cXkg4TBPivGKskLu8J/rgeDtE5DpokIOCorCixQcE/cK0b5e7Upi 3wqG4gASZ59S4a4PeLgpjiiYCvsu03wsxkTgvsx/aqt7Z1tC5EYx5J5R2C1KxQUWnS7+yy+4Oz0o0 7LDOJMRoJftlJu2TqH43YgNP8iewJbCHWbmiQS3QlaIp2GJh1Es+QX6sRrtzqb0gDlGwniEtfufOp LgP3L7PV7HTdSYXfxW72BrHZjkLQO0h9tgW396/m1oHY8NONn82/4Q34qihdXHKAHlsJb4rXoJlRi Or5W6IlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc414-00000008Vhy-334Q; Thu, 08 Aug 2024 14:21:22 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rS-00000008SyN-18Kg for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:27 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5af6a1afa7bso1179485a12.1 for ; Thu, 08 Aug 2024 07:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126285; x=1723731085; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UhprNA5ngdnDDPt6+AGX+wASXbiO8LYK4hmScrmWYDY=; b=K+FF713TkQhN2rHqNiUapCkF2eLHem1PALWxN53DMYR/ksLGUcKIcGMITlWKZd/oVM hnvOTsN/js658RkvaVKlJnGb3BRp24AwbTPzo65fKByxg+jhshj8ofHP5IJojG8+z5CR /6GWCKm57Zw0M3AQRoJIic97CIDUGM/jFTyFhB5AKO28gUMl+PXM383cu8Lrv9FSLsET nXzqKGM/odil2vj6pJxaS/DbH2HYC7krszZXvTiEyTGgoacGMg/Uh3jpZnEVObsyT7+S riUDoPYaoH3F6UUNWo/Chf/UdVEKsBPeddNppzx+lsWkpPH4yHppbYxyIgTiD45/dJXm 9TIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126285; x=1723731085; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UhprNA5ngdnDDPt6+AGX+wASXbiO8LYK4hmScrmWYDY=; b=KJ9Y0sHPy71nCeaOXINTBqBXzGpoC9xE5g3EjRbiCmIr49UmlnBfiyB1hEPSE5VfS+ FG8bVE5juc1wOkE0foilPilytP3ILzFY8crEkRXIx9LJIXXLdVBbybvOmXfFuXyTSByw DtwoZWqakjE8hFm+tTkZ6tyAz/Nw20qQkkh6uTctTskJ4OQGTsBlF1pr9NPqa8XG1rny Ems11TWOM6U9R+mbMzsEPmGC9Fq1eDttA35ft/r5AY9iZoSQPEwmBhntTrDlKlB/h2Hj Tze3A//J4sLZaJvHmHX4puRYzMrNmxRj9LqCstQXKMy+IrhKWwVFXNZHXuvuMnaGNupP 0lFQ== X-Forwarded-Encrypted: i=1; AJvYcCXjZspo99SHnnsPpxI9y+PPMhtqVo0GKPKyJw7FjhwUIQs5NnEoH5P0QqDUBNtoa6Wpo2t/x8lRTWAWq1qjdTc8urCWYv+d6liLkeIm7+I/+4UG8gU= X-Gm-Message-State: AOJu0YyAOKK8KJpOGFMwZvVu7oT9pdyzAqcsGgxwoJvATQCtDuHuf5DH T7DP60BUvxMrVAr5Rr1jt8NB3F2MJY05YLoHadB8t5vhKlDwc4etHziY/8duOWw= X-Google-Smtp-Source: AGHT+IGQe2l23uShoIpRGe0OtZ/F9zcL/2P+TyvQ982GKO9ePP01YLyep9DwZHa3XED5ok4WlLQprg== X-Received: by 2002:a05:6402:42c4:b0:5a3:f5c6:7cd5 with SMTP id 4fb4d7f45d1cf-5bbb23f7c56mr1647715a12.26.1723126284803; Thu, 08 Aug 2024 07:11:24 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:24 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:31 +0100 Subject: [PATCH v5 17/20] clk: imx: imx8mq: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-17-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071126_364241_A3E416F3 X-CRM114-Status: GOOD ( 10.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8mq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index f70ed231b92d..db9aaec42800 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -604,8 +604,6 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:11:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757573 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 28EBDC3DA4A for ; Thu, 8 Aug 2024 14:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EZspTtdY5QAEUSn7UgNMVbYIWDm0rZtsqchGrqjMzsE=; b=q2sJ/83/Nq+si3AhXip+bPaE0z YA8V7Rd99Bft9AdNDZh/8Q7ddJNohxQzBlu+rvMOb9d8a/vjVtRCiBIVTOqhOueyKjr3HrY9TkAd+ pfXP8q/R4p1qIvo410PpOrQiTlrXchxGOqgTzaffeEalaZDOMPIiWUxnJ5azeFuT+7inDiXpStdOa t7iGqtQqbFYPD0qya5u/wLtEZk+Uh8ol+no774IRN/6JldJFYFtSgTXw1AVjMxl4mV6VB4fMNUqnM mqBoBq1vtacBGmpGZuxpO3SNa97OWzEAqyy2UxByY2NjD42lnTjRWSgIe5StcNo2MDuYsICIV1EzS SNTWFs6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc41c-00000008VsX-2RYg; Thu, 08 Aug 2024 14:21:56 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rS-00000008Syu-3bOy for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:28 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5bba25c1e15so1189460a12.2 for ; Thu, 08 Aug 2024 07:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126285; x=1723731085; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=EZspTtdY5QAEUSn7UgNMVbYIWDm0rZtsqchGrqjMzsE=; b=nY1jog1Fne0b5lwripYyfmwOFnX8d2XOhXX9TD1LcjRbcKnjGqzbO2+Aaa5GWzylZx /y80h7hFyLkIpBDCaWgxuA95cycq/VntGaiwUbugnYQJqNHkBf1qS4VbCI8OqnSmnXLc oNpz7M5Y7BblcZBz5FtG7zg7fcrv7u8M00iRtkUjAg0GW4WSli9YIapaUhzU4Wg+Awtr ncLs59ns4tXbGB1LJf1yku5KQQ32osR9tZ3p6MrwZ+jqYiOM+kn5SElxpAXTrLCJdzIu r2PWnX0L4FJ1ppvhX6gYy78bG1WbNLUATmE1a//mn+Xghl/4IYgy9zpKNhFf0w+WZtvA r4tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126285; x=1723731085; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EZspTtdY5QAEUSn7UgNMVbYIWDm0rZtsqchGrqjMzsE=; b=QlV0wEkvCkpktFKSdr+TRPc9C/E+mipqDCAfhdoIDAA6WfIhvQCUyk1GCxpsPi3Oh2 kqCzmiozZ+jmBhP2Gi878GrvMGLUiyvPPfrwjk3axPyIbPn6PWO9gKcSRfD+CdV0bk/J Nq4KrBrwnyJHVDJhM9r4b2l3LFewq4whDdoMliFHn1hyurfPtmL3WK1F/faaOoAo9En4 LyrejeHNvsjG6vz6mZOSlAkOBQPzFQ/xoHCYW/e6BsS60Xd0xD/aYkDBfyjb1eSfgHMI zCOXcLwVtcp0WEEMqP3nk1JoYCgfrIRuDhAyEFfJYXMafXOs8ktCBleOpWYupEganzKP GOBA== X-Forwarded-Encrypted: i=1; AJvYcCXxm4DfGs1ssgwpwvU8WQOPRc8CC3KNbNI/qIaUWnlaGW9/zL04NaEaeUMoD1Qr1dkhOsIbFY7oqOCIf8ncJK3egyhFEYWZ9SiEMO80KxjiUelFbnY= X-Gm-Message-State: AOJu0YzCbJUl8gQHD7AeEY2vJHfkZIJLNT3BDzcUTreC8iQsyMiBJg8l EEGWhPDu52SzU0OgYN12O1/0x1Uf9Nnni5BJB0RYlmFEo8J9XAdhqAymqlebrp0= X-Google-Smtp-Source: AGHT+IHNM0523YZN7FUzZaznT4lLi+UUQ6lIisgSbrEP+7eTyr4/ucborIocaVgNqxpxXRdnhPG6mQ== X-Received: by 2002:a05:6402:51d0:b0:5a2:3453:aaf2 with SMTP id 4fb4d7f45d1cf-5bbb21a433dmr1559817a12.10.1723126285323; Thu, 08 Aug 2024 07:11:25 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:25 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:32 +0100 Subject: [PATCH v5 18/20] clk: imx: imx8ulp: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-18-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071127_024528_355D0AED X-CRM114-Status: GOOD ( 10.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx8ulp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8ulp.c b/drivers/clk/imx/clk-imx8ulp.c index 535b6364ca7e..5531e51a1e80 100644 --- a/drivers/clk/imx/clk-imx8ulp.c +++ b/drivers/clk/imx/clk-imx8ulp.c @@ -385,8 +385,6 @@ static int imx8ulp_clk_pcc3_init(struct platform_device *pdev) if (ret) return ret; - imx_register_uart_clocks(); - /* register the pcc3 reset controller */ return imx8ulp_pcc_reset_init(pdev, base, pcc3_resets, ARRAY_SIZE(pcc3_resets)); } From patchwork Thu Aug 8 14:11:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757574 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 740B5C3DA4A for ; Thu, 8 Aug 2024 14:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Lpweh87gijIIJF4cQA1mk27Giq5WUQNyR9nG1a9dx7o=; b=vvor1zieI7zYbVAD7MhzC3hqjI iNLvOcxtzGWv7pMJNHlMFHMU9Z2gRWmp5WI2w/QnLiLJDd1pqDbZ/bO1uQShs29vhLNH4eM+jEWF2 7yx5lxtvxn0D6Z0aYy+wOZJTOsH22O23Z7zY2yGeWLvUPZFYGlcdv9qmUwLydbMdasz4QCTbLD5D/ gNKX90XyPk6NxmENM3lF8vxbJiM77TsYgmeSsGPYPK7OmrnNZpZSlP+KmHO4UQBk2UTQPta9iK7uD twIn9KDZ8Q1zEgYPRN4TfkgG0u7FdzOR2EnV61TSvzA/UcFZw/nne4ubt44hPtPM4JNkVBr2KHOaK SrbBqlvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc42B-00000008W4q-25Pn; Thu, 08 Aug 2024 14:22:31 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rT-00000008SzF-0uu9 for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:28 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5ba482282d3so1264710a12.2 for ; Thu, 08 Aug 2024 07:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126286; x=1723731086; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Lpweh87gijIIJF4cQA1mk27Giq5WUQNyR9nG1a9dx7o=; b=fdzK0ToTbthAeNy3ERqwckMIlcpC/Q1eZt9PvHsmSNRvc1vtVRd8R3htI32ltPiAvz uZdsQK72TGeeE/ppBY1pOLqJiK7E+C03mZKXi2AThx0rJBsxT0lrHnkmH6N1KuI1KMH0 cGtPLeLkdlV8MvJW4LCdZpUnzutaQUBZ3EngtXtxOWpul2YfJoteDHmJVlVYEFpngKjE GNmPeVtIkD2kHNV2UEgaC1YW8QDrD644rbA2s0Hf7HjlVQU7cxgnbQSGYhb7R/HbWzVU OiWzVb6FSoOjTPgq0VM8AMDrkWLqaVZjBDeksOqEh5KP8MBy2SAmf6H0JgUvnCbME4Fe anFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126286; x=1723731086; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Lpweh87gijIIJF4cQA1mk27Giq5WUQNyR9nG1a9dx7o=; b=gb8sTJEtJd4m6rTt0xFY6s7d+hlFyLt/BNm1Hv/X0HtE9LpHvko8MFX/5c2NPMV+N0 M3hzziZyc8GLOFVGphbvchhQsVdurCFwb/Jh1O6wfvltl6B+P+YI4JJ3+8lXZJugvxI8 SyLDha68F/MS/MKs4dJBDBLOZLdgZocifBaPd7avcK/Nharxj5yMkE86ra0k40ePjzWz vSme1ap2y5txT649k8885SWTRfue6uAqLUllyTtKiWLpfgov9f3yncfo1s3atgx5K7x/ UkgJ6ZrreTbiq8cH664cvdFz5XQqiQH27Q1wFhe6WMNxFN1cdo5QnAe8iQIDHL0BVwlg 7sew== X-Forwarded-Encrypted: i=1; AJvYcCX7/6hZr9VoYMUFIFB7aZhq92qUh0Ely1hgrJiKhbzjymCyXwxvg4evs/yhcGrLXtFqFwLIHNTPpuqnHPNT8PBoPMPZM3exFMyJ+i705xrd8tMHUgk= X-Gm-Message-State: AOJu0Yxd8tGC9ciwgQu4nWJBZo9aX9UR6TLE//u4qHmFSCZz7bEDyZvr Cl1QO3cpjdqdif1Mj41jQiS++LXQ/0KO1UOvHiSYdb64HFILCA5ILAhAoE1bVT0= X-Google-Smtp-Source: AGHT+IFHP+WAJRQKtBDAPTtKu22SVp1AeXoLDnW177RheT0ogYkQLTg/lKBXGJw5OqPnaZBvaHWibA== X-Received: by 2002:a05:6402:2755:b0:5b4:fa3c:d9ab with SMTP id 4fb4d7f45d1cf-5bbb2234971mr1842865a12.23.1723126285743; Thu, 08 Aug 2024 07:11:25 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:25 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:33 +0100 Subject: [PATCH v5 19/20] clk: imx: imx93: drop call to imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-19-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071127_292346_F845B2C9 X-CRM114-Status: GOOD ( 10.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk core now does something similar for us as part of of_clk_add_provider() and of_clk_add_hw_provider() and this i.MX specific call isn't necessary anymore. Signed-off-by: André Draszik --- drivers/clk/imx/clk-imx93.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index c6a9bc8ecc1f..9b8006b15d0c 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -343,8 +343,6 @@ static int imx93_clocks_probe(struct platform_device *pdev) goto unregister_hws; } - imx_register_uart_clocks(); - return 0; unregister_hws: From patchwork Thu Aug 8 14:11:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13757575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 73865C52D6F for ; Thu, 8 Aug 2024 14:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=g4eCyKnwzwhvgvotyhGHB+vsH3GCQ4YaY3HQS5YaZiA=; b=zuJfoixOhPdW5oSdkgPwypcUZf QEkW0Oqm67jxC7R5wfJ0bZqETA0YMZbqXMrBx/IAZ173Gimrtcws0fDLRF+Fv3gazpBfnR9c6yUoh A3IF0v65Eh1NiQI1REcXQAmiAuKnydQkvSKlK8yFkCw7BqOhrVbCWE6eo3K3DSPKCaXJNbd1E9QCz h6Y4t8+TCI2zNPpvbnwcC2THGKJ/raBUBzPSHa26kb1UTujnlA43BBtG87ME6BG+66okka5sXqGG2 f7J0DII3+m2zDEjwfGjc25SBLzroH5xxvRSdAZQE1/UEOufOpmQS/YMAB09X0eSbKrvDdPhJydOdm kbxPJsgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc42i-00000008WHR-3Xtn; Thu, 08 Aug 2024 14:23:04 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sc3rT-00000008SzR-2zG9 for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 14:11:29 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5b391c8abd7so1175040a12.2 for ; Thu, 08 Aug 2024 07:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723126286; x=1723731086; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=g4eCyKnwzwhvgvotyhGHB+vsH3GCQ4YaY3HQS5YaZiA=; b=LLf63CwhRnWUciko1JK7+2gdpyEIsNEW3U1k9sB7496mVDMo6X/7YremJTYgTYVULE AI/zaUJZee6UoWWYPNz4scioPdd96zxpMyz1R15SKOo8ih+4uwszQGNvQKwDYfEvQ4qb AEM8dOUO7kLXc2+eAEXWYeH1mcvz6UL9BlLaA8Mym8Tb5f+Z+r1HOqi9ITM1UossGAep dmIGa6t95qsw95fRvMbVKWby66K/Whj+Zffiwa9ZKD5QBlWG2xoSCcFaUkFqY5Ygo3r1 JmoRxjRBtII/lAZKUNQRrnaz70NWksO7PhH96gNvrIL6mvZSysb5onPKNHfACRSKyd+1 5z2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723126286; x=1723731086; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g4eCyKnwzwhvgvotyhGHB+vsH3GCQ4YaY3HQS5YaZiA=; b=d1MR7CRjLCI/ZGHRnHPYM0xFL9MNJBc1cCVRozmUTJRYBsSpfXUugoVgnb8z8OFwun qBXigpJZ13HFm0IT+/LpoB7hhjnnN3GXAS0AsjsbearcB1XR640cB4zudvhD6PkcULEC O0pvi2k7Lda86Y3wHwBUMEpBQ9Wp/0PBHBj93foNkGhAyqnkAGlrcrZ2v+7G5J5d/bDA aV26pxJ0ZpN+zgSw6fQF5dUKTQpFdA8ZTtVt/TkasdcsrFdI12FcTRAosQJViduUP4WE y8SPFZrPWXGSG1R4GQW3zK2VFzFbi8IkaoYh+upvvJ64PWPQP8FzCM1mXRl/9Gco1Gat rgiw== X-Forwarded-Encrypted: i=1; AJvYcCUsMJcZXGmEa45krSNuyg9vbzeu1UXlmkNx7IF26mO7Z+8mHHjwXUByrSow12WB+y2d+0q3lmVoKx3CRsA/tvKeaR0pgzi00m5lfZNdANA9jswsAMA= X-Gm-Message-State: AOJu0YwCiKfBuwikXUVMaIMMCJkbBS2/51yIk1H5RhQnj1eovp2APDwi JFjaP6NHIxqaHBG7L91fXgdC7Difh6QeMElcr+ZK58zo4ousJ6yMxE5mmD2osbI= X-Google-Smtp-Source: AGHT+IHLyR3mIPR0bVi3zK5Pu+MOQMUFddYaWH9c8BVGPZ8CiQyaIW7/W5phTXQL3+7VzYauXFuUYA== X-Received: by 2002:a05:6402:1e93:b0:5a3:3cfd:26f7 with SMTP id 4fb4d7f45d1cf-5bbb2409945mr1779672a12.32.1723126286215; Thu, 08 Aug 2024 07:11:26 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c29f79sm671761a12.33.2024.08.08.07.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 07:11:25 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 08 Aug 2024 15:11:34 +0100 Subject: [PATCH v5 20/20] clk: imx: drop imx_register_uart_clocks() MIME-Version: 1.0 Message-Id: <20240808-gs101-non-essential-clocks-2-v5-20-11cffef0634e@linaro.org> References: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> In-Reply-To: <20240808-gs101-non-essential-clocks-2-v5-0-11cffef0634e@linaro.org> To: Michael Turquette , Stephen Boyd , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Sam Protsenko , Tudor Ambarus , Abel Vesa , Peng Fan , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Will McVicker , kernel-team@android.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, imx@lists.linux.dev, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_071127_802669_39A773A3 X-CRM114-Status: GOOD ( 13.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are no users of this anymore in the tree and the clk core implements something similar now, we can remove imx_register_uart_clocks(). Do so. Signed-off-by: André Draszik --- drivers/clk/imx/clk.c | 72 --------------------------------------------------- drivers/clk/imx/clk.h | 7 ----- 2 files changed, 79 deletions(-) diff --git a/drivers/clk/imx/clk.c b/drivers/clk/imx/clk.c index df83bd939492..5f998e56a4ed 100644 --- a/drivers/clk/imx/clk.c +++ b/drivers/clk/imx/clk.c @@ -154,77 +154,5 @@ void imx_cscmr1_fixup(u32 *val) return; } -#ifndef MODULE - -static bool imx_keep_uart_clocks; -static int imx_enabled_uart_clocks; -static struct clk **imx_uart_clocks; - -static int __init imx_keep_uart_clocks_param(char *str) -{ - imx_keep_uart_clocks = 1; - - return 0; -} -__setup_param("earlycon", imx_keep_uart_earlycon, - imx_keep_uart_clocks_param, 0); -__setup_param("earlyprintk", imx_keep_uart_earlyprintk, - imx_keep_uart_clocks_param, 0); - -void imx_register_uart_clocks(void) -{ - unsigned int num __maybe_unused; - - imx_enabled_uart_clocks = 0; - -/* i.MX boards use device trees now. For build tests without CONFIG_OF, do nothing */ -#ifdef CONFIG_OF - if (imx_keep_uart_clocks) { - int i; - - num = of_clk_get_parent_count(of_stdout); - if (!num) - return; - - if (!of_stdout) - return; - - imx_uart_clocks = kcalloc(num, sizeof(struct clk *), GFP_KERNEL); - if (!imx_uart_clocks) - return; - - for (i = 0; i < num; i++) { - imx_uart_clocks[imx_enabled_uart_clocks] = of_clk_get(of_stdout, i); - - /* Stop if there are no more of_stdout references */ - if (IS_ERR(imx_uart_clocks[imx_enabled_uart_clocks])) - return; - - /* Only enable the clock if it's not NULL */ - if (imx_uart_clocks[imx_enabled_uart_clocks]) - clk_prepare_enable(imx_uart_clocks[imx_enabled_uart_clocks++]); - } - } -#endif -} - -static int __init imx_clk_disable_uart(void) -{ - if (imx_keep_uart_clocks && imx_enabled_uart_clocks) { - int i; - - for (i = 0; i < imx_enabled_uart_clocks; i++) { - clk_disable_unprepare(imx_uart_clocks[i]); - clk_put(imx_uart_clocks[i]); - } - } - - kfree(imx_uart_clocks); - - return 0; -} -late_initcall_sync(imx_clk_disable_uart); -#endif - MODULE_DESCRIPTION("Common clock support for NXP i.MX SoC family"); MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index aa5202f284f3..314730f848f7 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -11,13 +11,6 @@ extern bool mcore_booted; void imx_check_clocks(struct clk *clks[], unsigned int count); void imx_check_clk_hws(struct clk_hw *clks[], unsigned int count); -#ifndef MODULE -void imx_register_uart_clocks(void); -#else -static inline void imx_register_uart_clocks(void) -{ -} -#endif void imx_mmdc_mask_handshake(void __iomem *ccm_base, unsigned int chn); void imx_unregister_hw_clocks(struct clk_hw *hws[], unsigned int count);