Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1665171pxb; Wed, 9 Feb 2022 01:36:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDSBqy/j6c/CvwpU5JNdy/Mrmd0xrOoDtGEqL1Q3WTIILAjE9nfJXzR8h07r0hQfkcFeVP X-Received: by 2002:a17:902:e94e:: with SMTP id b14mr1562884pll.114.1644399395076; Wed, 09 Feb 2022 01:36:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644399395; cv=none; d=google.com; s=arc-20160816; b=LyG5wPLBGJEmltfVEo4foBSh99EFhoH2b8kxCKNHoniRyQYoDgTuoCX4ChqSmgGW9/ eZwW+F/33nbNfxprc64TVVmCO+TKRuUREKytFubXz9rSn4jzVMWEqaTRfTwUkZoNrj+r amwl1s+qWaXarl/prTTxgoglzEK2zypKzjIhyXCDhKZeBnmHWVKpaTe8zDgaTQD6YSoZ L2Vjt6FQYuYgKLa3hHMIVb+y+ATm8vVc678pYH7dB1JNqNQsD0omigVNMx8u0wpskXft q2ii9NUb7UX6Pv1/lBQ5n29EvR5inaaSKJWVmwMAn8QKyadCDB1pVyYmYuRpo3Rosr7E 65bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=JKEpmflaidRrkEDE3CwVxZS8Wmwb1nExeoIHOzcb6c8=; b=bFuHoIUkfWSOlJAR+hOTOl9elW3WHnNyIjxkTvcmlkGpsVvwZDy0lUz8Gku3IEJxA5 LWNNhErTK3VCOFNYJgMU33qb9hxCizumOWh99WVpp2KfIeBi6NZEN2qZyQJEcMftHmt5 yvuD2ezsgTuObZIYxlIYcDuIqADNgQ6q2NginCyKOXaMEXPGaVVHzHpjr5PNH7GeB7LZ tVHyeKBRZJKz3andIcPFyMAPPnFD7K4QhLu3CwPvir0hLjxRjKsL+w9zUHC5ASsq+44V wyF0vd47BHlh7upAeiCiJ7T/QRjJHpeNLxt3NUHJysEYSymtas2vVfKJ8QJaiCZoL/D2 QRxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZCLJnZay; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v12si13185678plg.294.2022.02.09.01.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 01:36:35 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZCLJnZay; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4EFC0E065098; Wed, 9 Feb 2022 01:01:29 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353693AbiBCVuq (ORCPT + 99 others); Thu, 3 Feb 2022 16:50:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354869AbiBCVui (ORCPT ); Thu, 3 Feb 2022 16:50:38 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8112CC06173D for ; Thu, 3 Feb 2022 13:50:38 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id i5so6284189oih.1 for ; Thu, 03 Feb 2022 13:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=JKEpmflaidRrkEDE3CwVxZS8Wmwb1nExeoIHOzcb6c8=; b=ZCLJnZayoNsLcHaxjBTl3joL2ikU0JrEcehwUqDsKZJgRMFR6r1dlwoGg4yU5933qx Xd1MP60u3O33CxQnuv6IdxJw3Oz4e561GiYeoKyx2gEZmUseQ8ndnP7tGGPeOBIA4epo AhK7FcMf3Dy5vkLJFVzsHkkvXzJ/4Y8aYob0A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=JKEpmflaidRrkEDE3CwVxZS8Wmwb1nExeoIHOzcb6c8=; b=k9mWiAHyR7OGdYwhABARUHMm2akyoIuuRBg+KmMOu4Ws3I5iODPr07xBKh4LPYlsoN Ovz+XpEkxNuktZgBWcCkW3uHUTeMltx1MoTY2WI5hi4IwpZbxuIPFhqSGcnG+TDytb2W PRYV92nGmRIiBcEGx0Km9KsYbxj13em/fI6GKvqWI2yLKA3zgqCK+oBPNdPyLZ+vetm4 1qLf9dQiNv3f8qsfAwqjK9FKa4Yc4fPlWrPjQCgj7VyYvdWJZXaPUb4B0JlTferfrU10 XBQJH76Yyt1CbXpyF7l3LHr5lS5LZFkaMUKeBvsrChc5pAujwLzUf62PAs5ZL6ZBHV6I a/hw== X-Gm-Message-State: AOAM532IrEUh9KsaaDXAPcFh6+mR2FNyZnES/4X+OXEHoXEM9vP3b23N 74K2EtonNgRPSAY7kAo+SSJ2EGaMsUZSJ/o242WtxA== X-Received: by 2002:aca:df82:: with SMTP id w124mr340oig.112.1643925037825; Thu, 03 Feb 2022 13:50:37 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 3 Feb 2022 21:50:37 +0000 MIME-Version: 1.0 In-Reply-To: References: <20220125224422.544381-1-dianders@chromium.org> <20220125144316.v2.5.I5604b7af908e8bbe709ac037a6a8a6ba8a2bfa94@changeid> From: Stephen Boyd User-Agent: alot/0.10 Date: Thu, 3 Feb 2022 21:50:37 +0000 Message-ID: Subject: Re: [PATCH v2 5/5] arm64: dts: qcom: sc7280: Add herobrine-r1 To: Doug Anderson Cc: Bjorn Andersson , Viresh Kumar , Konrad Dybcio , kgodara@codeaurora.org, Matthias Kaehlcke , Sibi Sankar , Prasad Malisetty , quic_rjendra@quicinc.com, Andy Gross , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Quoting Doug Anderson (2022-01-31 08:44:35) > Hi, > > On Thu, Jan 27, 2022 at 1:16 PM Stephen Boyd wrote: > > > > ----8<----- > > diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c > > b/drivers/cpufreq/cpufreq-dt-platdev.c > > index ca1d103ec449..32bfe453f8b4 100644 > > --- a/drivers/cpufreq/cpufreq-dt-platdev.c > > +++ b/drivers/cpufreq/cpufreq-dt-platdev.c > > @@ -179,25 +179,29 @@ static bool __init cpu0_node_has_opp_v2_prop(void) > > static int __init cpufreq_dt_platdev_init(void) > > { > > struct device_node *np = of_find_node_by_path("/"); > > + struct device_node *soc_np = of_find_node_by_path("/soc"); > > Seems that some device trees have "/soc" and others "/soc@0". For at > least a little context, see commit a1875bf98290 ("arm64: dts: qcom: > sdm845: Add unit name to soc node"). Since (presumably) this would > only be for newer SoCs then I guess you should search for "/soc@0"? > ...and then if we ever have a SoC that's not @0 then we would have to > iterate through all SoCs > Yes. We can probably just use of_find_node_by_name(NULL, "soc") instead though and then if there are multiple soc nodes in the future we can iterate over all the soc nodes with for_each_of_allnodes_from() and make this logic more complicated. I'd rather not implement any of that complicated logic until we need to though.