From patchwork Sat Sep 28 08:37:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3532 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 2FAFC3FA6C for ; Sat, 28 Sep 2024 10:38:24 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5c88517dccdsf779399a12.1 for ; Sat, 28 Sep 2024 01:38:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727512704; cv=pass; d=google.com; s=arc-20240605; b=Aehehd6fdMtiuUuzBoRFEzHgHL79fQxp3YcB93ZZqvjczGwbyrdsR7iELiA/HMDKTj j3pG9EDbqBppykYFKboTq2asglAtsgzOg1yrV1rzeIJIcKJIVdJaKy12Wd1vZw/s2bVr 4KQFRz6aCbO4kslJ93MxyXmRYhmdCxShQ5diQaMNcJhAay4kmUfpHD4b9LvH53XGSHBx aoy7kYTGxAYFjclGDSgr0k382qHvQ8on9W9nP5qLiw0Sin/NhUbjaKFcYoDUs895Okd0 Rtc1LjmzE210r0LrQG7VpYi9VgMxMUOVUQWKoxNG+w8Z+o0HVYbNC14ZYInCm9K20hIw c1rA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=wWH3r5nyj1A38s699399Zsd8fI1nZpcg4gkM6A9Vx1Q=; fh=/HCPnKhfCVbC/WkiiMXm7W4mYkZZ52w5kDpxHULb5HQ=; b=kPsnWvVu6uDGbQUHz3j/AsZxiCRXpEGOEreVQkee6Gl3miBI/XJethTHZgPg86SfpZ tw8S0xP8uJK3z5ouqvB2uP9L/8mMeTOiVPOZouYbhA1vPY/HPlhVWRed3nJ+C020+bPW 0g66BDUH6/2XEIdBkWO+Ltuw0wO6j08Vy0CvdChBVe+i6MZ0sY2/q5TAno9304nCTdSu jwF1ADl4J/MrFdTuekOgOPNY7Hj8BV+abLBZly85iEZ4p/IRNiK0My0pKpNXdZCgDTAh vL8Tk8QsT2wblaoZsNe7Pk44or+uG7QkvzGvTJc9/FDZYTJU7SoB8uZv9qldHji88Jb8 EmVQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hgncElqX; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@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=1727512704; x=1728117504; 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=wWH3r5nyj1A38s699399Zsd8fI1nZpcg4gkM6A9Vx1Q=; b=DYju+N3sDZVgMJj0PvWyZmW7q00owdQVQi6TwOOUIGCtuTrWBZxhikGTqHJLWFAVaZ vTptJUgk+03zmvADpILhcd+VtdyWz41w6TCRRdbgQKLUKzCRkn2sy8mjQ7uLkTOTCaqp dokyU49Pj/gAnxShHqQge9pHON394fOSwfK8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727512704; x=1728117504; 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=wWH3r5nyj1A38s699399Zsd8fI1nZpcg4gkM6A9Vx1Q=; b=ii4zw0JCkVs2/hPKIuKM818UnDgsdtkk0dDs1kDZ51fuCwd0iwZpYroqwwFasv723U yhD8hKfXgaPxB9ohv/Y1IGns//Vz+gL0Ri5WKJ6t8p0wEkjxJmyQqYrvvQ30OBDbOqhp SOeZI8IcB6f8FMNtXH7t5vv6ICtGTElS94kQYDfugf5rqZJeNhdSzRQVLMIFwNriGYx8 mFhVeoRARS7I7HXAFggDtpAJvCdCOOHQ4VccFSW7owX5w+bVhiQ3Qi/0i1iSuDgPSNXT bhrzQKMrdbuJYrOC4EQTdTZO62nU76nfEcNMqnS5LM1hx000H7FHVApJ4qp7Eod52CJU WMuw== X-Forwarded-Encrypted: i=2; AJvYcCWm05aECv9+uOG+DQ6dFPjPYrBwhzPNeSJghiJHlpavRg1wJKFB1ig7FMjUjAPGFXadIqlSpSIvgxodKl6P@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yy1GQLVBRGJ1gxAMtqtQ6CLIwldt9XRAZwkeNI+74bCyafLIOfd bdsrPapyJsVJVt+Ef+SEr3JXZdkFvGuVhu55GUpTST/F2bkDDwmWHpb0zPqOYGGRlw== X-Google-Smtp-Source: AGHT+IFM5T5NdcE7mCx3wX0+kR6X4JhS04Q721mLQgpsBoVzdnZ+j0vREdaghCrjtXLpH+HZXSl0jg== X-Received: by 2002:a05:6402:40d2:b0:5c2:439d:2042 with SMTP id 4fb4d7f45d1cf-5c8824cc640mr5078233a12.5.1727512703768; Sat, 28 Sep 2024 01:38:23 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:26c9:b0:5c5:bb82:b1cf with SMTP id 4fb4d7f45d1cf-5c8777f335bls628183a12.1.-pod-prod-07-eu; Sat, 28 Sep 2024 01:38:22 -0700 (PDT) X-Received: by 2002:a17:906:da86:b0:a8d:2d35:3dc6 with SMTP id a640c23a62f3a-a93c491ae93mr513876566b.26.1727512702262; Sat, 28 Sep 2024 01:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727512702; cv=none; d=google.com; s=arc-20240605; b=IVrQFwOqvVWbt837NTYHQkBmg7LWGFy1DKjAAhVj4J+ulM49blPUViVdzW9Hs7/9WW ivZ2ScdMqvq1nrekEJNcLxL+EhU0K/2IMGre9A3W/PYo9OoHKo1ie13MtM8dMnIbU54f WNmxY0IQGLC40cmcrkne8QpdrRRFvWFxm6W0TqAaNA9b/KZW8a9uyy0x3qo3iWi6Bnsd hFxVpWqerVpn2aGNfGoA0KKX11NNPNPVZro9HPArzptmJxBnRGlOVSaIsWRpLFVNyGnd S6MTXyhyMUeu0maUsjoHobFw/xw/s/FimtJm/c69khKOSRKu340pLXgugDKwzZAe3iJb y/vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sANYTc56l1dzuSb6OkWAQtijEDV1flO+WLT+P2kRW58=; fh=u/u80m6tBSaxW7VWG5AQatIbYzkIAnRGhZp/RTASK5o=; b=WuH1Reu3qGbXevrt/15uflr1SLZ0Jx2GGFM3xy3L2V3lj9QI0Q3YxnsBVFk25S/pUz 4ltwHlDzWCS0QNK4gZsyvt1RVKky4n/UeXMTgsbdiOCrDYz2PJ3PrmgalQs0BeRp7dSs kNh8x5zvUgu/thNnNacUAZ5MANSwRsQtmM0QrMs4GpB4zY31bYuQ/mqR6I3bcpaPPhnp hHwF3gyQQIBw1Yl7ggk8IERscv2kjGuVfTI0xH1lCJigGXMsEmdSX1Mk9B8rj8hLYoqX 8Fhd2xaUKaOzgO6jxPw4dQeALlX2ABjYhYB3XEr09RS24LVpyTEnM6cGLmIWQ2jooQqZ MzcQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hgncElqX; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@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-a93db801612sor29353566b.2.2024.09.28.01.38.22 for (Google Transport Security); Sat, 28 Sep 2024 01:38:22 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:fe04:b0:a8b:6ee7:ba29 with SMTP id a640c23a62f3a-a93c4ac9401mr576566566b.44.1727512701885; Sat, 28 Sep 2024 01:38:21 -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-a93c2947a48sm223679466b.118.2024.09.28.01.38.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 01:38:21 -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 5/6] clk: imx8mp: don't lose the anatop device node Date: Sat, 28 Sep 2024 10:37:53 +0200 Message-ID: <20240928083804.1073942-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240928083804.1073942-1-dario.binacchi@amarulasolutions.com> References: <20240928083804.1073942-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hgncElqX; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@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: , 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 --- 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);