Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752475AbdHIWUA (ORCPT ); Wed, 9 Aug 2017 18:20:00 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52977 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752401AbdHIWT6 (ORCPT ); Wed, 9 Aug 2017 18:19:58 -0400 From: Eddie James To: linux@roeck-us.net Cc: jdelvare@suse.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, joel@jms.id.au, jk@ozlabs.org, andrew@aj.id.au, cbostic@linux.vnet.ibm.com, eajames@linux.vnet.ibm.com, "Edward A. James" Subject: [PATCH 0/4] drivers/hwmon/pmbus: Core extensions for STATUS_WORD support and debugfs Date: Wed, 9 Aug 2017 17:19:13 -0500 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 17080922-8235-0000-0000-00000C127C5B X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007515; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000219; SDB=6.00899999; UDB=6.00450535; IPR=6.00680205; BA=6.00005520; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016617; XFM=3.00000015; UTC=2017-08-09 22:19:24 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17080922-8236-0000-0000-00003D2377DC Message-Id: <1502317157-12648-1-git-send-email-eajames@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-09_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1708090349 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1376 Lines: 33 From: "Edward A. James" This series adds some functionality to the pmbus core. The first two patches provide support for the STATUS_WORD register. This allows more default alarm attributes to be used, as the upper byte of the status register is available. The third patch then uses the STATUS_INPUT bit of the status register to setup boolean attributes for input voltage and input power attributes. The fourth patch provides support for raw reads of pmbus status registers through the debugfs interface. These can be very useful for hardware diagnostics, especially on multi-page pmbus devices, as user-space access of the i2c space could corrupt the pmbus page accounting. Since RFC series: * Just use u16 instead of complicated u8 method for STATUS_WORD. * Re-ordered the changes. * Added conditional for creating bool attr for higher byte STATUS_WORD bits. Edward A. James (4): drivers/hwmon/pmbus: Switch status registers to 16 bit drivers/hwmon/pmbus: Access word data for STATUS_WORD drivers/hwmon/pmbus: Add generic alarm bit for iin and pin drivers/hwmon/pmbus: Add debugfs for status registers drivers/hwmon/pmbus/pmbus.c | 24 +++- drivers/hwmon/pmbus/pmbus.h | 11 ++ drivers/hwmon/pmbus/pmbus_core.c | 251 +++++++++++++++++++++++++++++++++++---- 3 files changed, 263 insertions(+), 23 deletions(-) -- 1.8.3.1