From patchwork Wed Aug 30 06:17:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Reid X-Patchwork-Id: 807424 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xhwKR6LyMz9t16 for ; Wed, 30 Aug 2017 16:17:47 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750803AbdH3GRp (ORCPT ); Wed, 30 Aug 2017 02:17:45 -0400 Received: from anchovy3.45ru.net.au ([203.30.46.155]:45745 "EHLO anchovy.45ru.net.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750828AbdH3GRo (ORCPT ); Wed, 30 Aug 2017 02:17:44 -0400 Received: (qmail 1147 invoked by uid 5089); 30 Aug 2017 06:17:41 -0000 Received: by simscan 1.2.0 ppid: 1087, pid: 1089, t: 0.0327s scanners: regex: 1.2.0 attach: 1.2.0 clamav: 0.88.3/m:40/d:1950 X-RBL: $rbltext Received: from unknown (HELO preid-centos7.electromag.com.au) (preid@electromag.com.au@203.59.230.133) by anchovy2.45ru.net.au with ESMTPA; 30 Aug 2017 06:17:41 -0000 Received: by preid-centos7.electromag.com.au (Postfix, from userid 1000) id 2A671301CB835; Wed, 30 Aug 2017 14:17:40 +0800 (AWST) From: Phil Reid To: jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, wsa@the-dreams.de, tim@krieglstein.org, preid@electromag.com.au, linux-i2c@vger.kernel.org Subject: [PATCH v3 0/4] i2c: designware: add i2c gpio recovery option Date: Wed, 30 Aug 2017 14:17:33 +0800 Message-Id: <1504073857-122449-1-git-send-email-preid@electromag.com.au> X-Mailer: git-send-email 1.8.3.1 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Changes from V1: - In review Andy suggested change the i2c core to use the gpiod I've added a patch that allows the gradual switching of drivers to using gpiod interface. The old interface is preserved so that changes can be made incrementally. - I've update Tim's patch for the designware driver to use the new interface. Tweaked a couple of things to his patch and fixed up things Andy id in last review. The core changes in p1 don't require the get/set scl/sda functions. Hopefully I've done the right thing with preserving authorship and signoff. Changes from V2: - Rebase on https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git/ i2c/for-next No intentional changes, but needed to move i2c_dw_plat_prepare_clk to common for the master recovery functions to use. which is included as two additional patches. Phil Reid (4): i2c: Switch to using gpiod interface for gpio bus recovery i2c: designware: move i2c_dw_plat_prepare_clk to common i2c: designware: rename i2c_dw_plat_prepare_clk to i2c_dw_prepare_clk Tim Sander (1): i2c: designware: add i2c gpio recovery option drivers/i2c/busses/i2c-designware-common.c | 24 ++++++++++-- drivers/i2c/busses/i2c-designware-core.h | 2 + drivers/i2c/busses/i2c-designware-master.c | 57 +++++++++++++++++++++++++++++ drivers/i2c/busses/i2c-designware-platdrv.c | 18 ++------- drivers/i2c/i2c-core-base.c | 22 +++++++++-- include/linux/i2c.h | 2 + 6 files changed, 103 insertions(+), 22 deletions(-)