Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1017199iog; Thu, 30 Jun 2022 15:12:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t/u+vhE/jDZzMHoSErljEeBDNbhW1UCSZGXy0ct1Cn/3TpIU1bASNhVdB12NFgttLn8ZH5 X-Received: by 2002:a17:90b:4b0e:b0:1ec:df4b:33e0 with SMTP id lx14-20020a17090b4b0e00b001ecdf4b33e0mr15240470pjb.73.1656627134772; Thu, 30 Jun 2022 15:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656627134; cv=none; d=google.com; s=arc-20160816; b=PPVooM0xpYfgJGEP80AphJobBeyvWG8fnVOXBE7blmX7nAt4oEWd7fKB16fvdl7+Ba S8NVVihH728mTew+9G33TFh/T4gHvBjHqlaDcDABn/CoZrdszsdWwBcvBPSNdYCN2u0U iB+Cx9YDEbJR82dPlYzrRZw/SzTACK5OhT7EgznS7oTKnO44ln9WC2PAHmpjf5Xfc3PO 1bEu9z1bvAccX+wlNwlWzg9ibaPgP2+9YAuJje2BPY/jZKrQE7DQki/0fEBhQUJwhSJj rCDyFvHJySGhDteF/FNAZ7yu5mr8scmKusTY8DiKzok5kVN6CbwLtYjGsgSg+lJrTkA9 cSsA== 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:from:in-reply-to :references:mime-version:dkim-signature; bh=FNLWIVbc8TzEaB0k8iUckfstHCKtrRtbLhMlwJQBDps=; b=OFcBNj5jI0NUgv3x+6R+BEb/qERMgCDPWcuxf46x7/bJJJqgyc5Ig8EEsreG2s0zLA PsJyrsjbjUf1LT6BJAjKR4ubXf3GsOdUGGD7P8A8V5tcD5gMrrEXAoCN96GPfGAhZoSU 0rgzIGKDp3/VHv5nabyZTYlCiRKWIdTyvhSGROmXmqStNSWWsfyCN/rSHq0C+pvIPeXH /sHf6BLQ/JuafyNu5L9ZvCjmPk7dZCr5VE1speD1Decwd4Y7aR6So7B2dt5AMafn4I0I 0bGnv12q6/pOM8meq0meLykvosWQXu09ebj/GqnNj1qvBW8ZPiCTMLVQcDj8j+ACOQBW SohA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=luvEGDjZ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lp9-20020a17090b4a8900b001ef1a2d244asi9486362pjb.101.2022.06.30.15.12.00; Thu, 30 Jun 2022 15:12:14 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=luvEGDjZ; 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 S233489AbiF3VeV (ORCPT + 99 others); Thu, 30 Jun 2022 17:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230392AbiF3VeR (ORCPT ); Thu, 30 Jun 2022 17:34:17 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E87904475B; Thu, 30 Jun 2022 14:34:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 61404CE302F; Thu, 30 Jun 2022 21:34:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9ACABC341CF; Thu, 30 Jun 2022 21:34:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656624853; bh=D2s+ZcxWc13QZ3Howbe3kBarPMoDIzINRNcSNPpkJnA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=luvEGDjZt8Ljt1cdrdLPSRkHfxx4EcJ0DCb5X96dXECsc+SPP8VdOnUMUlkRzhtOm oEB4VgSo7oj+LwMlSwPaHW0gZLDlxcSsSpEQEpIt4WAAGwJZUiW+GTRcTIZJ1bVUTG 6A2HDoexXAbjcFYoPCRW74rXbsosaoAUIJPTfUB2LFdrSyuJIL02/sLnFnWg1p3eTU pfVApwETFAEGOGudLj/8JHXIlP0JKxcpU1mUU/z6K5E++cOIPlxBkw7i9++4TPMO47 WrYs5lN7Z19C2sAHcK3hk2QyKipmqahLoqjTKEvtP7zvm4vgEpeJ9cav8xZyJlY9z3 ehtRYriJ2+cTA== Received: by mail-vs1-f44.google.com with SMTP id o190so524314vsc.5; Thu, 30 Jun 2022 14:34:13 -0700 (PDT) X-Gm-Message-State: AJIora8t2ZjczctwmXCTremqbgTxtzyXb8AMvfGbLCsIw9STOslDqEii qzk8BTBYu2sXhLPHCBISxvUrxHN6YUQOTdFF0A== X-Received: by 2002:a67:1787:0:b0:354:6490:437f with SMTP id 129-20020a671787000000b003546490437fmr10423267vsx.26.1656624852529; Thu, 30 Jun 2022 14:34:12 -0700 (PDT) MIME-Version: 1.0 References: <20220629115010.10538-1-andriy.shevchenko@linux.intel.com> <20220630162716.GA2842206-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Thu, 30 Jun 2022 15:34:00 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] of: unittest: Switch to use fwnode instead of of_node To: Andy Shevchenko Cc: Andy Shevchenko , Frank Rowand , devicetree , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Frank Rowand , Linus Walleij , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Thu, Jun 30, 2022 at 1:03 PM Andy Shevchenko wrote: > > On Thu, Jun 30, 2022 at 6:29 PM Rob Herring wrote: > > On Wed, Jun 29, 2022 at 02:50:09PM +0300, Andy Shevchenko wrote: > > > GPIO library now accepts fwnode as a firmware node, so > > > switch the module to use it. > > ... > > > > - devptr->chip.of_node = pdev->dev.of_node; > > > + devptr->chip.fwnode = dev_fwnode(&pdev->dev); > > > > Perhaps I want the DT test code to test using the of_node pointer. We do > > want that to work, right? > > Nope. We want to get rid of of_node in GPIO. I would think there's old PPC users preventing that, but if not, good job. > > I'm really not a fan of fwnode'ifying things that are DT only. It's > > really pointless churn. > > Other way around, keeping an of_node for just 3 drivers (and counting > down) + one test case is pointless churn. > > But I got that commit message that is unclear about the intentions > behind. I will update that if you agree on the rest. If it is going away, then what choice do I have. :) Rob