Received: by 10.213.65.68 with SMTP id h4csp1176863imn; Wed, 14 Mar 2018 11:54:49 -0700 (PDT) X-Google-Smtp-Source: AG47ELsSG8I8jtA3xUNqAa+iOoedBwS+uxHW0BLkUAceUUUSncRIBORyHMRnfbH5Kfi2Xv976/ms X-Received: by 10.98.63.80 with SMTP id m77mr2434859pfa.122.1521053689017; Wed, 14 Mar 2018 11:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521053688; cv=none; d=google.com; s=arc-20160816; b=ZYUspAYi4oVC8ujQJ1M6J2+sVymMQDv/DoWbJVt13tVB3pVDXU98bvF4XPAdmaIHKW FPRyH8glC4Og/uOVUSlAC/PbIUAmXpYWe8OYIvYlgHagv4JwIW93cn2zhm3krn3zjAdy dh9aryBiD1Q3YTFLN2S15GgdtHbcGEKboh+O58VKvedUiARdxN5/PtutqFV3AoeaEw4m HeHg+syolJtAumYH7tb7h7me5g2tUU+SbK3V/kEObgqoMTze2g2uq8qJSmHtrJ3E7U4r X6djV3WiSlRKNiY3JYdb2yKDwAEFWHwPefUAOp/axP7nx2wLCg7aGTwfy6XRZlqak57q /I8w== 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=dSVgNPSIRIapeQGj9qscA9gok0o+1wY9EZbtHCG91Qg=; b=CSanW/Tk1d1H/Kexpj38qSQmotQ21/oldoPFIPPtR1xIWaQn4No8PfUpMl6f/aWClY cScwRufGKfr/3IgCagIkWXS8dSbWI9FFNU22sudBbu7ANR4bztyTbGiMY3N0VV9pq3uL RsKgVUBLolxLGhazOpPoDpajBwonk4IKALBavA6tc2M90rzWAvKR6/lPpWf8bIfQunHv ZukzQYeB0EWtHt7SSdcORVH1nF+kKJbmdAAIMozoEC8D2CNCmy1aLsE/v+JF+gQHwhKm lBkzCyysPwlHbHZblsjla7LrPfawTWr4XmhkYslbnkiDcmKbtqgdcB6bey5g6UwW2/mp CnSw== 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 c63si2555780pfd.51.2018.03.14.11.54.22; Wed, 14 Mar 2018 11:54:48 -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 S1751492AbeCNSwk (ORCPT + 99 others); Wed, 14 Mar 2018 14:52:40 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:46068 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170AbeCNSwj (ORCPT ); Wed, 14 Mar 2018 14:52:39 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2EIn96h080004 for ; Wed, 14 Mar 2018 14:52:39 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gq6ney9yd-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 14 Mar 2018 14:52:38 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Mar 2018 14:52:37 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 14 Mar 2018 14:52:33 -0400 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2EIqWq443253956; Wed, 14 Mar 2018 18:52:32 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DB4DEAE03C; Wed, 14 Mar 2018 14:54:02 -0400 (EDT) Received: from talon7.ibm.com (unknown [9.41.241.240]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id 452FFAE03B; Wed, 14 Mar 2018 14:54:02 -0400 (EDT) From: Eddie James To: linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jdelvare@suse.com, linux@roeck-us.net, joel@jms.id.au, andy.shevchenko@gmail.com, Eddie James Subject: [PATCH v3 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces Date: Wed, 14 Mar 2018 13:52:29 -0500 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 18031418-0024-0000-0000-0000033683E7 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008674; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.01003034; UDB=6.00510429; IPR=6.00782364; MB=3.00020035; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-14 18:52:35 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031418-0025-0000-0000-00004753D4C1 Message-Id: <1521053551-29903-1-git-send-email-eajames@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-14_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803140206 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd device so that users can query and set the state of the gpio pins. Add a debugfs interface using the existing pmbus debugfs directory to provide MFR_STATUS and the status of the gpi faults to users. Changes since v2: - split the gpio registration into it's own function Changes since v1: - dropped dev_err messages - made gpio chip registration conditional on having gpio pins - made mfr_status debugfs attribute more simple Christopher Bostic (2): hwmon: (ucd9000) Add gpio chip interface hwmon: (ucd9000) Add debugfs attributes to provide mfr_status drivers/hwmon/pmbus/ucd9000.c | 340 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 339 insertions(+), 1 deletion(-) -- 1.8.3.1