From patchwork Mon Apr 9 11:43:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 133024 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp168052ljb; Mon, 9 Apr 2018 04:44:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/RBrPDI97VeW9xj8KGTngFXsh3lSpppcVN4USa6G8VWImVV2v2sfnaJ8bcT/VY2Ky1W7ze X-Received: by 10.98.155.137 with SMTP id e9mr29092533pfk.109.1523274252963; Mon, 09 Apr 2018 04:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523274252; cv=none; d=google.com; s=arc-20160816; b=mM0rvxKvl4YF+OcPYip/2crPkmiDpPrzbODIXOVspOAWh6/KjbXP/1ba5a8I8lHmQL yldtp0F5opKG01iFEKbN3McNKLEM+OOHnuBnQUTJ/AUlx9PuGHEyDK629c2K8Jqafgkn McaVVCXic9meOTptoded40lEouBtqmTgKeWAu1DtW/PS1w1y+67wK/dDxPx7V44m9/5a B2duCOoNusupr1txIsWqqBAQw1d4REdF4Z6Qc2dzKNCPNUMVkNzsJJWOxsfvBCM/7hQl SHV3Z3blZaQUkWJR0wIhalXBlj8Ui3WfNlZ0+l+x+T3xT+fTbjjAq+cH2M+e82r6lYqX JhFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=y3e6mDIEEAPxvHW9WB1+UKH+53Ddu9AvIbVGDt6DGGs=; b=HtAe5j4CxubstdHRbLWeshf4jAOF80XlLWnfBfooKAL75QRgQSplq9NbK+Lk8vcPNt GNauJdzTqOvPWiTw8SE0umLavqa94XfzgPx7k+V0D4Qohpi33CqFhvOfs7r16vSSYBbA G57bLP+S5D1y6v1Ow+U7QzrdhmXifYDv1+KtQwBkEp/cxW36cpXDm5UOPFNKuRZZLkk2 5EmOFQNzUpsXiBFdzjkDK5aQ8eJDLyG4z+qZOibFaaXJnPm4EI41KL2KttQfO3kLpr9s 1Tj0G4jU70b3wPMDPkRlgYuVzHHXwYRBQlkm0PXumeO17m+jyrnfxtPtFqq6PxFJ+7T5 g5BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OHOKhUzS; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j188si105815pgc.584.2018.04.09.04.44.12; Mon, 09 Apr 2018 04:44:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OHOKhUzS; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751721AbeDILoM (ORCPT + 11 others); Mon, 9 Apr 2018 07:44:12 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35015 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751652AbeDILoL (ORCPT ); Mon, 9 Apr 2018 07:44:11 -0400 Received: by mail-pf0-f193.google.com with SMTP id u86so5661087pfd.2 for ; Mon, 09 Apr 2018 04:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=y3e6mDIEEAPxvHW9WB1+UKH+53Ddu9AvIbVGDt6DGGs=; b=OHOKhUzSZFf5KzvLGQv+nVVX+GpEBv9GsebNTxlxz3eJQYJHk4K/gpSuQxT7eUYJFg 9WPAaRf7bWb9uA/KAxErh2T+UbN26Wwx9Pm06ODqdknruM0/ayXnNpT6tIZZANGgMhdn b6pc3eT/qyo50uxUZjDo+azFsT5DuMicthu+0= 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=y3e6mDIEEAPxvHW9WB1+UKH+53Ddu9AvIbVGDt6DGGs=; b=VKAfmUe69mRpcDzUK8Gi75ApiPo4xnmIoDNzd9Cc0jgjYR+9fhcajdvABhPqdEX4Uv t/P+QJO8coz5UjPNd0CrHhew58A30evhLedSSZoOtDN30Mih8pitX7wqtqOjJL3Ca1zy 7Zx3hI52g2h7SftAqvtoqDO63SnTby11q04vcRVyefBejNosehngSXA4a8cV6nnNUdLo 0y891dsiN8WFPwBJTF7OwvT8wly612YGhFqGt9KyT+v2P2pcawSWe99/RLd2MJ69EXdq pQl3OdXGZaTXs0YHM9ZSLl6ExnCMIowO4VDx0pBOuGNoxokP7llxBfOyQOdAlUv4xvIH 3VRQ== X-Gm-Message-State: ALQs6tC+inbC/M/1i+ws7UtWXj/FZW8DqKV7kQAt+IzanY8MzeYqUY6V M3mP92iscQ22Qb8tdgtdIclW9Q== X-Received: by 10.99.122.8 with SMTP id v8mr1338149pgc.401.1523274250691; Mon, 09 Apr 2018 04:44:10 -0700 (PDT) Received: from localhost ([122.171.228.188]) by smtp.gmail.com with ESMTPSA id o2sm368741pgq.87.2018.04.09.04.44.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Apr 2018 04:44:10 -0700 (PDT) From: Viresh Kumar To: Ulf Hansson , Stephen Boyd , Kevin Hilman , Len Brown , Nishanth Menon , Pavel Machek , "Rafael J. Wysocki" , Viresh Kumar Cc: Viresh Kumar , Rajendra Nayak , Vincent Guittot , linux-pm@vger.kernel.org, Jordan Crouse , Rob Herring Subject: [PATCH V2 00/11] PM / genpd & OPP: Parse performance state from DT Date: Mon, 9 Apr 2018 17:13:40 +0530 Message-Id: X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi, Here is the V2 of the series which contains several modifications since the previous version that was mostly reviewed by Ulf. This series provides support to parse the performance states of devices and their PM domains from DT instead of static in-kernel tables. This is tested on Hikey620 and works just fine. V1->V2: - It contains 4 new patches which were required to complete all pending stuff in this activity. - Patch 1 and 2 does minor changes to the DT bindings as suggested earlier on the lists. - Patch 3 updates code based on them. - Patch 6 adds a new helper which is required by genpd drivers. This was already posted by two different people separately on the lists, while all the versions want to do the same thing. Signed-off-by's from all of them is added to this commit. - The genpd bus is no more required. - The genpd device isn't registered anymore. - Some renames of the APIs and callbacks. - Commit log updates, along with tags from reviewers. -- viresh Viresh Kumar (11): PM / OPP: dt-bindings: Rename "required-opp" as "required-opps" PM / OPP: dt-bindings: Make "opp-hz" optional for power domains PM / OPP: "opp-hz" is optional for power domains PM / OPP: Implement dev_pm_opp_of_add_table_indexed() PM / OPP: Implement of_dev_pm_opp_find_required_opp() PM / OPP: Implement dev_pm_opp_get_of_node() PM / Domain: Add struct device to genpd PM / Domain: Add support to parse domain's OPP table PM / Domain: Implement of_dev_pm_genpd_opp_to_performance_state() PM / OPP: Get performance state using genpd helper PM / OPP: Remove dev_pm_opp_{un}register_get_pstate_helper() Documentation/devicetree/bindings/opp/opp.txt | 7 +- .../devicetree/bindings/power/power_domain.txt | 6 +- drivers/base/power/domain.c | 127 +++++++++++++-- drivers/opp/core.c | 174 +++++++-------------- drivers/opp/debugfs.c | 15 +- drivers/opp/of.c | 169 +++++++++++++++++--- drivers/opp/opp.h | 6 +- include/linux/pm_domain.h | 13 ++ include/linux/pm_opp.h | 27 ++-- 9 files changed, 375 insertions(+), 169 deletions(-) -- 2.15.0.194.g9af6a3dea062 Reviewed-by: Rob Herring