Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3434119rdh; Mon, 27 Nov 2023 14:22:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7CHSzOefBpzhm+cP7qZPtsrl/zEdRZi9Ch+eKvKXouQfCBSKm6XG2xe01qd5rpoenEunp X-Received: by 2002:a17:903:41ce:b0:1cf:c3fb:a982 with SMTP id u14-20020a17090341ce00b001cfc3fba982mr7747714ple.63.1701123773080; Mon, 27 Nov 2023 14:22:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701123773; cv=none; d=google.com; s=arc-20160816; b=aMcEpG9BmtKVnWJD3cxYlun2FZd1jnrZ+TLXrQurPMFBiNuuDqsa+w85/KFXmofwUf Qxd+yoe4NPLrCsthG0EmUWRBx3Nzt/DBvoZG7x60DdjIQKsI50ukcOArsEmPISSfAzg1 E3sM+5PiPfC+QQhmw4lSXSsXYQuNOH+FKJt9gGKEJDQ4fnc1Rg0fwkY058tZRNRkHsQn G49VhW5kpOP5J58WALJMuCm84kjxNpDkOWrGXW1ccU8K0WagEiinNqJbprh1PHEqBItQ Qg+RwCCu8DFUR8fUsd3mZVNbpFpT57SOWiMVM3wQEEusaUf3Yb3+wzv49Gms1TOKOrql 2XRQ== 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 :references:in-reply-to:message-id:date:subject:to:from; bh=dHlD70RCHnJ7Q8UACG3DebnglQVd5G72KV1+Qjw76zs=; fh=ompBcuc9WZSkOT6I8Jb+H375/5cBcTGkrIOABj6b1VU=; b=Ktt6VlPgZt9zuTsLZ1ptJPLoUtoIaudFXmZACgwCIiA+7yhWYTNctHRm5BkjwKXLlf xNJgZUbL12wxUwd9XEYmWSbA85zrJ+IFoqSjM0r139nwSZ6ya9oR0exVFiizcX9Im9j+ xO1w01f+gx5NiCm8082pOLdu1lI71wyvTuYVoGJTb3fyV5ubK4xxgHqBFJ5Yb48Jjyxn si5vsQ5tM+aAiEQ/r9Q563d8vpAiylttNYVNMoGNZcDEsQYHzfY2sAMAyWYbakSapCeG bk+ZSMqU1XwKY4XPh5pbzuhsaW7KFI1YV9ep7/7tRI/rNj6GsDsKrWCXUxcdhB88XGWH Icew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b15-20020a170902d50f00b001cfd4eb4deasi2583540plg.357.2023.11.27.14.22.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:22:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A208880A73D6; Mon, 27 Nov 2023 14:22:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234421AbjK0WWg (ORCPT + 99 others); Mon, 27 Nov 2023 17:22:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233867AbjK0WWI (ORCPT ); Mon, 27 Nov 2023 17:22:08 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E0CA4C27; Mon, 27 Nov 2023 14:19:22 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7jwh-006myV-Sg; Mon, 27 Nov 2023 23:19:15 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1r7jwh-000kAm-25; Mon, 27 Nov 2023 23:19:15 +0100 From: Andreas Kemnade To: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, andreas@kemnade.info, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 5/6] mfd: twl4030-power: accept standard property for power controller Date: Mon, 27 Nov 2023 23:19:06 +0100 Message-Id: <20231127221907.177442-6-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127221907.177442-1-andreas@kemnade.info> References: <20231127221907.177442-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:22:51 -0800 (PST) Instead of only accepting the ti specific properties accept also the standard property. For uniformity, search in the parent node for the tag. The code for powering of is also isolated from the 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