From patchwork Sun Sep 29 17:27:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13815182 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E848CCF6497 for ; Sun, 29 Sep 2024 17:35:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2RymkxnNQTDpNcXN6Qg1uYxhHB5JeOGRw/tDAC3s4FE=; b=mplk04qJPRGdTPAEVUsDoCWzC9 2sFNMDtj8FOeEfMXuvACt70LvgdlXy3CJ3WHlg4RcD1UJZBzTQ91+Tp1Y9YpZWs+NcA3BvqRXGt9a X4tik6Vvyrt3DEZxX0WBIX50DPk4+lLVw8TU8GyCt1vzrK8IPeQXN3SCJso1/E0tllYjb14iM+pW8 LHp6fLyPAA3wk0CzZRtcI2wh4J9o//Lc4ITryWKpXUHAt9vw/4P7cdf39hCzLAz19ThMOPoAS8TpS D7gzn+MGO1+3hxkEukzNshil+ZxJePJ/CvIBO8L5k9s75DlxQBhi3U6iSQsTQmoj0kdsYjdotCYVG wC6cHniw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1suxp0-0000000F71u-0AQH; Sun, 29 Sep 2024 17:35:02 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1suxi8-0000000F66K-0U7m for linux-arm-kernel@lists.infradead.org; Sun, 29 Sep 2024 17:27:57 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-42f56ad2afaso37360185e9.1 for ; Sun, 29 Sep 2024 10:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1727630874; x=1728235674; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2RymkxnNQTDpNcXN6Qg1uYxhHB5JeOGRw/tDAC3s4FE=; b=T4ZXS3BEZXyqmDwE7OS6dzwcMQCNmD0+XM90w22YcqQ0n9/BBimEYFfG47rmQodzYN cXUl3/+VxFUUJH3od6wBJS11rIiLTBEExG/TSjTzNAHEGeMtBYZ7Y9cBQ2u7MLdG0hKw KaViM/+RG1uxZQZP0D+c9bUyErsBJ03dcMoBM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727630874; x=1728235674; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2RymkxnNQTDpNcXN6Qg1uYxhHB5JeOGRw/tDAC3s4FE=; b=BN1oQNSbA2ZMEjt8jdH2PEy81xMi7WTqG2ToojcCZ2m1O7RLq38G3nZiStR/15BMFP H9q3DDJLwpDsQOMkFRAGKlNn1viLXtnjwjDXFJ7+zKsbkBbK/f5yOJO4rRaJsUCtTf8J dewlollYPqjNyMdRF58ZsDJ/z4dJTlMM6hlRng0NpDbulT16T9t5gPlF5G69tos4lAy1 zKSF8z59YH38vuf7LWeUEmqWxVAh8qMaEXT3r6pxYa4Q5Ff8ICRJc1jmmdU3GWTkcP9s B4XlCT8VukYkk1j+T/iZyDLwUPpLl9rqQ6uBd4iZ0ftrZJZItegAU/YPSLJ40rdlc7vZ LL2A== X-Forwarded-Encrypted: i=1; AJvYcCWWOcwtBrbZDdFSxuIaG03a/pt3EDjzide9UuoNG4ze3vx71b+glagZBeShkCf/fDBHeOXwzn6K44rIneekthIh@lists.infradead.org X-Gm-Message-State: AOJu0YzzXLcln7S9JQ3ujcDRD09Pwv4izzOC5KECxe5ZXeRK1pYWGo8q 1ejmF6bnSXKXgW4ELe6J/cCgrK8M+gxzNHXlF+HFkQ6PLupgXhAT3HxnUMDBh4+XCA90zsgPgca M8TE= X-Google-Smtp-Source: AGHT+IGmvVmD7fNsIntJU4qP6HHyGpU2QLRfhh5X/ydqxCTIJfv/+WNCG9XNyNBpNOJz5bNihD8xgQ== X-Received: by 2002:a5d:6886:0:b0:37c:cfa4:d998 with SMTP id ffacd0b85a97d-37cd5b1515amr8217224f8f.49.1727630874386; Sun, 29 Sep 2024 10:27:54 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-54-102-102.retail.telecomitalia.it. [79.54.102.102]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93c27776a1sm403176866b.8.2024.09.29.10.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2024 10:27:53 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Abel Vesa , Fabio Estevam , Michael Turquette , Peng Fan , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Stephen Boyd , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH v2 5/6] clk: imx8mp: don't lose the anatop device node Date: Sun, 29 Sep 2024 19:27:15 +0200 Message-ID: <20240929172743.1758292-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240929172743.1758292-1-dario.binacchi@amarulasolutions.com> References: <20240929172743.1758292-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240929_102756_174622_8BC449D2 X-CRM114-Status: GOOD ( 14.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Setting the "clk" (clock-controller@30380000) device node caused the reference to the "anatop" (clock-controller@30360000) device node to be lost. This patch, similar to what was already done for the base address, now distinguishes between the "anatop" device node and the "clk" device node. This change is preparatory for future developments. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/clk/imx/clk-imx8mp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 516dbd170c8a..b2778958a572 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -408,13 +408,13 @@ static struct clk_hw_onecell_data *clk_hw_data; static int imx8mp_clocks_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct device_node *np; + struct device_node *np, *anatop_np; void __iomem *anatop_base, *ccm_base; int err; - np = of_find_compatible_node(NULL, NULL, "fsl,imx8mp-anatop"); - anatop_base = devm_of_iomap(dev, np, 0, NULL); - of_node_put(np); + anatop_np = of_find_compatible_node(NULL, NULL, "fsl,imx8mp-anatop"); + anatop_base = devm_of_iomap(dev, anatop_np, 0, NULL); + of_node_put(anatop_np); if (WARN_ON(IS_ERR(anatop_base))) return PTR_ERR(anatop_base);