From patchwork Sun May 28 04:59:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 100611 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp904517qge; Sat, 27 May 2017 22:00:42 -0700 (PDT) X-Received: by 10.99.44.6 with SMTP id s6mr11764721pgs.25.1495947642594; Sat, 27 May 2017 22:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495947642; cv=none; d=google.com; s=arc-20160816; b=d3KAgN/bgyYkNSGHrrSCgQITilxoeajoZza7wl0riagyIJvw95WiI2StIamRFDWhZF QmiGC4IpTCdDheei17X+Npwm9CoFHwuY06aJsRbPeukfZo9F4njIRtnSHOeVFEHUf9+i c8WO9MmrXuBtRISD779R5eI41pVMBp0+iqolaZJp2dQh90TUGSNXgaOdpav+SgFtVK04 cm2ZuHZsQt/AhygBAAaJsOCttTwq2TI8ZVBm3lcJmOhJCs2iuXk2cWYHqV/OiN5dbMQX ektgOtug68P4LoLrgEApUinNEgmGJK4Chg7ni45L96v07x6ku4hb+qcCZurVrMldjxrx MzGQ== 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=YpzxB3cCLqsDeQ025/sYjqvtV955QZbhQhIPckVqgxs=; b=NfhVqkBkxNhdEgvHNlKelHkUjPUWa/3GK7tWwVslxpTbTgpbAfwL0YWxD6NPj8thHP N2d7DF7eSQV0U6QoxoTwQucmyA/WQMLQt6ZozFnhs0+sF/MBWIaIwBhoJR+OfymrW03M LOCrPYMKhDWrO269frLBKx/djUFL0ZGC/9vJnUFahoC4RseZc+2Nr76D4teah6YWyYUy zunClikFe6pXG+GhBHAwjKqkM8shMxAlHFKi+s6MgIWoOzyrgiraiviZV03ku8n723ou MSbesdjsBOPuI0oqXfIMn7m8DGMnHyg7H24eUYNl5GBPJsu3wRD/BWQeXSF2t8puu8QU buVg== 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 u140si6059018pgb.25.2017.05.27.22.00.42; Sat, 27 May 2017 22:00:42 -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 S1750885AbdE1FAl (ORCPT + 1 other); Sun, 28 May 2017 01:00:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:40870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750816AbdE1FAl (ORCPT ); Sun, 28 May 2017 01:00:41 -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 A9EB8239B6; Sun, 28 May 2017 05:00:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A9EB8239B6 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: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Baoyou Xie , Xin Zhou , Shawn Guo Subject: [PATCH 0/2] Add I2C driver for ZTE ZX2967 family SoCs Date: Sun, 28 May 2017 12:59:34 +0800 Message-Id: <1495947576-11037-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 Hi Wolfram, The ZX2967 I2C driver submission had gone through quite a number of review iterations [1], and seems close to be accepted. But for some reason, the ball got dropped from there. I'm here to pick it up and hopefully move it forward. This is basically a resend of the latest posting from Baoyou with Wolfram's comments on v7 fully addressed. Changes since v7: - Rebase and test on v4.12-rc2. - Drop the dev_err() and hardware reset on timeout, which is not really necessary. - Return -ETIMEDOUT instead of -EIO on timeout. - Unify zx2967_i2c_xfer_write_bytes() and zx2967_i2c_xfer_read_bytes() into one function zx2967_i2c_xfer_bytes(), and zx2967_i2c_xfer_write() and zx2967_i2c_xfer_read() into zx2967_i2c_xfer_msg(). Shawn [1] https://lkml.org/lkml/2017/2/22/101 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 | 610 +++++++++++++++++++++ 4 files changed, 642 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-zx2967.txt create mode 100644 drivers/i2c/busses/i2c-zx2967.c -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html