Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp823866imm; Wed, 18 Jul 2018 11:16:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdFECLXw3zts9q42nQjQSd9WLczXGzb7VEByladgMxXTcqT0q3Ogxj4DX+zBxibn9cj0Xez X-Received: by 2002:a17:902:b401:: with SMTP id x1-v6mr6905680plr.236.1531937769658; Wed, 18 Jul 2018 11:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531937769; cv=none; d=google.com; s=arc-20160816; b=fit1LODYJI42metJ+XCo51FELNAtvDYrQjQPseLGsH4SY/vDkGhrzpYdQ5NddANzdI +aiJl39Z428lykfQlwMtNnmOEThEQeF9bCG7GsXzFA4ZkwRR0lnUgbRi/BNuztU/Saro F+wIjbLPVtuicaN4l2djYxiMDS437Kno2XfAgcnrpSe/eTVqRPmvRAsUMoAitAO4Icj6 Pao2hMTcechbSF9GrVouDOpFnrZDRs/RS1fg4Gp0ed1XRiLlMqVdTrRmz02Q02CbPUqX 8LoRsZJjSzW0+WKeqsF00Om2EAbpwYXPlB+qOLcSDylOqqu4tb+vaqsqgIvVm/09J15r 7Hhw== 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 :arc-authentication-results; bh=N0/U55b9CI7LuKgqrXjJ9kQBDP8kcPdESM+TrFKHJfg=; b=k2paPIPjvwmPNY/qhU3rGFkWcxDLDhnlt4f2HE0FRkRvnxoHq+9ily1ndIJbSq3PYT vg8TLD+CPy53xgrUjOUy7UIhQWkEsc/lTRsbv542WSHDz4ZTqSOdN6Rv02wRyjUGKjCG mx6viy0J0S6z1ghhLrrKGSR3TkDwKOqxLtcKjI0m9lybfk9yPMmV5TIFLBRr5q2A7opg xHuJNQ8J8mzFiytC0Kdi6RaRzTr+YS9Xu1q98gCSEqC1TllWx52dPUngPVlQteG/FveH D1vJ/wFMPPT3ECJzRUV0Y1UHWyvHwrXSVx1GeCAz/22b6QLecLbc8CRB+wvKLZR1daGE yWqw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11-v6si3578208plp.303.2018.07.18.11.15.54; Wed, 18 Jul 2018 11:16:09 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729753AbeGRSxd (ORCPT + 99 others); Wed, 18 Jul 2018 14:53:33 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:42390 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726982AbeGRSxd (ORCPT ); Wed, 18 Jul 2018 14:53:33 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6IIEOWV098979 for ; Wed, 18 Jul 2018 14:14:28 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ka7xxxqem-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 18 Jul 2018 14:14:27 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Jul 2018 19:13:43 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 18 Jul 2018 19:13:40 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6IIDdQO42532924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Jul 2018 18:13:39 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D74A2AE051; Wed, 18 Jul 2018 21:13:54 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 093F3AE045; Wed, 18 Jul 2018 21:13:53 +0100 (BST) Received: from oc4502181600.ibm.com (unknown [9.79.222.248]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 18 Jul 2018 21:13:52 +0100 (BST) From: Shilpasri G Bhat To: mpe@ellerman.id.au, linux@roeck-us.net Cc: linuxppc-dev@lists.ozlabs.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, ego@linux.vnet.ibm.com, Shilpasri G Bhat Subject: [PATCH v6 0/2] hwmon/powernv: Add attributes to enable/disable sensors Date: Wed, 18 Jul 2018 23:43:28 +0530 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 18071818-0008-0000-0000-00000254B5A2 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18071818-0009-0000-0000-000021BB0D3C Message-Id: <1531937610-6454-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-18_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=540 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807180199 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds new attribute to enable or disable a sensor at runtime. Changes from v5: - Dont store the sensor node and parse the device-tree for each sensor to find the sensor-group during init v5 : https://lkml.org/lkml/2018/7/15/15 v4 : https://lkml.org/lkml/2018/7/6/379 v3 : https://lkml.org/lkml/2018/7/5/476 v2 : https://lkml.org/lkml/2018/7/4/263 v1 : https://lkml.org/lkml/2018/3/22/214 Shilpasri G Bhat (2): powernv:opal-sensor-groups: Add support to enable sensor groups hwmon: ibmpowernv: Add attributes to enable/disable sensor groups Documentation/hwmon/ibmpowernv | 43 +++- arch/powerpc/include/asm/opal-api.h | 1 + arch/powerpc/include/asm/opal.h | 2 + .../powerpc/platforms/powernv/opal-sensor-groups.c | 28 +++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + drivers/hwmon/ibmpowernv.c | 249 ++++++++++++++++++--- 6 files changed, 290 insertions(+), 34 deletions(-) -- 1.8.3.1