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: 10608125 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 29EF6161F for ; Thu, 20 Sep 2018 16:26:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1539E2E145 for ; Thu, 20 Sep 2018 16:26:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 074322E14F; Thu, 20 Sep 2018 16:26:59 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 973982E145 for ; Thu, 20 Sep 2018 16:26:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=7CuF6K24TdJD60o1AVvo9H6suFvPIxuC3M8GRkjZKP4=; b=LZv 0mqV/1bhy039qrj+S9cdCdOoH39deLisTSK/6qicb7P0CSLsYpwyFjwFGCHNOucrkp8qVOhu0sCC2 Zd9mSi8+94l6hsdpa3UlNwOz51WRhdSe1fzvexyJ1f79d5okcDCiY95nIxTGie7H7MEYmGyQ+lrJz fLuU28po4bFNEVFCbEawsXMMyla5awzfvdLka6KzLltM6qiVjAJBrqZgzCnL1vPgpcwgesuQv+f+4 et8yXUGTL3HddUIj+GL40DVhtRqubHsecZ5bDJbGujdosrPLxPgDWuVVvMAz97ZD5wNe11VDQdMH+ jb+A+fPgZtEXx+fYhSaSZPOwQzYL++Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g31n3-00025y-9G; Thu, 20 Sep 2018 16:26:53 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g31mq-0001pa-DP for linux-arm-kernel@bombadil.infradead.org; Thu, 20 Sep 2018 16:26:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=aEFaKEYI/Y24qP7CHMMk8G5lfgf7ibTzvEzCok9a1S4=; b=A2uwVjZNMC7DIWExtqK8BNLCq yK6a+NlKMKI2qR9ttzVmhH/ihIr+0ukS/6W+LrOOjHrU7+pk6EPqKutt7wnjJKFqorgUui5GshP3w u62NIY8/6InUgAFREh4LnZF3j0mE/hKKuu3F3Knmy+XpuvkwEYp5ljc1iKYZDPTNJ2uY9b9GapLp5 eBBvze3j/uHD+JJZm0lLt3orm36MGFw55TNvZpWd2/p2CZGWf1xR2JG61tEVGqPFuiIfxgULTRWag DqgqtMxM1TR9CfBt7dAvkhGMDgdsWGTHhlTlFJIhuvK2+MmCw27CBbtNdgku05bsSbShrSUeF/z9P gYwkqp0bA==; Received: from sauhun.de ([88.99.104.3] helo=pokefinder.org) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g31bI-0003Cg-US for linux-arm-kernel@lists.infradead.org; Thu, 20 Sep 2018 16:14:46 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180920_171444_998211_18F24ABE X-CRM114-Status: UNSURE ( 8.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tero Kristo , preid@electromag.com.au, Keerthy , Andy Shevchenko , linux-renesas-soc@vger.kernel.org, Wolfram Sang , Grygorii Strashko , Stefan Lengfeld , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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