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 X-Patchwork-Id: 7285 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1723245vqo; Mon, 27 Mar 2023 11:58:12 -0700 (PDT) X-Google-Smtp-Source: AKy350aTre/IpWFCd5BnwSz65nW4Esl73fvvQNilI27Xl9ZEFr/m342iOm9fZRlfhAO92Ot0pjiD X-Received: by 2002:a17:902:e745:b0:1a2:19c1:a96d with SMTP id p5-20020a170902e74500b001a219c1a96dmr11860032plf.23.1679943492033; Mon, 27 Mar 2023 11:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679943492; cv=none; d=google.com; s=arc-20160816; b=nRYGeTlczBbyn4qEisyQAEDiTzqrjKtAkhUNhl47VNBK3bUOUAAYDUVJqnJIh0oDuW ABXSDu7ofC2l7z+N1IbbR1+1ZAA8nAO7o4rasG2Vcx4lNf08qpRtJ4e+R7Mc8ZFqx8CP ToXM5v+18VoT/jvBZfkk2o1ubZYjC+GwDhGW0AEmVIaj2qkReDL8M+7m0zHVPu123lqt QHiGC554tUtDnr4XDC2g3gXUCaUVn2RcAFYojqBn06KwrJxSkNvmmxnLU3535Tb5vImD JdZ1F8rH9efITOm/IpE9TcgSfzbKG4WeO/Ptb2HNtRcSv4lgbbZDmB4eZkp4qSRvYTUp +fHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=QiiBLEZPlQzu45k0Hu3yD+klHY/8gppuEuWQh0rwN1Y=; b=ezw5mdWAybRytO8xVcvPoRdCQtZrdu3RCWTDptMCO8NFqvR9itDvMu5UbBDMDqPUtE QBc6bEkm6seHb2Uo0bVdtVaBBimgFGfPcLNz0cuuMSWiAHwTgnF7hQKg44Vs/TEcFx1U D3f7eVXiW1Z0M5r7zSeUOG0OQfoi5D/zZrjsSIr1rqc5qM4PE+sfRDaM3kmowzlIeYk6 FqgCb9pY/Ma/Oc+iNkGgm9RNwhvgJ6+LtUuV7OigDAu4ODpzJcpNlJuJ7cOA6/O9ssXb 4emWjkP4cZYpubbf4lUGx8dxvaiyj6SuVRG/Gz9JnlcOseRN23kqHBikbQAuPiQTc2Go ckJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r21-20020a170902e3d500b001a1f6d61e0fsi7973975ple.134.2023.03.27.11.57.59; Mon, 27 Mar 2023 11:58:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232666AbjC0Snh (ORCPT + 99 others); Mon, 27 Mar 2023 14:43:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232745AbjC0Sn0 (ORCPT ); Mon, 27 Mar 2023 14:43:26 -0400 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DBDC40E7; Mon, 27 Mar 2023 11:43:21 -0700 (PDT) Received: by mail-ot1-f49.google.com with SMTP id f4-20020a9d0384000000b0069fab3f4cafso5063079otf.9; Mon, 27 Mar 2023 11:43:21 -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=H8hObbVepyle4+RgAaKHAnDLGmbukYFuNwfACd6E25G6brwtvRDzFCCmUrLXTGk5Gn e6/6AofMBYfFTD0rxto5ST+X+0/DGRnuuF65DV5N2ZHib1RhkrWg33V9eJ4q8GrfMW0h 6J376rv+fP52atobRc44CGKsSTc8G7SGTQFDhVvCGnXnzpCIbxSY2TJxqR3Dul6za1i9 C0AO6YrQ2IawxUb5zqmeIqvyvvEpAxYh0AyeMZah5z1lwwuqCidux1pA4OVwDTUxqPS3 qTxTx9uRdJJU8yu/IngJ1Qem3XVzmbuWEtCp8xhabypPUC8l73nY0gro6HiPFsj12Tcp YIvA== X-Gm-Message-State: AO0yUKXhzl5pxfg/mxshvuCrryigmEPXuYnJYFpAvtWp2W9ZaohhuNRH /MtBOe7Ot7kECGDKKiYt5Ajrn/9JOg== 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-Spam-Status: No, score=0.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761548426687869493?= X-GMAIL-MSGID: =?utf-8?q?1761548426687869493?= 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,