From patchwork Thu Jun 22 12:56:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 106207 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp119088obh; Thu, 22 Jun 2017 05:58:26 -0700 (PDT) X-Received: by 10.84.225.18 with SMTP id t18mr2822530plj.273.1498136306138; Thu, 22 Jun 2017 05:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498136306; cv=none; d=google.com; s=arc-20160816; b=LYAJqawmiHLQAVVl4HDdvfCG5pWuBEdZRBpXP2Z1pIhcOLK5VnUWrrSeZ7SR4zXkYD WHTTOpy2Qmvl6jS02IA0tIhQpdhwUajB9bQhXvUInkbJfkupOj6gyjwLxD8cnugrpR1O uSb0aQOpm1cEygoS/fc0SilVu8lBekDQyxvgZ4/Zv+0j0hIyh3h4pbuDbgCm13POW4jx KK4uqqnK3aaFq1otuBlK0uubhXQTVd5i5m75i452/VZORg5MLVYZlQtNAq3sV01sbJSR Baf/pVPt5R6S+yDsn5exQ4Nvfe78J8Qih1Czpe/U+7PoKd/Pyw0Fu4TxwrgHFRD5ACtC vWbw== 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 :dmarc-filter:arc-authentication-results; bh=otXS6oIufl61hN+VXMT1SqsUsdGVBlvd7BB/84yNrR8=; b=FibdEsbNMAPELuRpNvgTgt1XoPKp6c5/FEt9FUjEeCcemKRfwUNtVl2axfmYFWPKWu 6OR9/IG0wGkkzoinoxM5KzYwrGK0S9PFWDMHH2xAMPIZgQkx9s8Z9+QTaX7ES4b7NcL2 bnt2w7Rig2xQW1J2AdK5dOX6AcBpYP4pZOIxAbu36lCuVqAAuQhqbH+Zf9qzuE7QiLIf nNdhqJ2ujREfmfj3ekJhU6n1ETZSj4MLxrdwB34YJEQZXowP+OJep91G9m3gUa5Do3E6 I/seYfG/yYrGqYWAvZ20wG1Z+oVlu8sJ3udWxJtGH1E/z8d2d8+I5jZm/5aDWAJD6YIg 0PlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si161907pff.83.2017.06.22.05.58.26; Thu, 22 Jun 2017 05:58:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-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-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751149AbdFVM6Z (ORCPT + 1 other); Thu, 22 Jun 2017 08:58:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:57660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750847AbdFVM6Y (ORCPT ); Thu, 22 Jun 2017 08:58:24 -0400 Received: from localhost.localdomain (li411-102.members.linode.com [106.187.91.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D39352187A; Thu, 22 Jun 2017 12:58:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D39352187A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=shawnguo@kernel.org From: Shawn Guo To: Wolfram Sang Cc: Baoyou Xie , Xin Zhou , Jun Nie , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Shawn Guo Subject: [PATCH v2 0/2] Add I2C driver for ZTE ZX2967 family SoCs Date: Thu, 22 Jun 2017 20:56:53 +0800 Message-Id: <1498136215-8102-1-git-send-email-shawnguo@kernel.org> X-Mailer: git-send-email 1.9.1 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Shawn Guo It's the second posting of the patches adding I2C driver for ZTE ZX2967 family SoCs. Thanks a lot for Wolfram's review comments on v1 patch, which helps identify issues with NACK handling. Changes for v2: - Add COMPILE_TEST for Kconfig option dependency. - Drop warning message for unsupported SMBus transfer, since the driver will fall back to emulate them via I2C anyway. - Kill ZX2967_I2C_FUNCS define by returning I2C_FUNC_XXX directly. - Drop error message for i2c_add_numbered_adapter() check, since the core will do the reporting. - Drop the error checking from zx2967_i2c_reset_hardware() which is useless now, and add it into irq handler for proper NACK handling. Baoyou Xie (2): dt: bindings: add documentation for zx2967 family i2c controller i2c: zx2967: add i2c controller driver for ZTE's zx2967 family .../devicetree/bindings/i2c/i2c-zx2967.txt | 22 + drivers/i2c/busses/Kconfig | 9 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-zx2967.c | 609 +++++++++++++++++++++ 4 files changed, 641 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-zx2967.txt create mode 100644 drivers/i2c/busses/i2c-zx2967.c -- 1.9.1