Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1808023rdb; Thu, 7 Dec 2023 09:14:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCAQtseuLE3fNuPa89WducGgQQWBUZzIMR2KsNjwO4HI1PMGAt2Ek0MtJ5NNt9MrTTPxRF X-Received: by 2002:a17:903:24c:b0:1d0:9201:5335 with SMTP id j12-20020a170903024c00b001d092015335mr3367823plh.13.1701969248747; Thu, 07 Dec 2023 09:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701969248; cv=none; d=google.com; s=arc-20160816; b=cDhSR5eGIMu6Zki12oz1Dw5HwbCfhb6gvdpcMpXAIXGZoBcM3cbPmMJpPdaAIC9Iz/ X7unaf5M84Db6ksrR5BwkEf2aKECMheBwUNsvEKEtLKSCwFXlvJFGGxmK3qJlIjjRyCN ZI6eGg8xmdny8ExxKNmJIQRZIoKiWuBA4oRL/Lo7CtiP1ww2eJfGBBE9JP66PK05w9Zl 9xJ75F/c8Mh123I6rpguy/tJJ4ibZ1NT/2GtMZlNSNVoTivCIxl+oKeodMhgN6JkzJsi BH1BkFcsAOO7T6izzpCqWGDS/lmEtdizoxAmUearBbzpWMlTkFQPX4ypUT5+QTXuFvzn w3RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QS5UFPL5uIL/d8grK8P0TRaTPlZ+8ol71200//w+8H0=; fh=L0O6eQBSkhYHSHh9NxoYRmJHCbVZzu1+iu4y+dZosWM=; b=VByPFG3pe+vMGIM7mc688x8TWXg0hXK+mx7GJ6j7khSvLcSKWsttDNV0is8njKgOT3 7Oq5zyqnEbK3s619xwQZ5myl7YugjnVBTXDgBgGf9Fh/D3TGu31DGfymjDiKmwX3Ms2+ bteDhXzsrQh/ZGCkoMbO2VsZOiE28Jf0FA9yfQ0MWsjggfFkF9G3F6oqrouSQnjzvMPi 6xzBgaHT5wQ1Qzlniq3Alxjka2kPhAfR3CTcq1mabnMjpMu6QV79DSLZiavfzQdpub2g 8CcwytkOJaf2eNYKcQRAQS9vSVv1m5ef1YPK8k4hTHaQ+w22173y6xetXejaoRl0YTCt PMZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VRSgnLgp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id d16-20020a170902ced000b001d0bcd70814si62970plg.294.2023.12.07.09.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 09:14:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VRSgnLgp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6F2C982B8A5E; Thu, 7 Dec 2023 09:13:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443167AbjLGRNm (ORCPT + 99 others); Thu, 7 Dec 2023 12:13:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232713AbjLGRNk (ORCPT ); Thu, 7 Dec 2023 12:13:40 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E84E10F9 for ; Thu, 7 Dec 2023 09:13:47 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03C3CC433C8; Thu, 7 Dec 2023 17:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701969227; bh=DRPKptBBmLOx5+OFyOUopYmLskN58QcplGFuspiJ3n4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VRSgnLgpAB2E+67FK4MbwV1WZOHG/yHsV+TYfLKc4iM9XaZRCVQKBdDHjV1Zjl2e7 8DP/Rbh2ZreW2H2NsjROtKzxNqy7jO8bKS2ZQjn9KjHOidM6Anb4so4FRH5ihwIVWc 4wgzzvXH/ReD0Avhsbv502RlcQhSWlqCecj7MEp2bohIBM3Lj1fBriDKWO6FiBQDlX vv8cYjHkpftvaL6NhK9xcb7Qw+Zre+tFwtRABPZgd/pxOpLwqu1Gf5zMhvt/Px76IE Keh83FDvSNNA9ul2ua+N43/vQcGuEMARNSXkX5+3riS/G0lVjgqjNpjUoZl0/dlKnV Avyl9oapOmRhQ== Date: Thu, 7 Dec 2023 17:13:41 +0000 From: Lee Jones To: Andreas Kemnade Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH v3 5/6] mfd: twl4030-power: accept standard property for power controller Message-ID: <20231207171341.GH111411@google.com> References: <20231203222903.343711-1-andreas@kemnade.info> <20231203222903.343711-6-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231203222903.343711-6-andreas@kemnade.info> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 07 Dec 2023 09:13:55 -0800 (PST) On Sun, 03 Dec 2023, Andreas Kemnade wrote: > Instead of only accepting the ti specific properties accept also > the standard property. For uniformity, search in the parent node Search 'in' the parent node or 'from' the parent node? Where is the property? > for the tag. The code for powering of is also isolated from the Should this be "off"? > rest in this file. So it is a pure Linux design decision to put it > here. > > Signed-off-by: Andreas Kemnade > --- > drivers/mfd/twl4030-power.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c > index e35b0f788c504..3ef892e63b88f 100644 > --- a/drivers/mfd/twl4030-power.c > +++ b/drivers/mfd/twl4030-power.c > @@ -686,6 +686,9 @@ static bool twl4030_power_use_poweroff(const struct twl4030_power_data *pdata, > if (of_property_read_bool(node, "ti,use_poweroff")) > return true; > > + if (of_device_is_system_power_controller(node->parent)) > + return true; > + > return false; > } > > -- > 2.39.2 > -- Lee Jones [李琼斯]