Message ID | 20240714071023.10417-10-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-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2A9974135D for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Jul 2024 09:10:43 +0200 (CEST) Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2ee81ff717fsf36570111fa.3 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Jul 2024 00:10:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720941042; cv=pass; d=google.com; s=arc-20160816; b=xAu8De07m04JKeYABkiifjywjllljo5bllRIn4NK7VixPtyxYtzFh1laISvmmS4F9A 1uiczkBrUT4S4fV3tEWhvFhAcQU1j4eydSBCiVy3g7JwQ8NgedJc1biK4snU/5R+Aai2 d4xi0LLQsMmzmpBEU0tq38sNN2BU+ISvCfii2LFf5Lhfr+tu2sQ1Zcxi2kF5EgTf/65C tskTGFArNXoQvKpJ/IvaIJlVpPvv2guOxZBfK/AAhi5I3O9dzCz6KVlgWfCqaO3re8iG KRp0nhxtqiZeWofjxM5FiiRZLNKufzTOVN/G1LTyUoKP4BZpYw7EutXjKUjHuWieMlzp j/AQ== 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=vIF3W6+H/29MWIAWRO5JlXMXvf2fIuRp7j4wrl5OUOY=; fh=AH9jtjhwFhFWX3jYhA8Xz0E9HUiAM0+jLCe8y1dW+84=; b=Qqmi+KgZ3ipcu1EyDu0tgEqc3uLU5TF7QNwq/IG4NL9W/We6LC6VMBknrMR61YFTNU 7peUuFOUetRsunNmoNi7IyOWmsDabm8nLffe2SE9m2SV/AtIr7RavK1U8TIcHVi+eWru IKVYdwScwF8T/OMgEjRl+wyyhh9Z6ModdPnGC6QmfXDRJQXZ3TGd4vFqjw/D7tQnhNTD GD7AOaF51KYJwI8m7Z6O/Hg/sVBPFdwO24kQa++X4wHRv1Oy73z7XOWwpQFY4XkL3JZr Ami87sX0VlmzYV3DYQlOcTm4TV3G5k1zHIRhcRVUzWw2enbaBRTehXLUX8CEAL/qzh5C QJeg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fmv7rG33; 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=vIF3W6+H/29MWIAWRO5JlXMXvf2fIuRp7j4wrl5OUOY=; b=g1DVQsww1/aN+sYsO1ubd4/aKpOkCN7TNyfwZPsfMQeFWxP1JhU7slX9+9znbqHhuM 0vL1DuTnjbxHWvFp5aIQ5ZMB9/tuN1iriXS+wwssrAORcf4cErA9m3dD73P3giHuqVRZ pk/Atmix0PFtOz+H+UIZNp6eTV23DUVJdXDtY= 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=vIF3W6+H/29MWIAWRO5JlXMXvf2fIuRp7j4wrl5OUOY=; b=dWE5Z4Y33NJBVoHF8mGtkGq1+NGEuxkFeI1bfRSzSX5NsWFhVVFoU621j3UrmuAJn6 vVp0QlFuZRQdnjfHH2FqfDtHsUsQ9s4gASbf3a2xbwDrUMrxYnLxDnZr7NPJsWDW3z+G ZlMLiegBP/GBDahMC/aivKI2zylAw3gbSdVY3gJlPFrpUhkflhDDYBannVbuIDLPFg7E zc9tzMyYtXjy0s3eBjmnBUQob4RN5goedAnQ0B++iGxBRthnjaoRu7hlObwWbih6zOz/ 9Ze59PV1zRG8jP4EPuTqM4cp9lJhm6Fxkq/7SFa9jXMZVYsCaD+zTU2jbL9TixYb4DiM rLWg== X-Forwarded-Encrypted: i=2; AJvYcCWg+26nUxBpmcRQZ5dHHh8u+RZ/e/ilF0Ms+X7ZRyd7OxGRwTXBLS7wnmyz2cBgiPTJYnaYVk0/EA9d+XjXCB6xU8OjMSD9A+TMGhPXb8obK2Hd9vuVrwqmv1dEdQ== X-Gm-Message-State: AOJu0YxWrDunC55gIXbeUQJKPUXCz320K2xd0FqZBaIdEfUCRkkyNHip +V1TkqOB7C9gRW7CCKKMo5lLULuXWeYDnPbgLxjK2mqjGVIFTIS2YMyuvkRAbe3Cqg== X-Google-Smtp-Source: AGHT+IE2NY5lO4QUlxJuZPcR0uwhV8qSLjHc5ky7DhiYzSR6XsBF4oGZOmg4I0rmuTk2ZfGsVnIl6g== X-Received: by 2002:a2e:a792:0:b0:2ec:63f:fe91 with SMTP id 38308e7fff4ca-2eeb3181609mr146350841fa.38.1720941042454; Sun, 14 Jul 2024 00:10:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a2e:b527:0:b0:2ed:35a6:458f with SMTP id 38308e7fff4ca-2eec8da5812ls14533651fa.0.-pod-prod-08-eu; Sun, 14 Jul 2024 00:10:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUfHeQmjiASqf8MFCDNk1R6Ym8QuLsQTa5cbWoFP0OLDrVIsPeYcrzGO8MiJ/g6t0829f1xcGr81IcBHSYxMue+r+8Ha5LDCzFesY9JwHSzatqN X-Received: by 2002:a17:906:d29b:b0:a77:c330:ad9d with SMTP id a640c23a62f3a-a780b8826cdmr1143186266b.61.1720941039338; Sun, 14 Jul 2024 00:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720941039; cv=none; d=google.com; s=arc-20160816; b=h24k+ckIFE1nmsYlA28dYEy27Wapjy8ekfsM2bWuujaMm2QG6K62nz7Kr2llV6EAXe IVOXJpP9F3OBrMVxylJNwMWlN5a4lO8PjVaikMHIBii/NKrjCPjfCx1DDFUjU6JiN5Vc 4+JfPJYN4jkM7v9mBFEt9s88OemEdrWEZNuuX0OGeO9WCL0zHfcKJPwqMJpDq5IbV0Ha NFxqHcPMm6vbud9fpd7P+vER+ATOrumdqXaXsuMg7Vv2BbyVJz+dFNkrjeDUtmSVZ5vS torxtk4ARD9zlKwd94QU/kxF7+9xuaOtIpyjO5rg3IXesxxTOgggOScXtGgrQxXiQm/X 2tWw== 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=XSpr8l2v3lDkCrPLrAQAobF17k5cHwQOoCp6wCJuW4E=; fh=KwmSWO14LTBF9TCC0iVmOAUqEfdJApxV/800fXUBf5o=; b=qybT+ekCso6HQkE0jsIMjjyP7jZcrICZGdv50d+Ck4Vo06RHJM8Z6vPNrTdKyv0Zam LGgM597Pp+LTDDzlCIzZlTbLIdOEWLcC3uu7KZTRW5m4vtgjhtY2+dorrFw+qp8jFi53 2TlX7XChOFP5bXE3ZemW0o2KTbucXP8morm1H6aRH12oJzhUjuw7+iCRXXpTD1kXB7w4 K2UyjBlZDJWaFwBOmp20+mrP1MYOrnQWSTLzny7rMgnRL7046XD9f5rZGqJj7yIEJxbb sSqg++bb3UUxXCWKud1ZT5BqSc3BP2DYjGN2gaOVJe3ihaWO6IYr2D43jSNaYmISiiip MtVQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fmv7rG33; 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-a79bc592984sor42598066b.1.2024.07.14.00.10.39 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 14 Jul 2024 00:10:39 -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; AJvYcCX7YCcolmSP+n1fqqeMZxXzRX38ui465VpWgS+qJAgMiZaEI7yPodrafeiNwDa7vlKfgURF9h1hfuDa/gra0A/BGt7KBZ6FC/JJR057wI0jRh31 X-Received: by 2002:a17:906:4a59:b0:a6f:ad2f:ac4b with SMTP id a640c23a62f3a-a780b68923amr930210666b.2.1720941038913; Sun, 14 Jul 2024 00:10:38 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 00:10:38 -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 10/25] clk: imx8mm: Mark IMX8MM_SYS_PLL2 and IMX8MM_SYS_PLL3 as enabled Date: Sun, 14 Jul 2024 09:10:08 +0200 Message-ID: <20240714071023.10417-10-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=fmv7rG33; 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-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 685e7df0e5..275f119686 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -170,6 +170,8 @@ static const char * const imx8mm_ecspi3_sels[] = {"clock-osc-24m", "sys_pll2_200 static int imx8mm_clk_probe(struct udevice *dev) { void __iomem *base; + struct clk *clk; + int ret; base = (void *)ANATOP_BASE_ADDR; @@ -448,6 +450,13 @@ static int imx8mm_clk_probe(struct udevice *dev) clk_dm(IMX8MM_CLK_QSPI_ROOT, imx_clk_gate4("qspi_root_clk", "qspi", base + 0x42f0, 0)); #endif + ret = clk_get_by_id(IMX8MM_SYS_PLL2, &clk); + if (!ret) + clk_enable(clk); + + ret = clk_get_by_id(IMX8MM_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-imx8mm.c | 9 +++++++++ 1 file changed, 9 insertions(+)