From patchwork Wed Sep 17 12:34:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 37518 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B03132054D for ; Wed, 17 Sep 2014 12:34:38 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id cc10sf580305wib.9 for ; Wed, 17 Sep 2014 05:34:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=/aQX5gN7YdtPyU/Tlgv2xwCzBSuqA0bSckOBWYH64nE=; b=m6gOHTrmFytrsdQasQB17zXWz2rqcq9S4QlPqk7hmiXNScukSVzeiKdQ8TWep1v/QD 3T4OjO34KhcKls5uKMmA0tBI7ZAepKscYzjTJ0nwXXVm3bjcY6NAFgjzpaDNNd+n/8af SwJougbOjW566lGLXYalmKKDC3xtgp7aEozIhMuRj68wVKH2z0hnzFic11jNTWp31M25 mhkVxBSluekLO1gsuDZHERYCuGeiPD2evKhWUNCp4NmbbqtB9hzzgu87r3AeB7cGHW3U l1pZdLaDpYyNrGR/Iznla1pQFIjWLQ64r8m2G+OZojSsPc4LJSmmzFgU+SWuBKK/8wWT NQww== X-Gm-Message-State: ALoCoQkj26ZFV4tC9MAVF9gHQrhb9F6edp4dCZKviR1QWNH9bRzBQ8eHGsL3JVQIfZ8WyxlnNd7w X-Received: by 10.112.170.166 with SMTP id an6mr360779lbc.17.1410957277665; Wed, 17 Sep 2014 05:34:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.197 with SMTP id l5ls88231laa.58.gmail; Wed, 17 Sep 2014 05:34:37 -0700 (PDT) X-Received: by 10.152.1.6 with SMTP id 6mr44146972lai.22.1410957277398; Wed, 17 Sep 2014 05:34:37 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by mx.google.com with ESMTPS id wu8si24754393lac.66.2014.09.17.05.34.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Sep 2014 05:34:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id z11so1690394lbi.40 for ; Wed, 17 Sep 2014 05:34:37 -0700 (PDT) X-Received: by 10.152.179.226 with SMTP id dj2mr44374866lac.40.1410957277288; Wed, 17 Sep 2014 05:34:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp566392lbb; Wed, 17 Sep 2014 05:34:36 -0700 (PDT) X-Received: by 10.70.118.68 with SMTP id kk4mr71624423pdb.21.1410957275712; Wed, 17 Sep 2014 05:34:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qa1si34535723pbb.158.2014.09.17.05.34.35 for ; Wed, 17 Sep 2014 05:34:35 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755555AbaIQMec (ORCPT + 27 others); Wed, 17 Sep 2014 08:34:32 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:58135 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754957AbaIQMe2 (ORCPT ); Wed, 17 Sep 2014 08:34:28 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s8HCYKjc014982; Wed, 17 Sep 2014 07:34:20 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8HCYKMD023523; Wed, 17 Sep 2014 07:34:20 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Wed, 17 Sep 2014 07:34:20 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8HCYKUH020431; Wed, 17 Sep 2014 07:34:20 -0500 From: Nishanth Menon To: Lee Jones , Samuel Ortiz CC: Sebastian Reichel , Tony Lindgren , , , , Nishanth Menon Subject: [PATCH V2 2/2] mfd: twl4030-power: use 'ti, system-power-controller' as alternative way to support system power off Date: Wed, 17 Sep 2014 07:34:12 -0500 Message-ID: <1410957252-764-3-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1410957252-764-1-git-send-email-nm@ti.com> References: <1410957252-764-1-git-send-email-nm@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nm@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ti,system-power-controller is more or less the standard way of indicating that the PMIC is the system wide power controller and hence may be used to switch off the system. Almost ALL TI PMIC drivers and many Maxim PMIC drivers follow the same style. So support 'ti,system-power-controller' in addition to the usual 'ti,use_poweroff' to indicate that the PMIC instance has control for switching off the system. Signed-off-by: Nishanth Menon Acked-by: Tony Lindgren --- V2: no change, picked up Tony's ack. V1: https://patchwork.kernel.org/patch/4836371/ 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 3bc969a..1c129ba 100644 --- a/drivers/mfd/twl4030-power.c +++ b/drivers/mfd/twl4030-power.c @@ -627,6 +627,9 @@ static bool twl4030_power_use_poweroff(const struct twl4030_power_data *pdata, if (pdata && pdata->use_poweroff) return true; + if (of_property_read_bool(node, "ti,system-power-controller")) + return true; + if (of_property_read_bool(node, "ti,use_poweroff")) return true;