Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934525AbdCLRXu (ORCPT ); Sun, 12 Mar 2017 13:23:50 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:49270 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934350AbdCLRXf (ORCPT ); Sun, 12 Mar 2017 13:23:35 -0400 Subject: Re: [PATCH v4 4/5] soc: ti: Add ti_sci_pm_domains driver To: Dave Gerlach , Ulf Hansson , "Rafael J. Wysocki" , Kevin Hilman , Santosh Shilimkar , Rob Herring References: <1488882154-21485-1-git-send-email-d-gerlach@ti.com> <1488882154-21485-5-git-send-email-d-gerlach@ti.com> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Nishanth Menon , Keerthy , Russell King , Tero Kristo , Sudeep Holla From: "santosh.shilimkar@oracle.com" Organization: Oracle Corporation Message-ID: <00909b96-8cb1-2c57-6072-f899dae3dcad@oracle.com> Date: Sun, 12 Mar 2017 10:20:51 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1488882154-21485-5-git-send-email-d-gerlach@ti.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 976 Lines: 21 On 3/7/17 2:22 AM, Dave Gerlach wrote: > Introduce a ti_sci_pm_domains driver to act as a generic pm domain > provider to allow each device to attach and associate it's ti-sci-id so > that it can be controlled through the TI SCI protocol. > > This driver implements a simple genpd where each device node has a > phandle to the power domain node and also must provide an index which > represents the ID to be passed with TI SCI representing the device using > a single phandle cell. The driver manually parses the phandle to get the > cell value. Through this interface the genpd dev_ops start and stop > hooks will use TI SCI to turn on and off each device as determined by > pm_runtime usage. > > Signed-off-by: Keerthy > Signed-off-by: Nishanth Menon > Signed-off-by: Dave Gerlach > --- > v3->v4: > Parse phandle directly instead of reading ti,sci-id property per device. Acked-by: Santosh Shilimkar