Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp570577imm; Thu, 31 May 2018 05:49:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIn/RAtGc7uOM42cn2oJoMQl9HNTgddcKeoMs5JjDlNYWHrijfHwoLvKhjbvnMeyfeF1JZh X-Received: by 2002:a65:4ecc:: with SMTP id w12-v6mr5445018pgq.214.1527770990549; Thu, 31 May 2018 05:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527770990; cv=none; d=google.com; s=arc-20160816; b=iyYzPDfuybP8SjYjJFUnDz2IaOQ9at5QOLflRF/LLaDsCn4XdeVXFatoxzxMmb1Dnv YY14JQVwzS6HGL8tkefYjYkrY9azNRH8jtzFrug7dGaJtWlLZP/6TbeZ6ywH0HJmYfse lsc7kJC5CjvPb2jX9IdkfNyGNRUF3OBwwNoCvSEClS8cL423Zh/+i73VPYurUc1ddXii XEIy/GeaXJn49vIXduBvej5+fipn0ezJgmLZTRzTHRB4Ze4iHIJy1HGVZdxJiZlQwmes gk8MOX2GBBkvUdRqWOIYOvT5LcT2/IQ1ytNVMPj+hVU4aIn+Nj0GjlhGovT0OhbDq2E6 G/sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=xAKrd1IZ+2FniwJKNG/wdCvrtfU8xi69PVvaioGh42s=; b=ES1Ur4GSB2xoXlembx+DLqty0I+2pb5uGPSjduvliAQpEOZCH8xrzhdJIa9jfgPQ/L QshGB2oDUXO1tjt9e0rjZl4ToSbVsM8A2uuWWalkA6L5xPGZhX144BomfKHTsZd3Fbjk zUKtH01dE3xNktjmOaw9u6KEbBt8BvdbEvid3rZUu0C8/48Fj7swhy9UTcrWCfNGICz6 8mm2ZDuK8ujwBdzMbe8fb5BqJY5WBaBB10WmzDYBLyadv70hIpz9oNDxI0Vgn9SixnTq jkeI4Rmwgmg4/Ib8lI7Ujmjc2o4zLpj3dRCf4kTvCJdEIBT3AE47aXqRi7zt0Ap5yd5j ZavA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l65-v6si8317907pge.46.2018.05.31.05.49.36; Thu, 31 May 2018 05:49:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755088AbeEaMr5 (ORCPT + 99 others); Thu, 31 May 2018 08:47:57 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:5531 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754943AbeEaMry (ORCPT ); Thu, 31 May 2018 08:47:54 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1, AES128-SHA) id ; Thu, 31 May 2018 05:47:51 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 31 May 2018 05:47:53 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 31 May 2018 05:47:53 -0700 Received: from [10.21.132.148] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 31 May 2018 12:47:50 +0000 Subject: Re: [PATCH v3 4/5] PM / Domains: Add support for multi PM domains per device to genpd To: Lucas Stach , Ulf Hansson , "Rafael J . Wysocki" , CC: Greg Kroah-Hartman , Geert Uytterhoeven , Todor Tomov , Rajendra Nayak , Viresh Kumar , Vincent Guittot , Kevin Hilman , , , References: <20180531105959.14843-1-ulf.hansson@linaro.org> <20180531105959.14843-5-ulf.hansson@linaro.org> <5fc1d3ee51c8dbc264fb21edf33a879c7db4056b.camel@lynxeye.de> From: Jon Hunter Message-ID: <191ed832-3b15-f47d-c171-4039da665b36@nvidia.com> Date: Thu, 31 May 2018 13:47:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5fc1d3ee51c8dbc264fb21edf33a879c7db4056b.camel@lynxeye.de> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/05/18 12:40, Lucas Stach wrote: > Hi Ulf, > > Am Donnerstag, den 31.05.2018, 12:59 +0200 schrieb Ulf Hansson: >> To support devices being partitioned across multiple PM domains, let's >> begin with extending genpd to cope with these kind of configurations. >> >> Therefore, add a new exported function genpd_dev_pm_attach_by_id(), which >> is similar to the existing genpd_dev_pm_attach(), but with the difference >> that it allows its callers to provide an index to the PM domain that it >> wants to attach. >> >> Note that, genpd_dev_pm_attach_by_id() shall only be called by the driver >> core / PM core, similar to how the existing dev_pm_domain_attach() makes >> use of genpd_dev_pm_attach(). However, this is implemented by following >> changes on top. > > by_id() APIs are not really intuitive to use for driver writers. Other > subsystems have solved this by providing a "-names" property to give > the phandles a bit more meaning and then providing a by_name API. I > would really appreciate if PM domains could move in the same direction. As discussed here [0], there are plans to add that. Cheers Jon [0] https://patchwork.ozlabs.org/patch/921938/ -- nvpublic