From patchwork Thu Sep 20 16:14:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 10608011 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 48B0F161F for ; Thu, 20 Sep 2018 16:14:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7A212E37F for ; Thu, 20 Sep 2018 16:14:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C11D92E268; Thu, 20 Sep 2018 16:14:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 758942E0A9 for ; Thu, 20 Sep 2018 16:14:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729017AbeITV6s (ORCPT ); Thu, 20 Sep 2018 17:58:48 -0400 Received: from sauhun.de ([88.99.104.3]:60904 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbeITV6r (ORCPT ); Thu, 20 Sep 2018 17:58:47 -0400 Received: from localhost (i577B999D.versanet.de [87.123.153.157]) by pokefinder.org (Postfix) with ESMTPSA id BF4552C3256; Thu, 20 Sep 2018 18:14:32 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Stefan Lengfeld , preid@electromag.com.au, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Keerthy , Tero Kristo , Grygorii Strashko , Andy Shevchenko , Wolfram Sang Subject: [RFC PATCH 0/4] i2c: core: introduce master_xfer_irqless Date: Thu, 20 Sep 2018 18:14:19 +0200 Message-Id: <20180920161423.13990-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.18.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To keep the discussion about master_xfer_irqless going, I post here a draft how I envision the changes to the I2C core. They are only build tested. I am unsure if I can test them on hardware before next week, so I'll send them around as RFC already, so people can get an idea and comment. Maybe Stefan has some bandwidth to test his imx driver implementation on top of this? A branch can be found here: git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/i2c/xfer_irqless Happy hacking and thanks for all the input to this, Wolfram Wolfram Sang (4): i2c: core: remove outdated DEBUG output i2c: core: remove level of indentation in i2c_transfer i2c: core: use I2C locking behaviour also for SMBUS i2c: core: introduce master_xfer_irqless callback drivers/i2c/i2c-core-base.c | 44 +++++++++++++----------------------- drivers/i2c/i2c-core-smbus.c | 7 +++++- drivers/i2c/i2c-core.h | 12 ++++++++++ include/linux/i2c.h | 10 +++++--- 4 files changed, 41 insertions(+), 32 deletions(-) Acked-by: Tony Lindgren Tested-by: Keerthy