From patchwork Sun Jul 14 11:32:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3293 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 803094130C for ; Sun, 14 Jul 2024 13:33:19 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-58bd8406816sf3378095a12.0 for ; Sun, 14 Jul 2024 04:33:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720956799; cv=pass; d=google.com; s=arc-20160816; b=UOePUPjuwmTLCn4ztUN33UhlVARDWebvNYQ12Qr7TulBeASWECc32aE5b0CBFSBBZC nZhdXE41JzxC7lST1wFyZFJPdllQ7IiWDnOEbP/nOYJVERJsx5f/1RJRiizhMIK0A2eM iSuvl0KSWyeXD0+MvO3CGHOCj1xMXgXdPiwo13n7mGADg/eUAf8YE1eZtmoKm9YWk2s/ 5cddFbTQefMb+my8+1G4Eo8MwdUyDiQOLR+4fewb/0Q26HWd5ENpLOUI2Q1glL6VZ9UQ UiGkoHzAIRNVL7VCpqlMpL2nZKNoCFc+oxk2syh3CgbCAckwBHb3Tcyh43HRB5Aa/ijK LeNw== 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=E4/PHwezXzkY07MCYN8vbs6WgF6/teSC5uT1FrMmskU=; b=Fj2214FB+0gFn1gKEo1RIBeEXapdhxufrTAHNxCjrGSeZJWHHy2rCzUz3HppOt1eEZ 2U8XM4XMkbh+986AjULtA9/+yE+hvqfrFrTqZHqj3Gawak4i7spyVewaSpGIS/J+M42f nCqH2oFSB5L5AQay9RoryboTQ74i7TB13qqYbGkyQTwpSv6U7t/szF1rbYKX4F+pZhVW P+tDiia/Xmj6IpzoL4ZVUJ5HFnSE2vP8knjAOGNAKviL42mGMymM+zfl1w6cp9y81dpD fXRn29lIDZG/X5U6ozleGyFtabqEiUqT53mImVkyPrgQ7gTUst3dgUfw0vX5F5gG0LYX Ny2w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=M+AQEeDD; 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=1720956799; x=1721561599; 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=T02BweQGwJxn8iX37tSw0GuwWqeCosQxKC2Yg41HbqfI8FPDIswPNAIp46SMRCoQSV afSHU20t1CYBQkgPKyz0e8JqgIors0jH/s6vvPP9nR+t/r0KCDS5+5+bzSRT0j3yiGkA +EkFUdhbd5elFpa2V9PsYQe3Px+2+Hn8iFUFE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720956799; x=1721561599; 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=snZHwLKmiJ9gdeZM3/VK4FA4i2tE6nVHbayhFq80T0s1QoMKOX3UzZXysLUxJbtaL2 bP81qFXjqhGhI+7Ib2XE7Wp+2wbeHWM6WINv1ak8MgOueA2TInSKiRBMz/H3O+3LN1NG fUCOkxstsuqyKvPAYMYhwQzzujg9HCHyvIAHs55xWTtL+dSWyZVJ7fTtOeu5FwdpWnSh pbLucJ7o5lFyZlV4DKrAUslrABR83EZa/ETcI6HukFZNvosrHe/5tMvrxDwG84c3yasy cnPDZHu8bosRyLuHrQwlukoQ+3VXTq6f1sn30itWkVFsfIsyYM2hTkKf9sey9rBaZqGE QBMg== X-Forwarded-Encrypted: i=2; AJvYcCUAWtWmoBzcOnfm3/woaLnedleRYUHHgf/UulFZBYQ5o+zDV68gBJ1RCgKv7pD6T3tshe2W5Uy8LPPay+pGLz++0yJ3MWniWZxqilvISOH60aju2wvsQI+c+OcUHQ== X-Gm-Message-State: AOJu0Yx50huX/a5DA7R2xhnkjTCkdBRIhZDoPLJ0Yas8IRiaSwOSG7Cr MQaj3U9Siz7QvtZrXBxgZMx6GQ7HXjaSgqSyCKzc4sXZp439Q7xUOSK5GCv7xf2kbA== X-Google-Smtp-Source: AGHT+IHmdGBL24tveT1jraVOuiESdKndRCmTRzrNEPpMGuIndwFEmcz7Y1t9Gk0tI2RNJZx30AIh+w== X-Received: by 2002:a50:ab5a:0:b0:58c:ea9e:2194 with SMTP id 4fb4d7f45d1cf-594bb86a463mr9726818a12.32.1720956799265; Sun, 14 Jul 2024 04:33:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:308a:b0:58f:749f:1c6c with SMTP id 4fb4d7f45d1cf-5982622cf27ls1718694a12.1.-pod-prod-01-eu; Sun, 14 Jul 2024 04:33:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUewneY63hO97beVjScIwluvGC9RBJmCNiH6Qj3+4ipPvJlAnZbP9b4ooYRYIXzELZez09CHD4P9defjf1U2wYP2X1wNX+ZzO/OTN/er8UySgqg X-Received: by 2002:a17:907:6d10:b0:a72:5c3d:4d08 with SMTP id a640c23a62f3a-a780b8856a4mr1397562466b.61.1720956797615; Sun, 14 Jul 2024 04:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720956797; cv=none; d=google.com; s=arc-20160816; b=XDKfRTzLmsyjHTXUJsJPlx1vzsVj9nDDnbsQUpiTJuemsI5Bi5dx1ev+NUSoLMMbLI TbQTpKRZIrkip8JtGPINOmiHy3cb+PYku2rkqW+JsyNN8uu1S9bOA+OVFw6kR1yFzes2 07JYFYUYgQjXTfERmcdH76d31ud6LmOhdQt4hosJjwlkEBf1sadnllBfuUBVmSQR+aCV 83UtSKjSb96W8/PSGFptKmb6mf5U1zvhRtvFYTgXKKONxfGGys7Piz+k+JgkFN1uqzqb Hs5kv/tr7z7V0c40i+QvoHnTMTHUMvpo6O1RNbZBtPTsPPjwsuLpyWbOxV2nd48ydaqr CAGg== 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=GNyvZmrveEvhSZuC8Shf4C/8r1OQ6QpqSIJKgwedMJ4=; b=L7il3TgGbpoQApnaVFdxUwGzFoTJ3DKdwDH1y+92fD/6Z2dhk05RedAUjuFnAdegb7 QAQ/iV516n5qyAmniuLOvbGxVYtHJqqQF2JV4r5iICE3BHifKVuAOIwK33bq/ZzCkSfl prOGjhqqJR8AaFJqFBDmlWk6UEJlGDlLpeodUIgKxgay0ScLnKkFYN2ca/u79QTfXJXP +U/sMZtok+2+pwfwOx0BdwH0FbLDE47CLLZcZE0ou+9ShDO1zr0S83H9vd/whplErAas mLPzdje1nRAaKxZmohK3DcLnItpw5711+2Jhs/3K/NBbM3RR3dWCg1mP2bWAy9cYlN+H 9uEg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=M+AQEeDD; 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-a79bc8750fbsor47047466b.4.2024.07.14.04.33.17 for (Google Transport Security); Sun, 14 Jul 2024 04:33:17 -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; AJvYcCVSxQndPbXFQ8tNSG/Q+uRx16e8Kx5i4J2SloqioDWYAx8d1gLuCV02DfV3Kfxkt1NuG8sxFdoP522rnyI1iCxVItzP/M8wEmnKp2hr+nE0ouCs X-Received: by 2002:a05:6402:51d3:b0:58e:373a:26a7 with SMTP id 4fb4d7f45d1cf-594ba0cbb90mr13108329a12.13.1720956797292; Sun, 14 Jul 2024 04:33:17 -0700 (PDT) Received: from panicking.. (mob-5-91-58-211.net.vodafone.it. [5.91.58.211]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-59b25528dc1sm1929469a12.52.2024.07.14.04.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 04:33:16 -0700 (PDT) From: Michael Trimarchi To: Michael Trimarchi Cc: Dario Binacchi , Patrick Barsanti , 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 13:32:48 +0200 Message-ID: <20240714113302.133399-11-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240714113302.133399-1-michael@amarulasolutions.com> References: <20240714113302.133399-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=M+AQEeDD; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 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; }