From patchwork Mon Mar 27 18:43:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13189932 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 BFD01C6FD1D for ; Mon, 27 Mar 2023 18:44:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=BmAY9mfEHTuIf13FSPixaJpShrrzVX18iHZdFSkfLxU=; b=16anAl6nZUUiZY 4mK7DPXUTXEsWrT137l7FeLOoqIWXKvMDUo9GA/S+j9CLi52lv3vx9FLZ6NG2UFewwcRdyhM+KZh4 2GkThXCUCmXbov0DpnTlMcxb5QPrsqrcCodlB+E3ml/TY2iOzho79Mk94RdkcS65vlb1sIsi6D9Ij Hxe2dqnyHNPFkJTRf0l3odp2pHe6gduOIwHQcr6dRtpDGTJowsYhW4LlazBBSgK3ez41HH31F0OcF SmjoXHq6gjd7UvvO3NVFvDbUflLOqDHN6fjNwKZDLL1Q/sRvdUrhHHV75kaQUY8uGE0rguWbkcoSV KW5PYgwWqOs5S+gC7TJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pgroT-00C5Q0-0G; Mon, 27 Mar 2023 18:43:25 +0000 Received: from mail-ot1-f47.google.com ([209.85.210.47]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pgroQ-00C5OI-1I for linux-arm-kernel@lists.infradead.org; Mon, 27 Mar 2023 18:43:23 +0000 Received: by mail-ot1-f47.google.com with SMTP id r17-20020a05683002f100b006a131458abfso2491428ote.2 for ; Mon, 27 Mar 2023 11:43:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679942600; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QiiBLEZPlQzu45k0Hu3yD+klHY/8gppuEuWQh0rwN1Y=; b=6djLpsf76zsGABHKwAbUOIFCNQlhSKuAg+rInEVXvG34Dj/FNqMGWKx40J9ZAVdfSH cCTD68mf8cV2bpbdhA+ZHr523sSlVhp30v35B0vDshXIq9yFP0Z4MPrfsol3a+z65vf4 tJFucO+ptHnLLFj9ZFZhDZ5fhke0l7XsO9gKFP9/bJ905N3fsOmTgdBXvzQWcEGSdNhK 9LyKYSXPXAQ0ToGo1iFO2cgZyD+pMyQCjJW2cw7RfJtvX7/wQoi+vJlyGUsd21Nvk0tV DrtrTYGW0Q+42i+4tverqTdfIio/ZV7v6qRZz47tvy6qX6kdLE6AC9vxM0V89EZtiEYe CnYA== X-Gm-Message-State: AO0yUKWwyHYg4Y9EeWXlDq8BXVaYcsm1ZwcoM/qvW1Xhmx/UP7zxZn60 aVU14Bti3zl1ay13xG2Mow== X-Google-Smtp-Source: AKy350a1+WSE/k5JT2iVmvW1QIunpD4icUcr0gou91cdXiN32HGnRrOZgGc1/o/6cRP8MH24qsjj5A== X-Received: by 2002:a9d:7c94:0:b0:69b:c852:4ab8 with SMTP id q20-20020a9d7c94000000b0069bc8524ab8mr5919552otn.7.1679942600225; Mon, 27 Mar 2023 11:43:20 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m2-20020a9d6442000000b0069f0a85fa36sm10526407otl.57.2023.03.27.11.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 11:43:19 -0700 (PDT) Received: (nullmailer pid 250774 invoked by uid 1000); Mon, 27 Mar 2023 18:43:19 -0000 From: Rob Herring Subject: [PATCH 0/3] clk: Fix/cleanup mvebu CPU DT node accesses Date: Mon, 27 Mar 2023 13:43:17 -0500 Message-Id: <20230327-mvebu-clk-fixes-v1-0-438de1026efd@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMXjIWQC/x2L0QrCMAwAf2Xk2UDX6gb+iviQ1nQL66o0bAhj/ 27w8Y67A5SbsMK9O6DxLirvatBfOkgz1YlRXsbgnQ8u+BHXneOGqSyY5cuK+Up9GG6ZXBzBrkj KGBvVNNtXt1JMfhr/azOP53n+AJQ6IFN2AAAA To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Michael Turquette , Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org X-Mailer: b4 0.13-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230327_114322_440501_3FBC42BA X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. 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 This is a couple of fixes and clean-ups to use preferred CPU accessors rather than directly parsing DT "reg" properties. It's part of a larger effort to remove open coded parsing of "reg". The existing code is fragile depending on the CPU architecture details and is wrong for arm64 (though the dts files are also wrong). Compile tested only. Signed-off-by: Rob Herring --- Rob Herring (3): MAINTAINERS: Add Marvell mvebu clock drivers clk: mvebu: Use of_get_cpu_hwid() to read CPU ID clk: mvebu: Iterate over possible CPUs instead of DT CPU nodes MAINTAINERS | 1 + drivers/clk/mvebu/ap-cpu-clk.c | 16 ++++++++-------- drivers/clk/mvebu/clk-cpu.c | 14 +++----------- 3 files changed, 12 insertions(+), 19 deletions(-) --- base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6 change-id: 20230327-mvebu-clk-fixes-f4a1365fa0b7 Best regards,