Message ID | 20240217082007.3238948-6-andreas@kemnade.info |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-69749-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp210310dyc; Sat, 17 Feb 2024 00:22:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUp9QCdufKSWL5xCE4uNQgl+WPgRp2F0WrG4ua04JB/mRQ0TcVVPZpsJ0pui6lnx2fFIx+/pT3VaG27eVC+02dcwn+21w== X-Google-Smtp-Source: AGHT+IETJL5lgrrRudtDzcJgHCkbhxRmnJKl+LZs7GFzQhucydhDOetNs9n1xMONNbmSCYE65isJ X-Received: by 2002:a17:902:ef43:b0:1db:92e1:2e4e with SMTP id e3-20020a170902ef4300b001db92e12e4emr7808261plx.30.1708158135465; Sat, 17 Feb 2024 00:22:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708158135; cv=pass; d=google.com; s=arc-20160816; b=xYaUzWlajtZz0BQjZbSm5iJAszwRHDlTA+7vSb4oD0J2ezjF026z6VJ/ZW4vINhayK ssEEQE1nX/WgdSR9nyyfG4k+qwj904FN3ioInu2bmo+uOEsbFDbdqdk/oUeKlPMQAJu+ 2y66+fvSASxDPyHwb97sidYcG88xBDe6F3k39EuQ97yO972/UwvcuIf5fY1cnRKFiboR JsKsuUhzex0ChP+fhKksc04sQA3KUfoo+PLz0RZo4v4N0D9NXrloaD2TkuMR3/EfrZQy Iyc7N8Xflz7iT/P/BusKAmGmdb0cCxq9brT1A3Ih2gUcki8l1Gq5A+yIyzhzc5RnCvH/ PapA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=oiyq9kLog9Cp/R7ZfxBUXhF6KOaPMsO94BpECX+dYb0=; fh=ompBcuc9WZSkOT6I8Jb+H375/5cBcTGkrIOABj6b1VU=; b=vF90GJWX2tdbFCzw+OyHhn2GFlVgX4CvkMn0826M7lFLIIGsoP6ebsXypzDSApbAVv 0WK8FDL0KRyv8KfJZE+ph3+aXlGJrNFTux20OKOH5MD0v/blXRX7wBDge4DckbTWWdOU FwnCsDVX3WS+41/1L7PXR9XgzabOziqOIuTrRV45U4XlvjAR7HjX4W7YqK2QOwBG/H3S StcjJNSu3dIRcJXVw7q3vmmLz5l/r+SwPgsjqc1GemHPD5by/TVUm5wun6e9cyqLsbqC ihPgLhC93vi7uCk47yHt4LkOcM6S31+pCrex1TqfV1Iqnyp+QQcro1t6PxuHY83JzRu0 0JYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=mxbfM98H; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-kernel+bounces-69749-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69749-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y16-20020a17090322d000b001d91df66e39si1199392plg.210.2024.02.17.00.22.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 00:22:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69749-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=mxbfM98H; arc=pass (i=1 spf=pass spfdomain=kemnade.info dkim=pass dkdomain=kemnade.info); spf=pass (google.com: domain of linux-kernel+bounces-69749-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69749-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 44550B21570 for <ouuuleilei@gmail.com>; Sat, 17 Feb 2024 08:22:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83BAE208D1; Sat, 17 Feb 2024 08:20:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="mxbfM98H" Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 310711D54F; Sat, 17 Feb 2024 08:20:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.238.236.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708158050; cv=none; b=kj7hL0PStxgH+lxEyHEh5q++tedYyakYvyeQfSuEVtM827VGBx1Ry4jqjXvbRPK6obL7IeoiBVj0fpwQtH7i2vg5X3sXz+3qfUqbSVFJAFcfaTw2LGArfc/WDqrhLIugyYXEI6kXG1E2ML1nWKcw1OpK91PZQ+ZYb5oaPc6uEUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708158050; c=relaxed/simple; bh=6sRPoZ3Ar/8gydeQdoTDVVaduVMOVcG5NbSDDkFAjtc=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bPU1uslhEIsHa1H9lOi0lR+fI1yUGMTaQ1nge1aDesO67rU4NoRKPqdjz6p76snMTsxlyYYwq9P+SE7AmIJVU22KxZv/9oeCCbbYMcF+7ruAGxSgvi/6XowTnSbMDXl6ZpDQ+uIjvcKwR8I+Zq/qmB0pG+HurAIJ7xJ2whdrQWA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b=mxbfM98H; arc=none smtp.client-ip=178.238.236.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oiyq9kLog9Cp/R7ZfxBUXhF6KOaPMsO94BpECX+dYb0=; b=mxbfM98HHkXyp4E+iRyalJMa5g QYVSWJA1O5+4A2b23uy1Cf8S7+FqY9kCsLUwmbqrfNcxDHigsaMTdbYOjlNfHRy27XtOO7b04EBYw qWEYIEi1TSgffJSyCsao83o/jfTOUr2AKXBI1Ka46+jWPBNT8YuSSivyxlD2aydVwWzfE7QZ1aYjI MSJideydVD3tD6ITiELRouwFdM42IxNCapqep1Xrk3oWLqs7uloB1ZBKElhse9XZUCcVqEzUm4MQ5 WbMb/e9Af7tcFY3tVi4q7mn+sdV5sm/d4uo+XAut+lbwbIi7h4qjoaV2+u4ksGxHBrYh6WXN2Z4ho cGwOGvLQ==; Received: from p2003010777002c001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:2c00: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 <andreas@kemnade.info>) id 1rbFw2-009WAg-IO; Sat, 17 Feb 2024 09:20:34 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from <andreas@kemnade.info>) id 1rbFw2-00Dabx-0D; Sat, 17 Feb 2024 09:20:34 +0100 From: Andreas Kemnade <andreas@kemnade.info> 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 v4 5/5] mfd: twl4030-power: accept standard property for power controller Date: Sat, 17 Feb 2024 09:20:07 +0100 Message-Id: <20240217082007.3238948-6-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240217082007.3238948-1-andreas@kemnade.info> References: <20240217082007.3238948-1-andreas@kemnade.info> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791133624913300075 X-GMAIL-MSGID: 1791133624913300075 |
Series |
mfd: twl: system-power-controller
|
|
Commit Message
Andreas Kemnade
Feb. 17, 2024, 8:20 a.m. UTC
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 off 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 <andreas@kemnade.info>
---
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 1595e9c76132d..0bca948ab6bae 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; }