From patchwork Wed Sep 11 15:10:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3437 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 001094354D for ; Wed, 11 Sep 2024 17:10:49 +0200 (CEST) Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-3789c3541e9sf1488830f8f.2 for ; Wed, 11 Sep 2024 08:10:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726067449; cv=pass; d=google.com; s=arc-20240605; b=ZecUB8A8hvx4wtQaCYX4wHd1Qm2CV92iSNAiHNjJ6JJmZr+/K8R3pdRXHPwDfEN2AT KYAaSd0nyO+5WuNf5gL+rcd4M7aeLy2qcDA7c80USqXUjIjs02soSaHJKBVfXkom1KjP Q+somP18M246dv/jCUDruJt/iwHO6JFMy7zpFGvkPQAWxH3XgIV+K3hUBKvmIG0x8/Hh 9GiqNvvu0xPMmuIdX91xqYja7Nj7K82TjsaJ998mSs7P3JTB6ciweuTS4EN5diyXx8yW B/Td1YJL/NORBYmVoBV6fZ1xPsBBoFPjhBB5C3V0tnys4aeXHBPX6gSHoYOP2kSnArC9 3MqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=iieuy0uPnv0ybZtqO7U7MYXCZZ7LXWmhQvzZ6mr1/uM=; fh=TULMjkArA7IMAVGmOQT7hYhVQrIUKxjBJs9Q56n7IGw=; b=FIEuoHZWA/TRaIwmy4nsQzuiRuh4udUq4ycv9IxqWxRH3lBTf99jExlXwMFmbGSwjp mbyiw0XwgTNkhcFy+yOMSkk829hqj7VbFKYogWQCsHGxTu5RCQ4sYP4vQBNxtT1DobaY psieLVrySdHQCOmAEFbGe48pPB+hJa8gllTfnHqGOT6Q9UmzcpFbDqTJdSxEtAslHC9D iNzJrBtGpXo9Vq0aPUb6luf5HnN1yP+rR75mhZo81RnOHqgBR9azLuPSbXdyi/tckhsu mRhhry7rUliAhFgRcSyFUhiQukKWhgexx7STxkvaurFRSv/GZrddW0Wqtcz8s7+LMFgU V6Ug==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Qar2tRN7; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1726067449; x=1726672249; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=iieuy0uPnv0ybZtqO7U7MYXCZZ7LXWmhQvzZ6mr1/uM=; b=Jk9Wfc7nSXWjRAKRvHVk5OE0Kh1XWCvg9tvsu3IG0sVXRvDhScO8T4d0QFzfoY16jF y5fxKbVTUldf+Rvo/NeR+s9lyh7fBKUud+3Q+/BlfZFt7x/pug2Tw5LEUuthQhUiPbau +rtHFpCpDCVXiaurxuQBFl5uwKiT5loeX9+X4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726067449; x=1726672249; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iieuy0uPnv0ybZtqO7U7MYXCZZ7LXWmhQvzZ6mr1/uM=; b=DblAvTVCJO2ovhpePPhHVFu9NupbRW6lGHBd0CjEmQWPOw4TNDqpVRLDwDjKn8jGSW mIO537CDzRHf5mKw6Y6cnECG2TIrrcpsW0Fep+fCkfzV9J4jw1xDuHaUoysVbAoqvlLu cjJMY9v+vEAFYX3knCG6HAMqwks1UqbG0jrhY+wxZTNWsNYCsAbrN+7CXLzwj+K+6xIj eAbAsoGpCGLTZBuTsvdpvi5ylcQi2dSvQYTXkNshVCIMuS0ryI2rAYxpbdxvMVnFFXoc FIzvAaX5jllMEJ/UKuZJEc+owXkrBZRP3M5G5DqtgJ0KPZSkfRGNsoBFzYttW7InkzAQ oZFA== X-Forwarded-Encrypted: i=2; AJvYcCWUcv5hIIotS09pP/6/KCuT+yarRc8NLQzUB0/YWmGs6PaWtcIInkNsbm8wnPr8yqFGnzE+uAplooCfSNaC@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxAzbwhUW4qzlfk1gGY3Zp3EdxIJUlCPLarjV4VkESmjwJt0jw8 khKEtGgB0BnJWll5Uww/IFf07PSOzEIu8yLjSSY4qnxK2EY/CTUkRBHR8dQKdn9E9Q== X-Google-Smtp-Source: AGHT+IG9B7QF88XhnH8UBgRzLGJRbLSBU4sw8ixkPIGfimFyyE+f3QWmffMQuqxUFgxuGDiVLxnp8g== X-Received: by 2002:adf:9b93:0:b0:374:c040:b015 with SMTP id ffacd0b85a97d-3788969b7dbmr11640489f8f.57.1726067449468; Wed, 11 Sep 2024 08:10:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:510a:b0:42c:af5b:fad1 with SMTP id 5b1f17b1804b1-42caf5bfcd2ls18242705e9.1.-pod-prod-09-eu; Wed, 11 Sep 2024 08:10:48 -0700 (PDT) X-Received: by 2002:a05:600c:4798:b0:42c:a574:6364 with SMTP id 5b1f17b1804b1-42ca574664amr126330945e9.12.1726067447882; Wed, 11 Sep 2024 08:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726067447; cv=none; d=google.com; s=arc-20160816; b=bXF5xuexyE20H6wH7BZSAuXgHDmQvjR7ML8zpjSi5QdTlXW/E7Wnb8qWc2oMCyzvFA cS5AoQ4qAtVXsuqfZQ6N5d08PkSbp4yshf3nMCRW1z58m3xflDMTEMWbZt0OQT6sOGDh 0BKwsMckJ83xwvEUi9L6/Eqgm90NISFQCgWB5zm38q9QsQ8DxJfTPobAKIXA65DmyzpZ EoqvPWalDSIN2j2LRbwl+M98ij+9zMz9LB+YgYKTWgaELWqHp6F2yQjrG25EQ2K6VKuA xBtyWXJNBW0lLoqep8gqPwSeL3+vMwomfX74JHvFXGw5yMxKkEyMZ8VdtUZ2nBf4VNKs 4G3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=kWsyeuNuyXRiGvMqRv7xYcPZNquHRAzCR6o7cCFgnrw=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=vh5vcm5NYpxHUjwgJFaVV/a5V/nZpvczFV75mS3VlyBhOMsC2zeK2A5HW/tBTK+BLf WBd9FpXfR0pIWhMeCHSsYBWojbccpXk08uUM+PaM6UCuJvyCbL3trEQnR9LYXeQwb82k lJBx3r5L4y0p69Syxl+YWA0qRIIGZqffgZpu6yFtMmFF+g3br1nF9cyi/0vMePlVoABm 3wBaQ8wqFXcc7vsdbjbM/nUzkkfFoRIuxG03mnKNQ1qccwic14DHq48X/eVJNL1FslHq AXraZjzphoGHcUV5K7CRIC7xw1n4ehfRUEPaxrJXcX1KSerWG4JbxVIxu+1bjYUOJCJM DYvA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Qar2tRN7; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-42caf30bb0asor39495985e9.12.2024.09.11.08.10.47 for (Google Transport Security); Wed, 11 Sep 2024 08:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:600c:4798:b0:42c:a574:6364 with SMTP id 5b1f17b1804b1-42ca574664amr126330585e9.12.1726067447031; Wed, 11 Sep 2024 08:10:47 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42cb116f44esm137688375e9.45.2024.09.11.08.10.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 08:10:46 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH v2 07/27] clk: imx8mn: Mark IMX8MN_SYS_PLL2 and IMX8MN_SYS_PLL3 as enabled Date: Wed, 11 Sep 2024 17:10:19 +0200 Message-ID: <20240911151039.2914886-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240911151039.2914886-1-dario.binacchi@amarulasolutions.com> References: <20240911151039.2914886-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Qar2tRN7; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Michael Trimarchi Both clock are enabled by the bootloader and we need to increase their reference count to avoid disable during reparent operation. Signed-off-by: Michael Trimarchi --- drivers/clk/imx/clk-imx8mn.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index e089012477a6..31d2faa97a3e 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -151,6 +151,7 @@ static const char * const imx8mn_usb_phy_sels[] = {"clock-osc-24m", "sys_pll1_10 static int imx8mn_clk_probe(struct udevice *dev) { struct clk osc_24m_clk; + struct clk *clk; void __iomem *base; int ret; @@ -417,6 +418,13 @@ static int imx8mn_clk_probe(struct udevice *dev) clk_dm(IMX8MN_CLK_ECSPI3_ROOT, imx_clk_gate4("ecspi3_root_clk", "ecspi3", base + 0x4090, 0)); #endif + ret = clk_get_by_id(IMX8MN_SYS_PLL2, &clk); + if (!ret) + clk_enable(clk); + + ret = clk_get_by_id(IMX8MN_SYS_PLL3, &clk); + if (!ret) + clk_enable(clk); return 0; }