From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Lengfeld Subject: Re: [PATCH 03/12] i2c: core: introduce callbacks for atomic transfers Date: Mon, 15 Apr 2019 23:57:48 +0200 Message-ID: <20190415215748.e6jrii25nqliy7me@porty> References: <20190403124019.8947-1-wsa+renesas@sang-engineering.com> <20190403124019.8947-4-wsa+renesas@sang-engineering.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20190403124019.8947-4-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peter Rosin , linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, Linus Walleij , Andy Shevchenko List-Id: linux-tegra@vger.kernel.org Hi Wolfram, On Wed, Apr 03, 2019 at 02:40:10PM +0200, Wolfram Sang wrote: > We had the request to access devices very late when interrupts are not > available anymore multiple times now. Mostly to prepare shutdown or > reboot. Allow adapters to specify a specific callback for this case. > Note that we fall back to the generic {master|smbus}_xfer callback if > this new atomic one is not present. This is intentional to preserve the > previous behaviour and avoid regressions. Because there are drivers not > using interrupts or because it might have worked "accidently" before. > > Signed-off-by: Wolfram Sang Tested-by: Stefan Lengfeld Kind regards, Stefan From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01390C10F0E for ; Mon, 15 Apr 2019 21:57:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2B01206BA for ; Mon, 15 Apr 2019 21:57:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IMdYNYXk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2B01206BA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=stefanchrist.eu Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NKu/CKl2wuAZ9Nh65XJWkDIWtcmi8WYgHjk4KzwYlhM=; b=IMdYNYXkDzjGVR 1g/YO+9iVKcmIB0/U0Bzew5W6oGladYSovjbP5agQLc/J9q0OAmeaSYGSvuG1E0bOtheL37qEJFDF sdzLlf3nGIIeCS0hrBWmOB7/HsHEvrc2R61bUDN3KQvlqGKqzcIHEHbaMB+QIO8uQaXHx6ZVY/8xz Icw/AVdRuWGxrK++OJcmwReUYMqWijFxauIbpw2s99tsOliUH4nlyxpd/xBlPiJEJG2Q2L96bRuXp WJ3xndCkN2T/bMlnOvZFJRK0e3RbP7/7+tFKynC/UiFfZSE8BhpOY9f3tfuZujCXn3erQxRo+lHaS sSyi5fBjXfRodITahT5Q==; 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 1hG9bt-0008FF-Ju; Mon, 15 Apr 2019 21:57:53 +0000 Received: from stcim.de ([2a01:4f8:120:63a3::2]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hG9bq-0008Eu-Of for linux-arm-kernel@lists.infradead.org; Mon, 15 Apr 2019 21:57:52 +0000 Received: from xdsl-89-0-59-235.nc.de ([89.0.59.235] helo=porty) by stcim with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hG9bo-00010H-Rg; Mon, 15 Apr 2019 23:57:49 +0200 Date: Mon, 15 Apr 2019 23:57:48 +0200 From: Stefan Lengfeld To: Wolfram Sang Subject: Re: [PATCH 03/12] i2c: core: introduce callbacks for atomic transfers Message-ID: <20190415215748.e6jrii25nqliy7me@porty> References: <20190403124019.8947-1-wsa+renesas@sang-engineering.com> <20190403124019.8947-4-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190403124019.8947-4-wsa+renesas@sang-engineering.com> X-PGP-Key: https://stefanchrist.eu/personal/Stefan_Lengfeld_0xE44A23B289092311.asc User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190415_145750_949971_A0099601 X-CRM114-Status: UNSURE ( 9.32 ) 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: Andy Shevchenko , Linus Walleij , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, Peter Rosin , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Wolfram, On Wed, Apr 03, 2019 at 02:40:10PM +0200, Wolfram Sang wrote: > We had the request to access devices very late when interrupts are not > available anymore multiple times now. Mostly to prepare shutdown or > reboot. Allow adapters to specify a specific callback for this case. > Note that we fall back to the generic {master|smbus}_xfer callback if > this new atomic one is not present. This is intentional to preserve the > previous behaviour and avoid regressions. Because there are drivers not > using interrupts or because it might have worked "accidently" before. > > Signed-off-by: Wolfram Sang Tested-by: Stefan Lengfeld Kind regards, Stefan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel