Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25688012rwd; Sun, 2 Jul 2023 22:55:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjGQLHj96h4oksQDoODpePRNP0YCCHA6KDw4GnD7LmaRO5cnRpvAUxLlyuPrh8UkfZNCY6 X-Received: by 2002:a17:903:32cb:b0:1b8:7265:9289 with SMTP id i11-20020a17090332cb00b001b872659289mr10848179plr.13.1688363738689; Sun, 02 Jul 2023 22:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688363738; cv=none; d=google.com; s=arc-20160816; b=YPDcTATCH3GcOotJ9kczPfDHXZ9Ala+WlZLEBvPSh04uhG3Ou2oPbH53IHq8stC/Uc qLnrc7bqv+cxZEl5X1mMyihoayv9pDzuyke5cfF4cdQnx8Rldg4xKNhTX09x5kS70F7+ foe6JQ7uvyoAyNVluD51CpjD2uFSVfRnefbcg7svdgzXcC3xjbSWGedRAVMWaQjSNLiU IUYUqFLRi3y3j/yFN3d65ScmOs4xrwue3TJ/vV4xXboIjT0f5SgfNF2iYefXIkkrGGQV DwQCtmVefDRsJUnIdHAXDkWsf/rMpiSa57LrJxBFFOZbZBKc9DXa/FGnvBKkGFK7a2++ czmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=L9iJ1WiNLYi4H8zg23o3uXYR0MXbDiTI7GuV4CjpfH4=; fh=NQC3btoZm7hOeq+R9HtYUatZ6+bO54fM90qYO6MQxlI=; b=ei/wWW5lM+fRcJCxM8bKFgu1lJ2Q5bPBmGpvQl/F67QF3yFpgJO3+4qB7mB8llR2hS CnVMNh/gS3SDLJucpZYW1m4B8AUk8Y7s2h78eirQTASP26iVKSz+74yODglltsJwQxb2 OqcqaMubUCzu0JnMiFD/xGINaBaT74iAIg4ZE71B0Bhp2lX6F6Gqw/xbIPTs7a8Y50H1 zmgOMLcofo+vZSQb+Jtzxf0AFTh+mvmCU4sZn4WKsWXUAELjLhhDNJD/QcVHfWxAAUGJ bu2QjuBmqtCcNqASBIl5UwqILNwMmXmOo1FynTfrRxjqZFehFJVQV2t7tomxbJg/iYgp Ydbw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a170902d21200b001b86e15e56esi5990383ply.65.2023.07.02.22.55.24; Sun, 02 Jul 2023 22:55:38 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230160AbjGCFxE (ORCPT + 99 others); Mon, 3 Jul 2023 01:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbjGCFwu (ORCPT ); Mon, 3 Jul 2023 01:52:50 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9DBB2 for ; Sun, 2 Jul 2023 22:52:49 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4QvZp748N2z4wy0; Mon, 3 Jul 2023 15:52:47 +1000 (AEST) From: Michael Ellerman To: Nicholas Piggin , Christophe Leroy , Rob Herring Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <20230609183244.1767325-1-robh@kernel.org> References: <20230609183244.1767325-1-robh@kernel.org> Subject: Re: [PATCH] powerpc: fsl_rio: Use of_range_to_resource() for "ranges" parsing Message-Id: <168836201902.50010.6190167965224825737.b4-ty@ellerman.id.au> Date: Mon, 03 Jul 2023 15:26:59 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Fri, 09 Jun 2023 12:32:44 -0600, Rob Herring wrote: > "ranges" is a standard property with common parsing functions. Users > shouldn't be implementing their own parsing of it. Refactor the FSL RapidIO > "ranges" parsing to use of_range_to_resource() instead. > > One change is the original code would look for "#size-cells" and > "#address-cells" in the parent node if not found in the port child > nodes. That is non-standard behavior and not necessary AFAICT. In 2011 > in commit 54986964c13c ("powerpc/85xx: Update SRIO device tree nodes") > there was an ABI break. The upstream .dts files have been correct since > at least that point. > > [...] Applied to powerpc/next. [1/1] powerpc: fsl_rio: Use of_range_to_resource() for "ranges" parsing https://git.kernel.org/powerpc/c/c4ae1799a5a358388acb610512c68666f8758364 cheers