Received: by 10.213.65.68 with SMTP id h4csp587060imn; Tue, 13 Mar 2018 14:02:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELuupkobPjw+W4f7Oxlu9NnSFRUXvaF0QkJYn4tyCBU1lrZMMauHWLu7Y1WuhcIJYBzfIJ04 X-Received: by 2002:a17:902:aa43:: with SMTP id c3-v6mr1739098plr.357.1520974971150; Tue, 13 Mar 2018 14:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520974971; cv=none; d=google.com; s=arc-20160816; b=Hh2UqJj08UTJuOxERFudgvOr/Ho7iiUY5UMwfKDEbXefvm8sysLJZd3cM6Vbh8t8v1 wuD8cJ8uOtRG8dM8j2615E6PVoeOLehpvZ/4qpFmaPYclFsqnQwSaa1gAFgeSB4Jf8CR XHlnU3iJI9O75PLRjU04acAPHMw263liwlawS6PdleDHRiFlc7/H5rBtlx9/q2uwgLns JGHfFJ7bT+RiftW7B2R4sxS46vz7b4HKAqPUciMpwYuSpO8T7yhhfy4CyZoV5o2o6Z9Y 1h0OTkhoDqnpff0YyN9yBnLK1VchCHdeqelZYD090xgjVSSZvJiduAUBPcE/C5g8tWXp 9XHg== 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=Ok+Y0QQWwP2Zta9NLyL3Tgv8SaOdeNYaAiCcTQqtJaQ=; b=IM/F10zj04MS0eejqHKoQXWByKkohHICDQEZCGghPZt4GZXA6T8h1IDbs/MLtCmiBh Vs4BZuRoD2JHqp/8Dq2bKXMsNi3n3OEdcjWkAM83REs0dV5NvVKCbjczxV/dX+cjKPgW f4ZsItNKXHYlJBOSyQa2b+e8JzMMMwGsJ7/kp1BAbN+tBuEPTSbkZE0NHKvqEAsJWMhL 1vh72T4qsmVo6wKDQMI5dtQolLMoGGjskV6JLqGJOHjTew3waCPxrjfAQAjX/kAC/thR y2b8S3oMkid1C1Urw7xUFIooHYRYaD/1MUZTf1mJPJ0STWIjbPW2GcNL1QoFFpDsQugc loKg== 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 j25si655457pgn.592.2018.03.13.14.02.35; Tue, 13 Mar 2018 14:02:51 -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 S1753221AbeCMU7T (ORCPT + 99 others); Tue, 13 Mar 2018 16:59:19 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60814 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751606AbeCMU7R (ORCPT ); Tue, 13 Mar 2018 16:59:17 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2DKtLDn059410 for ; Tue, 13 Mar 2018 16:59:16 -0400 Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gpnxgrgd2-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 13 Mar 2018 16:59:16 -0400 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Mar 2018 16:59:14 -0400 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 Mar 2018 16:59:11 -0400 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2DKxBh040108240; Tue, 13 Mar 2018 20:59:11 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 19A82AE04E; Tue, 13 Mar 2018 17:00:41 -0400 (EDT) Received: from talon7.ibm.com (unknown [9.85.147.96]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id 66542AE03C; Tue, 13 Mar 2018 17:00:40 -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, Eddie James Subject: [PATCH v2 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces Date: Tue, 13 Mar 2018 15:59:07 -0500 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 18031320-0044-0000-0000-000003F30F71 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008667; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.01002601; UDB=6.00510170; IPR=6.00781931; MB=3.00020014; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-13 20:59:13 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031320-0045-0000-0000-000008230F81 Message-Id: <1520974749-5372-1-git-send-email-eajames@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-13_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-1803130233 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 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 | 341 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 340 insertions(+), 1 deletion(-) -- 1.8.3.1