From patchwork Fri Jun 29 11:04:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 140539 Delivered-To: patches@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp694943ljj; Fri, 29 Jun 2018 04:04:45 -0700 (PDT) X-Received: by 2002:a2e:93c9:: with SMTP id p9-v6mr10082837ljh.117.1530270285326; Fri, 29 Jun 2018 04:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530270285; cv=none; d=google.com; s=arc-20160816; b=cWnjPQeijOfTN2keNwyVVCEvDBCa+3jfZImWZZcmnmkRKHA9yeApybfMfB02tOaAW9 bG22S/M2A25G3U/jXOgbdDF1uaZVXsyyb102j040FsQRdXXtODOiMsEkr9/VKSYXUcbG K/atzBIVORAsUbzr7+mK3LIDIpCrOhCELmxxK0buaWKIh/2DulbWXc0qoWikHofow/3n RrSh+GjhEh5xuCy/FFkNaNQ/8OXcuY9PDkqCL2UcFS+rgsG3+djVWeKSOGHKLbUhrLCC bJ13FDxPONFKS58PFgRyHREc8kxxnjlnqPhT9RP1VRbO2GV3VlLkh3Wr7e52q1Am8vvc XQcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=sp52+G5oLw0mSEontI/IBDKdp60lJUuxU/jPWqd5o9A=; b=d9cC+yXM1REdf0teF/7KWkUhnejtmRF2B0mEmrqEmrzZYQ1s+bbZVKk5yfsrUNGrpe b2Vndi2rG2QZ4rA8jMvFDlb9jWpbYzAeZV0CNveJVhENXJ9z0VEX7+egon0HEPwYSJrJ M7ZZEwmaIqduCbJsTsqmUYpseCpLUxqWAPgLfnhMqnt2I51bZjPmvNG8+LhGMqa3nS6d aS9X3xuBpWmgA9IuQ8VgUn0T889dwLC7X77JpNwg+WUGgRObOYu6UgGmWs6+2kX6g8Kb 8D3Psca5opAD+tSh2zYCiOmOZet+LrRo8ZRvT5ZXr13cC5HP0DCKhIIjXShooi8qCEvY I5UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dq2sVwDR; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id d6-v6sor1755092lji.87.2018.06.29.04.04.45 for (Google Transport Security); Fri, 29 Jun 2018 04:04:45 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dq2sVwDR; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=sp52+G5oLw0mSEontI/IBDKdp60lJUuxU/jPWqd5o9A=; b=Dq2sVwDRbszW0Yp8odmAW5Hf8uE8gs5JBVz/CkIW0QERrV7LdYHsetBPqP5omFtIwr 1/SOMfTMwk4xw4yGvHo1hwISeXBHQvbZt0JNrcCJLMctZN0fFqSPfUqX2hsIzioIFRch vRcCnAe8JkEZtEM57/YvQ+pNxDouB70N6lMrM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sp52+G5oLw0mSEontI/IBDKdp60lJUuxU/jPWqd5o9A=; b=CMH61mmRhkQX5uS92m2Ba4hkkZcdoCO85sDo+IXCqxm6R28/hKCP7b4KfcYRee0HUW b8KpN9B45S/YLXysA/ondnnsZQApJS//EnF9P7rxpyixh09NzxOaaYpmfYKtaCjjWVp2 0rytEVsKfc4T6UkzpViIo17LXuW1eHLm5UTdPPace+wdJnvCZeKt/ZZrZHzZRWE2Awjz SvTxF+EpVNq+LmyG1w3VPmdwu5hUuDmEFGm5HSKL1+ZiEibug5Aq9EzIGzOcMhSpzS+T XviNx7MPtUTPexwUbrPyx85qvoSAmsLXLFfhKFBkkSNaD9rmYcVPVuwQ5AZ4J0pkRU+l Alww== X-Gm-Message-State: APt69E1Pm0wmHjJA2rAokNnk8IF0pTchDL0d0OYFcHxvYLcqw72UjbR0 l91UkjY6hq548LtenO/4kjppWmkv X-Google-Smtp-Source: ADUXVKJifwBKIPAhtyVMhH4e1BCx1GLeCu23JK0eJ3zPucgy6LW09qE1RyCEwrozFih0S9FAdWD1Sw== X-Received: by 2002:a2e:9ed3:: with SMTP id h19-v6mr9558103ljk.88.1530270285061; Fri, 29 Jun 2018 04:04:45 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id 89-v6sm508359lfs.32.2018.06.29.04.04.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jun 2018 04:04:44 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Jon Hunter , Geert Uytterhoeven , Todor Tomov , Rajendra Nayak , Lucas Stach , Viresh Kumar , Kevin Hilman , linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 0/3] PM / Domains: Enable name based lookup at attach Date: Fri, 29 Jun 2018 13:04:29 +0200 Message-Id: <20180629110432.5179-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 Recently we added support to manage multiple PM domains per device. Consumer drivers were provided an API, dev_pm_domain_attach_by_id() to associate its device with one of its PM domain, by using an index. Let's extend this to allow the association to be done using a name based lookup, which follows the similar concept as for other resource types, such as clocks for example. Ulf Hansson (3): PM / Domains: dt: Add a power-domain-names property PM / Domains: Introduce option to attach a device by name to genpd PM / Domains: Introduce dev_pm_domain_attach_by_name() .../bindings/power/power_domain.txt | 8 +++++++ drivers/base/power/common.c | 17 +++++++++++++ drivers/base/power/domain.c | 24 +++++++++++++++++++ include/linux/pm_domain.h | 15 ++++++++++++ 4 files changed, 64 insertions(+) -- 2.17.1 Tested-by: Rajendra Nayak Reviewed-by: Viresh Kumar