From patchwork Sun Jul 14 10:53:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3268 Return-Path: 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 6DBDC40F59 for ; Sun, 14 Jul 2024 12:53:49 +0200 (CEST) Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2ee8ceb0852sf31695461fa.0 for ; Sun, 14 Jul 2024 03:53:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720954429; cv=pass; d=google.com; s=arc-20160816; b=jy6p+EalH8GybPrCVPyrDXiGb/2wWzLAyD4zAFOKbyU21xlf3m4mfMtYL0bsEIve1f fw6XCpQ0mOVd4BobqrKqTAUGhqZilHsQJ9TNdVuvRDd6WNlXAYcjiSLodnygz7d4uj6e DAfr2cdIHFAGU3qQr+usaLVBhX33k5ayWkidDlEdqMxsH6gjy38TGL6Kh2DZObvfTG4T t3PEEXoOj7Cpz2g/G1E50gfgTVFZgQv47T2eV7U7L+pq5NmVMjXImluV4W0KvRtAElar yMgw/K2AAJf1eC6rkQKn/7rkr5oraf7HGHKjWyg5ER/xInsuxOekXKJhiMOTxDPWnEXN dckw== 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=z3NhXrvg5FsyUtSfrMvG6oRLdC3Rf9X+hKRy+UMOSVg=; b=DI4joBAfh86k4TjhJbuwp7HmiNHaPUX/63Kw2KUZV9b03BhBr+8TqCbixUSgz6UtpR mQMKc77dby0nOeNEPobcQJB5hc3InxpSmmJvX/WuqMQ4Kq5/ageByZxka2ky/drAnndj 8BQUJbVkZrbC8jBg9TLEFGcVKnCO+p/f0GVE2KXJ+AF+kR698+yd6t5kKiz8D7Jzg0TW cBb1H/MjJ3SUTMpD8Db+sBTLccvY83HS6o1ClRz1T8Vm2iniX7yo3NmrtMv+PCC/SRYn E49cKAYKuDN8eB9rvA7UElZHB/ICg1H+DWHNBH6dgfjtbgSKahpehlRM468eoznD0gzp MDlQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qOHnmikO; 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=1720954429; x=1721559229; 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=QcnI0FmhHWCx+oVl4XtBM1urEBX/UKt12X4Op3f/1X9nhnd/hTne4vIkVL0+7Bgq8u wzXPYdLhxyM7cWX811YoPzQ7ref7UtqugMCSYhox9OjrLzmPtbRlfVuFP9bfZdQVotrt XDkd3vhXUCBhqIlUQOP2YgVsNa8uBgI2EpnZQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720954429; x=1721559229; 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=hn7YBChinQaR1StE6EsIqQIXXu2ndT2Sc97lFTIS4bTmywreiYTAf/g0755A+FRRle htB3KXJZ+ueWyHVXpN9/dfjgWk/EL29Bdg9QyQO3XZtxiF/qwTE7yndvObnb/Y3+PMwJ fPGVM/K1IbhjDt5fq0C4NFugM6j2fKnzVpYBYgPiaSGVUbB+ulEqtdYNaijBJnfernDY IKFFQYBu0dK41rdqvojNW9qD3jPlx+qZOluPN1F9ZoS7BNrcAMUtbxA8lV8Is1YjtSmY IZcGw9eA+eZefrm2ydylCiAYOUWXvF9Wb+aV9dVbVaHZxKzurilUhQ8qFNXRmbQiMuWC cstA== X-Forwarded-Encrypted: i=2; AJvYcCWHr5kzg1J6zgPWjwaiE1pGBgBGLd/hone17Z9UR9amt7NcjeyqaabROtRHzft+1OYXOQzuCOFBH1JNf86iMexq+1XSSR0PtDQsHC2erGvlwVhwtlbRjZqptxEHkw== X-Gm-Message-State: AOJu0Yza6XCqH7MWYryekCrPb+kp1u4D72GTlj/tFNqXagz+NNEmiKQQ kfVz/TU4VblmUov9SS5MOqBvP2tcuLqXvPkmNKT6fmGgG/wRDmcgmXKlo+A9U1IMvg== X-Google-Smtp-Source: AGHT+IH+ARi0fFhKeowCSLUmuwcH4qRClKFV5Z+1S5uuZrT58sRI7LE7Ok9/IL1VGxA3DYBkaAwJ3w== X-Received: by 2002:a05:6512:ad2:b0:52e:bdfc:1d05 with SMTP id 2adb3069b0e04-52ebdfc1ffcmr10297480e87.44.1720954428950; Sun, 14 Jul 2024 03:53:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5249:b0:599:9c73:c397 with SMTP id 4fb4d7f45d1cf-5999c73c4fdls1077886a12.2.-pod-prod-09-eu; Sun, 14 Jul 2024 03:53:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV9ccW3f6oUch/dtkGWLIG2eTxP+iW1Z/YZm+xL5vHDMJ++Os863DjIoAU5YC7bPztDlE8skgx8UU7X+R8rEvYuULGlW4/oAM2zTPlCkzNmrt3y X-Received: by 2002:a17:907:d90:b0:a77:d773:54e0 with SMTP id a640c23a62f3a-a780b89ea4emr1399756766b.68.1720954426247; Sun, 14 Jul 2024 03:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720954426; cv=none; d=google.com; s=arc-20160816; b=eV6kaGjIO/6YkmLr6+6ZXsQwjYWRLfOmZzNckAeUvzvlV7tjO8qdAQKH3NCfE21qB9 ymY37Ng+RPi3hr9QINy5pZbLKKV1RjJdEiR946AxJHSYxMieE+xo/wiKysMRLCTp3A+H EX76iqoNYkiwNZhqhAXzOVkAbydC6ww4z3Cv5E73WgECELiRIcsFJ66cbFeedXP2e7VY 2dWeNiQcLbbjGufd1qBIB5akh6b2rCklOVbmBVsZziBDxOMWPlqjChkPNrodykNeMkSk l01aOod8YiMJ7Y3CNb4AUTekEdghxSxWQMOcwtzGr3QI+HnrI3sDHAO47aOKDATlyHmo JmRQ== 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=wX59N+y5hu6QK3PmiqtUgGIZ3+6bQskoMgpOnKaJtaM=; b=a2FScUKyUbjDbYenZy16GryGrV0axu9xeKLwuf51vPPCHIj70xcB3HXNM/DbrFKsiD SUNJLGPlb7jMFA134DRpjbd30d4TtNae3u31c078xXKO9btTqiwpVdWjyyBGU3gBJtab D9A3Mynwait5Dort9MQ3PPmtHj0APPUkcOqwcMGfrcXVqvrxMHe4s0Ye6CVzHMTwfH8p qZn9kr/WsqsmVMVHA38zsT0Hsy/AtK8acQUm1bp52nEThUd7hTq1SK7l3xExTwKyXzrs 5dOA7lWGEH2V3DOFJxZlZN6/QqH2Qt00CjxpZaGEulpjm3lwqMBckZaBT2i+BbJ+dQa1 /HrQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qOHnmikO; 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-a79bc86acf6sor56900966b.16.2024.07.14.03.53.46 for (Google Transport Security); Sun, 14 Jul 2024 03:53:46 -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; AJvYcCUa7iLgfWsMTfBAoOijGEC7GNvnsnc9ytcbzNL6iD/jLlT3mWG2FDpcgoxOXkqTD7gAAv3szyf2ic9+Vtv4ugevxpmKIzToQ6N+mqCnZObQvxmn X-Received: by 2002:a17:906:3396:b0:a77:e2b2:8ef with SMTP id a640c23a62f3a-a780b89f41dmr906133466b.70.1720954425732; Sun, 14 Jul 2024 03:53:45 -0700 (PDT) Received: from panicking.. (mob-5-91-58-211.net.vodafone.it. [5.91.58.211]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc5a36c7sm119966166b.7.2024.07.14.03.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 03:53:45 -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 12:53:14 +0200 Message-ID: <20240714105328.35825-11-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240714105328.35825-1-michael@amarulasolutions.com> References: <20240714105328.35825-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=qOHnmikO; 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; }