Message ID | 20230328-dt-address-helpers-v1-0-e2456c3e77ab@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2481886vqo; Tue, 28 Mar 2023 13:20:31 -0700 (PDT) X-Google-Smtp-Source: AKy350YPrAeLX2AzyAKquNGoWDUl1/2GlYM4nfFOTKyTxxcEOaCDFn3jgLIvxEZH0nQ6sT7lV1pf X-Received: by 2002:a17:906:a04a:b0:91f:5845:4e3c with SMTP id bg10-20020a170906a04a00b0091f58454e3cmr17738956ejb.42.1680034831491; Tue, 28 Mar 2023 13:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680034831; cv=none; d=google.com; s=arc-20160816; b=Y+j9hlN8dkl0J78fA1Hv4MoYsJbCLGwsXyRjMEpqlppTk1apGb1wAKfaG1TS4FY4De EN2gv+0NfTyvpbtE22m8DQYCH7iGIEE7t2KnZfifg4PWGrGrR09Gi9HDdRrcZmtF+HEG Q5b1ssyc/6DRhGHHnLz9Ghjcgx5o9oqv8n+jgmHxfmg7TU0zWxb7FyA57nDHZiKN6WPg bQu1/Z3hQwoBF+jfAIb6yeCWFKCWRoTFBV0gzLaQKuCCx3cBT8Pjyl3pvkj488LRBoQE VrUzBJjZw0Cb97wC+aFVf2KuUDuz+gCdsY4tbkhUtGQmqR3P/ptf+XyDrY/SXAw/FWl5 AK0A== 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=LJY6pOPdDa4oqX5OXa+Badi5ySmgsIj2CbDDOIk/1F8=; b=W9sfdCsF71h1F/LhDgXyvCKtLdMYPRwgqGr4+47/6xktZ9uZb/PBdV//P5YPiEDRUe 4n5U4Nqfpl1Y9m78VnEI4WpQTk1ASLOAUfzfnPpYqgruS2eyY5RbmqCThMtAnYQ27G20 0KOPPUn03t1bxytm+B5hXvERv2MPmLzrwCp2AMWoq4AHGYHFWWb1x7D06bQ00qzZ7mi2 RaY/e3Vhq75xJqqOqR2Kh5RQuF3nc57oAL+WnPmq9iALrhlGB0kfa0RAxKgsKGo3MzK1 7Ld4Xf3pVkwA/ZaEx2G/ZES8jqpHdGvs2vArm5c11w1Asuw3O+UMykVukcTnRyh5JWsI e0Mg== 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 g21-20020aa7c595000000b004fc78b692c7si30338350edq.571.2023.03.28.13.20.07; Tue, 28 Mar 2023 13:20:31 -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 S229731AbjC1UQQ (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Tue, 28 Mar 2023 16:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjC1UQN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Mar 2023 16:16:13 -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 B217A3C22; Tue, 28 Mar 2023 13:16:12 -0700 (PDT) Received: by mail-ot1-f49.google.com with SMTP id f19-20020a9d5f13000000b00693ce5a2f3eso7058745oti.8; Tue, 28 Mar 2023 13:16:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680034572; 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=LJY6pOPdDa4oqX5OXa+Badi5ySmgsIj2CbDDOIk/1F8=; b=WiJTrU2iskz/zd2OuLc0a5V3v/lk457P47G6oCK1uFAbpjnyX6a4AIOZimGhmjCAr0 NV7dO3+gsicKGzwOMtLLYhAidt4jX8wZp8MaXv4bA0ndHhF66M/5gIA1eL1pCp6I3ba0 SZ46ZmfzuWpFA39mdcvKM0noS6l5Idr1vlwzj6lbA8aZcEbsJv3fd7YPqJIiiQ960M28 iusXNCCGR5LrXPSR1Az8lk+3Co4ICaCQTr4j/T+DC3nQ6eA4LvtK3XpSgRtVl1+jJcle qgNsHu2xdlY5JmLkONkcr0VeoXT52Rsuw/FRSHU+25vGwQS3p36+X1FRbJoLeOM7hLAw 8dMQ== X-Gm-Message-State: AO0yUKXK1GuHeJbGz/NFWLmEmhbuht6EY54QLQ/dkoPld2haf693iJF0 +IRz2a59K3/raN3ZnLTCRg== X-Received: by 2002:a9d:6d82:0:b0:69f:8da7:5463 with SMTP id x2-20020a9d6d82000000b0069f8da75463mr8887322otp.31.1680034571938; Tue, 28 Mar 2023 13:16:11 -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 l26-20020a0568301d7a00b0069fa776d3c2sm6931170oti.18.2023.03.28.13.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 13:16:11 -0700 (PDT) Received: (nullmailer pid 3993665 invoked by uid 1000); Tue, 28 Mar 2023 20:16:10 -0000 From: Rob Herring <robh@kernel.org> Subject: [PATCH 0/5] of: More address parsing helpers Date: Tue, 28 Mar 2023 15:15:55 -0500 Message-Id: <20230328-dt-address-helpers-v1-0-e2456c3e77ab@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAPxKI2QC/x2N0QrCMAwAf2Xk2UDXTRB/RXxI28wGSh2JDmHs3 w17vIPjdjBWYYP7sIPyJibv7jBeBsiV+otRijPEEKcwxRuWD1IpymZYua2shnEJIV/zyIlm8DC RMSalnqun/duay1V5kd95ejyP4w80lXgveQAAAA== To: Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, Stuart Yoder <stuyoder@gmail.com>, Laurentiu Tudor <laurentiu.tudor@nxp.com>, Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761644203799812880?= X-GMAIL-MSGID: =?utf-8?q?1761644203799812880?= |
Series | of: More address parsing helpers | |
Message
Rob Herring
March 28, 2023, 8:15 p.m. UTC
This series is part of some clean-ups to reduce the open coded parsing
of "reg" and "ranges" in the kernel. As those are standard properties,
the common DT code should be able to handle parsing them. However, there
are a few gaps in the API for what some drivers need which this series
addresses (pun intended).
I intend to add these helpers for v6.4 and then convert the users in
v6.5 to avoid any dependency issues. This series and the WIP conversions
are on this branch[1].
[1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git dt/address-helpers
Signed-off-by: Rob Herring <robh@kernel.org>
---
Rob Herring (5):
of: unittest: Add bus address range parsing tests
of/address: Add of_range_to_resource() helper
of/address: Add support for 3 address cell bus
of/address: Add of_range_count() helper
of/address: Add of_property_read_reg() helper
drivers/of/address.c | 76 +++++++++++++-
drivers/of/unittest-data/tests-address.dtsi | 9 +-
drivers/of/unittest.c | 150 ++++++++++++++++++++++++++++
include/linux/of_address.h | 31 ++++++
4 files changed, 262 insertions(+), 4 deletions(-)
---
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
change-id: 20230328-dt-address-helpers-2f00c5c1eba4
Best regards,