Message ID | 20240714071023.10417-11-michael@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCXK73FY3AFRB4XTZW2AMGQEAMZ5F4A@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6347F40F59 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Jul 2024 09:10:42 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-58c98ce7d00sf2709918a12.1 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Jul 2024 00:10:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720941042; cv=pass; d=google.com; s=arc-20160816; b=ODJMXAWzNAwZrOtNPa8SP0icpI1sZpQyemyH8cnkcumwvIQV1CXx5Glz0U+rhNzJyL JCgYluQryQ7Mr0HoJrEt9sdAldnKRfP0Fcle7XM2J2o33VsJdXDwKZAA7pUsf5Syw/SF TbscUeyH8dtsgHrTGYYLzfZsp76JW76wZWLL1kxKtxCSOFqmHmgBdh1pT+64PhD0f4Hg +tIcQwfhhohdTqXFxGjJRMt8MwJ27A4l1eCAVihwNf4MEQIBeKjUc63B9UXPyeYyoqkE kD7svI+FNKU1HS3b5N47Eu9RBKb8BVDvSOPFJH0m1xvQF0/HI3xif4tZDRvGE0znIz7D Pilg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Pay4LHamcuM842Ez+J6dPA4j6b9Zd+ZqUHzsa8PQO8Y=; fh=WjEJvYg7fnYZ/XgwH2X5k9L5+m1sQhgGWv8WIXq0m+s=; b=LoSB6go7nSNpQWjPUxoxZSU+T5qBGcTlF1hki7abOouCbHSF7wKs2lWLcDhJ0lcgJX mr0MJwx728i4bx0K//GJLb1i54i6QE0gi7gfYvoZV7daEPVxe43ku+TBGXkk1ho7J1ta aIxV1YGdZzwaDwJOCeC5FxOIX0zRqZohYAUd29WS3l9zUqF3ga3/0YG2HIdrjTVl/OSM TF1FoL7c6ERz/32ytcWiG3RyR3YheUQH/Bne3qlm4m/ki0SlqhGG07CdJW1GpgBsTXEr sqtXbdT8SM1MxO1SslGjdhDNfOdeZxEkyG/uTeFlZEjKB4KjzeAQcywJC9cYS5VhNpOG SCgw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=O2WODHUx; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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=1720941042; x=1721545842; 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:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Pay4LHamcuM842Ez+J6dPA4j6b9Zd+ZqUHzsa8PQO8Y=; b=MZGjYTDeuLG2JjSwHZtCrkuycwMmYoeNx2APZMrpEWSe3KhwWyM1x+P8qLg4Aogdga MSWq6z8S/Cf/NINaMaiHjw8SKIdTqQzIXMjZwaYHe1t7oBwxJm7/mAybUH1jjw0JsANl irtTeRGaDvoJ8xnthHREbFYL0guZ4X8AAKL1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720941042; x=1721545842; 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:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Pay4LHamcuM842Ez+J6dPA4j6b9Zd+ZqUHzsa8PQO8Y=; b=BIFygywmOIHZ/gTZiSgOfh11uba6KRnEMiVKnKJg7phfiP5Lh1blkNzbbJgqf6JVCT R/bkFt9Hiyi089qLtT35GSENTanAHVp3hrvqAPhzs7qVKHmlQISwkGe96ik9diRJEJj0 TeBpx41uHHpdwfVk0R3Wa/yxkoDqqDFS8wD6YK0U31AB/0u9J2MO1QJnN7p1xWZZxsIg DpCKboqV1TlUdzVr8qrBkuGfhxaBAJ8e36A0dzV3/e/z1Oa0oM/yHGRwqbCHlzKijt9g oW8gGaS8gIYwEyoI1vnQJIBrw8fNh1P74IVLTSXXaWRljOXDUFpNd0bTgjB+jihJzHyU OJ7Q== X-Forwarded-Encrypted: i=2; AJvYcCXjAvddw759WiEnSmcUmkR2/DTyHdTu8Rc4PVp+R0flOiXEcyvV4mHUbE/Zl46Jdjen9gxWi5V8F1MyVkTsTG3Yr+O9oiUuB0Lw6sAULvb8xsDneOotfBaNRAwuew== X-Gm-Message-State: AOJu0Ywcx259JNLAy7Q7/k1DzOOWEm+OLnQz+c/Ljmls7pps9OkxyQQW F0RNt7PahHVG+hSz7lfexzakVNHctkyIC+QNPKLcVq6aH0J2Ay7KONzzH8NEkNWgkg== X-Google-Smtp-Source: AGHT+IEg/XbYOcPyai7jLuYFrpWXSfXgj6vrVRw+IDKPnZHQr06HEmav+6leU2X9ZMMTqLL6zIPTcg== X-Received: by 2002:a05:6402:2925:b0:57d:46f4:7df5 with SMTP id 4fb4d7f45d1cf-594ba694c93mr9328932a12.23.1720941042147; Sun, 14 Jul 2024 00:10:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:cc91:0:b0:58c:3dc1:35d4 with SMTP id 4fb4d7f45d1cf-59821cb697bls1605494a12.0.-pod-prod-01-eu; Sun, 14 Jul 2024 00:10:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVlmNAogIuEs/0XNEsuek3LH8l5MCDUTW7jqfqulUztN/bwn9+2SpMt1J61C/teA6Q0P7QUFj56IpLePQhn/zioxC48hx7uZrcTlcIe/JMkzO2m X-Received: by 2002:a17:906:311b:b0:a77:bfca:da56 with SMTP id a640c23a62f3a-a780b705409mr1031498166b.40.1720941040520; Sun, 14 Jul 2024 00:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720941040; cv=none; d=google.com; s=arc-20160816; b=CiHUkBRwd/MoaRcwteIO7eHpM5QYiye87G1J27Nc4MwhEeFq8dJEaUJpzYLWm4ByXV mh9YRfOlFN+vk/E8X3yF00OSU0JzdmxuF1BT+dALcMlvJ7SHn+KdFrqyjWrZyyzl+apu 4PKTNAuLLjRo8f/Hj5F1ZEfBwCk2GuaqcSd5rh5V34gIcFwCL4f7QzpnLINSUakgZzRP lF3UosBcgXV+ISshawy9D+ef1kUfaVnB6hrIx8R3sL8Rb+glNQuS7nR6dfC13MzcZjyg 8wCZlZ/tHSziCOTLQb5IsLDsYYEkVyeebOfkHU2RMh3DLpLKyoW9+VI812KdpssgBhJq 0Cxw== 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:cc:to:from:dkim-signature; bh=bL+iY8GJscfGuPbpaMLJJRV7zDCCqvZpDtY8BSVmQU4=; fh=q01n3OcuKeKl0/r8AXXOX+Afd4hWHKI9zinz7COpJyo=; b=EmqsvHo72tK95uBfo3jH5Fvn3A+xRaYI+9aKC7QQfMVxfvZ8dgeLeBi3e/5B6u5Iza HvN2WWwx6Uy5TU1p/nkkP/x/yWo5zI9ONHSav2W5TFpkwIBqyyZafE8I7Tq5mcKrUuD+ 8f08XLV9dZMaw/rcSYOif5b033l/YROzf/ZCY/yjGfZW9dTbY78+48LeG89ybxGAo6IR +gtFVGQJy3ihKCcgmuJ5Qpf6onMzfnMEwWgcVaQwMOXPaaJyuA+EJgLGWq/FS5SpxyJg ijtevYNhlptfYh3kiaho2dW2/PHKFlso0sguZYq9hZelRDTGDfWtfRqfID9wK31VYNXZ DYnw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=O2WODHUx; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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 a640c23a62f3a-a79bc884c58sor42667966b.5.2024.07.14.00.10.40 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 14 Jul 2024 00:10:40 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCXcRkYfIlgm1z2rs1wE+MTQ0b07TKv40PqV8UMudd6IZb9vFqnpXY58EI6aIfhOSF8ri/ntw1JWXmJX9FwyTC+DKrXuTWxGLu7WgKOB3tEOMmms X-Received: by 2002:a17:906:1850:b0:a6f:4f2c:1936 with SMTP id a640c23a62f3a-a780b70525fmr1080160466b.44.1720941040100; Sun, 14 Jul 2024 00:10:40 -0700 (PDT) Received: from panicking.. (93-35-128-17.ip55.fastwebnet.it. [93.35.128.17]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc820d52sm104950266b.214.2024.07.14.00.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 00:10:39 -0700 (PDT) From: Michael Trimarchi <michael@amarulasolutions.com> To: Michael Trimarchi <michael@amarulasolutions.com> Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>, Patrick Barsanti <patrick.barsanti@amarulasolutions.com>, linux-amarula@amarulasolutions.com Subject: [PATCH 11/25] clk: imx8mn: Mark IMX8MN_SYS_PLL2 and IMX8MN_SYS_PLL3 as enabled Date: Sun, 14 Jul 2024 09:10:09 +0200 Message-ID: <20240714071023.10417-11-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240714071023.10417-1-michael@amarulasolutions.com> References: <20240714071023.10417-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=O2WODHUx; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index e089012477..31d2faa97a 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; }
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 <michael@amarulasolutions.com> --- drivers/clk/imx/clk-imx8mn.c | 8 ++++++++ 1 file changed, 8 insertions(+)