Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754156AbcLSUKj (ORCPT ); Mon, 19 Dec 2016 15:10:39 -0500 Received: from smtp-out-so.shaw.ca ([64.59.136.138]:54258 "EHLO smtp-out-so.shaw.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751758AbcLSUKg (ORCPT ); Mon, 19 Dec 2016 15:10:36 -0500 X-Authority-Analysis: v=2.2 cv=UeUhcOaN c=1 sm=1 tr=0 a=6xzog4CasRozao6qlzTIAw==:117 a=6xzog4CasRozao6qlzTIAw==:17 a=n5n_aSjo0skA:10 a=Q-fNiiVtAAAA:8 a=vYS9HAW8ZZy_tPZ0nXAA:9 a=Fp8MccfUoT0GBdDC_Lng:22 From: Markus Mayer To: Viresh Kumar , "Rafael J . Wysocki" Cc: Power Management List , Broadcom Kernel List , Linux Kernel Mailing List , Markus Mayer Subject: [PATCH 1/2] cpufreq: brcmstb-avs-cpufreq: extend sysfs entry brcm_avs_pmap Date: Mon, 19 Dec 2016 12:10:27 -0800 Message-Id: <20161219201028.18885-2-code@mmayer.net> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161219201028.18885-1-code@mmayer.net> References: <20161219201028.18885-1-code@mmayer.net> X-CMAE-Envelope: MS4wfMlf1h+JXr0iQj3QMLhTNqTaiUhdQqc2Gb0Q1JewXlaTJEiDgIwwGmf+jp6dGBz30yohX7AHAToP1C6Y8RKzyWHKy/4/QLvHYi7DCsPmuM7YYjXuEanW udodg/Gd3h3IUD6uBl02TrWESbHjd4uHPLnz+ba5nAztdwu9YMqucaa+y9s1bea6uaxZ2iQXcQ+JUkvUQMVNygMR/iFy5R/V2F9VzLLC5E7Fyb6PmmaPGbBC c7SvPSsRj8YVZXegwxHgzYHMEDEAbFfBJB9EHA+MUTSY7NR0bPDi2y10zDMhkeFEgkkQc37j+NRHJ3cIR9UE1QUFQgHP4vQVlRB+80rmz1JmpDnnQBo2Z+CT Nw79guDyueY1XAFWjncBkVOJX6yWNw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1180 Lines: 29 From: Markus Mayer We extend the brcm_avs_pmap sysfs entry (which issues the GET_PMAP command to AVS) to include all fields from struct pmap. This means adding mode (AVS, DVS, DVFS) and state (the P-state) to the output. Signed-off-by: Markus Mayer --- drivers/cpufreq/brcmstb-avs-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/brcmstb-avs-cpufreq.c b/drivers/cpufreq/brcmstb-avs-cpufreq.c index 4fda623..2c6e325 100644 --- a/drivers/cpufreq/brcmstb-avs-cpufreq.c +++ b/drivers/cpufreq/brcmstb-avs-cpufreq.c @@ -954,9 +954,9 @@ static ssize_t show_brcm_avs_pmap(struct cpufreq_policy *policy, char *buf) brcm_avs_parse_p1(pmap.p1, &mdiv_p0, &pdiv, &ndiv); brcm_avs_parse_p2(pmap.p2, &mdiv_p1, &mdiv_p2, &mdiv_p3, &mdiv_p4); - return sprintf(buf, "0x%08x 0x%08x %u %u %u %u %u %u %u\n", + return sprintf(buf, "0x%08x 0x%08x %u %u %u %u %u %u %u %u %u\n", pmap.p1, pmap.p2, ndiv, pdiv, mdiv_p0, mdiv_p1, mdiv_p2, - mdiv_p3, mdiv_p4); + mdiv_p3, mdiv_p4, pmap.mode, pmap.state); } static ssize_t show_brcm_avs_voltage(struct cpufreq_policy *policy, char *buf) -- 2.7.4