Message ID | 20240713084526.922537-11-michael@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCXK73FY3AFRBPX5ZC2AMGQEUN6HQHY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 731DD40F45 for <linux-amarula@patchwork.amarulasolutions.com>; Sat, 13 Jul 2024 10:45:50 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-58c08df32e7sf2219341a12.2 for <linux-amarula@patchwork.amarulasolutions.com>; Sat, 13 Jul 2024 01:45:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720860350; cv=pass; d=google.com; s=arc-20160816; b=R8uYa2FrjTihc8CZn2fgSOYpbuEa+4smEGPZJTwn7gGQAcWjLsClWlNy202h6Pjqtf mW0SCw9mWeIySNaPISI39RxlmGNUdHxZD7YBRwGGDTQhpjOx9YMLwTUiYFxB55EISoYT TlHo5vhQkltjSL7rxBASqi+Z6i7cZG0E/9tddDk1H9JG7v3QTrmKwZHxTtVy8oIWr9yF TmFyulrtnV7vlTbITb5AipJ30vXfe7IfNXn0Oo5AKHoxyHaQv4+uIUIon0AgSPCn7obh B26xOsNQZ6W9sqfNuxyPxkyM1m9nJl3PrrlzIAMm3PVEUZF+Cmt6elSkIMouQX71f23s Aw3A== 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=1fK8/bzBuE2l5WTYetBCV4X93ie/gLvLDekwK/Rk0VU=; b=fFuFby9wOmQcYq5AWNAZfi+ySKwbmwLr8IeQD8rnY6aeMuOfiJOyIG3pUxnraNGM0O rfDxJs2vJNdVj6KNvYAE2mzfEO6BZCNPECxCnXojldu+3Bpf6x/iImj61FXcYu2pqEol 3zVCk5mdwIhplJG3dKKd3/pvy1YY+zW1tnriigEURhvDcAx3ibod+NHhpKl+Ff+bD7zc te99I2XP/R9dsBm183h4xOoXjvOCCDclypQRB0A1cksc6HUuBZ/PW9LVEdLu4sMjgoZk b1El+SsAHKb0PwIE6338ML1x8LtlwCZTdyHwkhb84cU2GzNgyag+BqT3YhKCOis4I+bF /rOQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CNuhW4xb; 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=1720860350; x=1721465150; 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=AVY7c60UlIomhkgp+zzt8Dafx0MWRHgMPlLcB5XEEdpIPTVMuaLX1z/ZX9U+MnrrAr zDYUp+gMA7VRLw3QyM9+6CsJI/y4SzMi5Olz4Pm27+FWeJQkj1wEPbXMTFE1XzbT5ZXM 1acqvT6nFcKe+0HncrpUSrPcGrfhB0MU8pQV0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720860350; x=1721465150; 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=I/4Klr18puO/1/rCpC8yCNeDU1JFxzYAKGJNK508XI27teE/X3wtlh56zS+sQUdR2J Rzq40rJag9TgDKG4E06HZ0O9irxBs2EJIjg1ICdQDWSmfceph4ptuuhmIxggPBMOQvXZ y1wCY7Akp5JLHoPF9XmFsTgP9We9svn03NNBIm2LrEQqIHfHxtdQWu02tiAHZtFCzl5V 3fepXEb9q9FZlr7TwrzMctDeKsfpBq/0MFc5YfgVDzVP9u0t+/0m6rdInJ/g9kAbKdNA ahq4D/SUKzUwWQv1w5CYsftm+CHvNRHtQcNosN3jrCKm92ZQdQckqGxrg7hk6PZDnv4V hf7A== X-Forwarded-Encrypted: i=2; AJvYcCUVVW3YNcFDk7RVJJCfIm7K3Yo4QgwGs3A2aUmg0NFqW7JjMCg0JWpgqBTLZIoK9OFkW+NkPFsL8JjSu+SiaTctZ4e7PI2txUiEnC0VXrn2YJskcOZlv9u+9sIVUQ== X-Gm-Message-State: AOJu0YwXWsCxunl05q51/fnLTGdsVsaC5eaMJSyLmQxEo3BBB23OYOc5 38mfIpnUeZsBg/haw1EasRRkyvDxx54n7JnrzPbj91NIel8SrR0ifytxdPUCmuZYaA== X-Google-Smtp-Source: AGHT+IGIHir29ib0wbpNMBsRwkUeG1TFFPzUDMde+qXCrwJzK5RXYx7qlAblaViRJemCxa2oPCQvgA== X-Received: by 2002:a05:6402:1906:b0:57c:cba1:444e with SMTP id 4fb4d7f45d1cf-594baf91412mr11696520a12.13.1720860350176; Sat, 13 Jul 2024 01:45:50 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5249:b0:599:9c73:c38b with SMTP id 4fb4d7f45d1cf-5999c73c444ls778556a12.2.-pod-prod-08-eu; Sat, 13 Jul 2024 01:45:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVCiVVcB4YVMMMGOOT0gP6WA/tECwReQZFe6jekxlgd50E72IEbDukVChqThUbkgBaGLkbwg2/iO8rTHCh8WQnikGC7p9u91kYUfu9C7Qsr9sfk X-Received: by 2002:a17:907:d93:b0:a75:20f7:2c71 with SMTP id a640c23a62f3a-a780b6ff667mr1372698866b.38.1720860348489; Sat, 13 Jul 2024 01:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720860348; cv=none; d=google.com; s=arc-20160816; b=ESfe76CUTboQVeL/08bfycyZfNH+1VSbzzxqwnfxKAK6hkop5LALq0IV143eeBYHa/ YmkTxI91mwNAat65RpULXgAo0ImoNU4fR6ZXwu0EZt66uA0Hq1e4xab+TAZ3lNWW6KHe ArdAvWHf4e7JZyWTNMaGV0NnvoCj4oSMQBOJT+7o/sRins1g8c5ijhQspec4ouhE2AmO lRRVfxZq6j86UzMlkgPanTjERtMsNB9EJBsbHnqKgI5jauc/XJFPP//Ebeny5LH3zp3u mgReXpU154rbTlyDvXfBtTYDVjfi2cGqS2fKkCOI/Dvpg2B7qSl6DxqTmH/P0XyiIw+4 arRQ== 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=Ie9Prfp0coxpk/9nHPJ21PQafTcQFrk8Cqo2w1dhpcE=; b=eC3MabXCR1dAStepb4upXi7S5QWMzttXPR2vmBGmhjFyWjVypgxynKQodzdeuZtHOA aLdVoJq6hS+VlPTnFJ0dZig36JcephouQYnDlcGOybA07ela1zQ8nLUGQfI+Vr/W9tef oiPd/j32zGR1i54bn16DWa4dWo9ZpMmQYX68sDwXXZHT1Lj7ZUVyubs8X3ev62MZbR+e BAhHA811chv6/Hdvn2WXHcTJz1m4zYTI9A97mq1cmSb3S7SHL4+fd/OKEYgsfeubO14s U88eke5uB6EaICwSleSY6hzA+ql+z6PpTRDCNKyH0JgKDPrS9b2wy2YRC92qTEVgSgnU mnDQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CNuhW4xb; 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-a79bc5928d3sor14249666b.3.2024.07.13.01.45.48 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sat, 13 Jul 2024 01:45:48 -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; AJvYcCXFhgfvWZ5/JfSdA/LaZmr2FaRwBLA6rCvpJ32VVsZriw8eHkRspcCDcs5LEdLaQb7y07+i26D4z2NvEVOpSgxSWui/HXG7yTtu3Zhv6Iy/6Jwi X-Received: by 2002:a17:906:b898:b0:a6f:5f8f:6c43 with SMTP id a640c23a62f3a-a780b882706mr863513366b.56.1720860348135; Sat, 13 Jul 2024 01:45:48 -0700 (PDT) Received: from panicking.amarulasolutions.com (93-35-128-17.ip55.fastwebnet.it. [93.35.128.17]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc7f1e20sm31483966b.116.2024.07.13.01.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jul 2024 01:45:47 -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/21] clk: imx8mn: Mark IMX8MN_SYS_PLL2 and IMX8MN_SYS_PLL3 as enabled Date: Sat, 13 Jul 2024 10:45:16 +0200 Message-ID: <20240713084526.922537-11-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240713084526.922537-1-michael@amarulasolutions.com> References: <20240713084526.922537-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=CNuhW4xb; 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(+)