Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752370AbdGEVhI (ORCPT ); Wed, 5 Jul 2017 17:37:08 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54892 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751659AbdGEVhG (ORCPT ); Wed, 5 Jul 2017 17:37:06 -0400 From: Eddie James To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, bradleyb@fuzziesquirrel.com, jk@ozlabs.org, cbostic@linux.vnet.ibm.com, joel@jms.id.au, andrew@aj.id.au, eajames@linux.vnet.ibm.com, "Edward A. James" Subject: [PATCH v2 0/5] drivers/fsi: Add SBEFIFO and OCC drivers Date: Wed, 5 Jul 2017 16:36:52 -0500 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 17070521-0036-0000-0000-00000240B2DC X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007326; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000214; SDB=6.00883362; UDB=6.00440674; IPR=6.00663554; BA=6.00005454; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016097; XFM=3.00000015; UTC=2017-07-05 21:37:03 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17070521-0037-0000-0000-000040FC5317 Message-Id: <1499290617-2598-1-git-send-email-eajames@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-05_15:,, 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-1703280000 definitions=main-1707050357 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1840 Lines: 40 From: "Edward A. James" This series adds two FSI-based device drivers. The OCC driver is dependent on the SBEFIFO driver, as a user of it's in-kernel API. The in-kernel API provided by the OCC driver will be used by a hwmon driver (on the lkml as "Add On-Chip Controller (OCC) hwmon driver"). Changes since v1: * Split bindings into separate patch and added SBEFIFO device binding * Fixed #includes * Fix SBEFIFO race condition between write() and poll_timer(). * Followed Rob's suggestion to just create one platform device for hwmon driver, instead of using the device tree. * Also check for "command in progress" response from OCC and try a while Edward A. James (5): drivers/fsi: Add SBEFIFO FSI client device driver drivers/fsi/sbefifo: Add in-kernel API drivers/fsi: Add On-Chip Controller (OCC) driver drivers/fsi/occ: Add in-kernel API Documentation/devicetree/bindings: Add FSI device documentation .../devicetree/bindings/fsi/ibm,p9-occ.txt | 15 + .../devicetree/bindings/fsi/ibm,p9-sbefifo.txt | 20 + drivers/fsi/Kconfig | 17 + drivers/fsi/Makefile | 2 + drivers/fsi/fsi-sbefifo.c | 932 +++++++++++++++++++++ drivers/fsi/occ.c | 803 ++++++++++++++++++ include/linux/fsi-sbefifo.h | 30 + include/linux/occ.h | 41 + 8 files changed, 1860 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.txt create mode 100644 drivers/fsi/fsi-sbefifo.c create mode 100644 drivers/fsi/occ.c create mode 100644 include/linux/fsi-sbefifo.h create mode 100644 include/linux/occ.h -- 1.8.3.1