From patchwork Fri Dec 22 07:26:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 122627 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1908503qgn; Thu, 21 Dec 2017 23:30:13 -0800 (PST) X-Google-Smtp-Source: ACJfBouImszlTo1vExfxu9caya0w+i0k422wHXyB2BkvuVmgNLVjcakCrwQ+U7Y6iyex1yuqbhrX X-Received: by 10.99.172.83 with SMTP id z19mr12323849pgn.271.1513927813613; Thu, 21 Dec 2017 23:30:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513927813; cv=none; d=google.com; s=arc-20160816; b=Fa07PKmYjsHLkeHUYMV6f0sohK8kwNtTcUVjUJ/gkXXFdxwMN3bRXnKW2FuE2eYkot Ji8ZIqax6qs+4udYDcKNMbjx/CG/K35ej/BGBsPxAcKN1hhiO3GEszgrqeBSIAX6hJKk EszVT3uQDoMpbkDOxkFzKPyUQd/33F6R66nh6lGWNFKNKjaSRQL2eDVjHxHJpgmFfMYK 34jF3pEMkGi0rcuwadYR+aziOrHMhXUNIydWuss+12dYCB0gCEcnqAp5c4BTrnLA40Z7 3hyaJTzp6pBj6SqUcB36nrh5kgugRJRyvpN708xCILwahoBQX8xYrZ0xB/+F6i7jJ37n 87rg== 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=XNG+/pq5nm9Edl2JVkWnvg8xGM4EKf0uf6N5rR3UJEA=; b=vybTb8Y25T1vjXK8kB+Yd2/06EodNV7mJm6XQkxbTTJT44R2pn0R07zdg/716+CTYr 8+63C/I4Dvq8AL8kn0C+p/fYgZlOBAA0eF04ywoYJYvBQ3ewhyPClKQolcUsLJlttrco 0IZ0MSSdJcz4wOW3njprajuIHiaDEciAkuXENn9M796AveDUOC1HhWtdVt8YMIDYmYG2 dFYqrBLZgPzYgdrpyjzFSiEYOHcnR5kcWKoB4ai0jwVmnO/bp+Q1On9aVSKBQodayuTz Y0ghNdx25tN0h2c3Miia+8wKss40UwAtxR8lc4Hf8F64QNk/9VgeQ3CNP2Kxr2ewnAqD ESPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SlL36aEo; 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 z13si16421949pfi.27.2017.12.21.23.30.12; Thu, 21 Dec 2017 23:30:13 -0800 (PST) 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=SlL36aEo; 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 S1751631AbdLVHaL (ORCPT + 11 others); Fri, 22 Dec 2017 02:30:11 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34813 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdLVHaL (ORCPT ); Fri, 22 Dec 2017 02:30:11 -0500 Received: by mail-pf0-f194.google.com with SMTP id a90so15010278pfk.1 for ; Thu, 21 Dec 2017 23:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=XNG+/pq5nm9Edl2JVkWnvg8xGM4EKf0uf6N5rR3UJEA=; b=SlL36aEovpfDzl04bUxt1A3anczyCvk2jOuNRVvIN3Z+oJ5CLRynSW4Rxfy17pA2Sj ZdfUMQonh2kvsiUad36A4LVnOgk4+zJcBZasYXZVhS+THW1vBybzjkcOuo4ROVHWhJm5 COsf3JgXmUABq/BMXKSDfU21aTKeTT1EREyuw= 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=XNG+/pq5nm9Edl2JVkWnvg8xGM4EKf0uf6N5rR3UJEA=; b=sBSo8Ht3mNZxdSoSsi/kXo7UHt8A3YaK1fLiTbjy60uRipVaQ1hFIGzBEgGVP703j9 mlmIJjOLSnaWXuGKLh45iaDYvI2JjQIwuEPmdbQ50EGu2uvudLrNe7Yv+aTZJJ3GYuJH Rnw/aGaVZT8NfPktuFMV8HU98Gv5vqZ591/h8JalgmkuYHKDzGbApMuAUewLmkBcuKZY g3vg6dxAvnEcT653M+3t00LMnujrf9X1qLMGaIhpsYIiVffAstpU5ojLExpaM97Asp3y dXkExSjmP2IVaAgjTTDw6zTEv+13/NHFXeSj6AEl2bm2wh1CHiNMJWoDUu6NWEA+DXfO j0WA== X-Gm-Message-State: AKGB3mIqiMcISyd6m8oyILIWDRWlW7oYgkPfJ2q0srasYD5G87sgoYV5 LRFedFjirb8Y4iZRrgSthw5/dg== X-Received: by 10.98.138.17 with SMTP id y17mr13394107pfd.122.1513927810135; Thu, 21 Dec 2017 23:30:10 -0800 (PST) Received: from localhost ([122.172.139.116]) by smtp.gmail.com with ESMTPSA id m65sm41236834pfm.41.2017.12.21.23.30.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2017 23:30:08 -0800 (PST) From: Viresh Kumar To: ulf.hansson@linaro.org, Kevin Hilman , Len Brown , Nishanth Menon , Pavel Machek , "Rafael J. Wysocki" , Stephen Boyd , Viresh Kumar Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , robh+dt@kernel.org, rnayak@codeaurora.org, sudeep.holla@arm.com, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] PM /Domain/OPP: Add support to get performance state from DT Date: Fri, 22 Dec 2017 12:56:24 +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, Now that the DT bindings [1] are already Reviewed/Acked by respective maintainers, here is the code to start using them. The first two patches provide helpers in the OPP core, [3-5]/7 update the PM domain core to start supporting domain OPP tables, etc, 6/7 updates the OPP core to use the new callback provided by the PM domains to get performance state and the last one removes the unused helpers now. This is tested on Hikey620 and works just fine. -- viresh [1] https://lkml.kernel.org/r/cover.1513591822.git.viresh.kumar@linaro.org Viresh Kumar (7): PM / OPP: Implement dev_pm_opp_of_add_table_indexed() PM / OPP: Implement of_dev_pm_opp_find_required_opp() PM / Domain: Add struct device to genpd PM / Domain: Add support to parse domain's OPP table PM / Domain: Implement of_dev_pm_genpd_get_performance_state() PM / OPP: Get performance state using genpd helper PM / OPP: Remove dev_pm_opp_{un}register_get_pstate_helper() drivers/base/power/domain.c | 159 ++++++++++++++++++++++++++++++++++++++++---- drivers/opp/core.c | 82 +---------------------- drivers/opp/of.c | 123 +++++++++++++++++++++++++++++++--- drivers/opp/opp.h | 3 +- include/linux/pm_domain.h | 12 ++++ include/linux/pm_opp.h | 22 +++--- 6 files changed, 284 insertions(+), 117 deletions(-) -- 2.15.0.194.g9af6a3dea062 Reviewed-by: Ulf Hansson Reviewed-by: Ulf Hansson Reviewed-by: Ulf Hansson