Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1178716imb; Sat, 2 Mar 2019 05:48:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwMggodfSZEe9NBEiRMOmzg+UZIflaI7PmWPCdBF6YlH55PrBtY69o3+0jBkaoxYFMn/VTM X-Received: by 2002:a62:20d2:: with SMTP id m79mr6255239pfj.135.1551534534463; Sat, 02 Mar 2019 05:48:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551534534; cv=none; d=google.com; s=arc-20160816; b=XPjpb87B48pwXAZ3iOXtFvkScaDPShx/9VsUuBLbaNG5/4MbZLm8q1NIQVsoBv39Rv M3FPoXUCb8VzmISKPNp9wqkUI6SFOL1mpTZbdC22k/ZHTn0+YgLXx1yaojwAnA7UzcuF PVxvjUv0SqYr4tvCPvMZas37pBJHs1m1Bxz0guXcze2TZNaOfYkwaMkgxxc24nsvA79z +6c3F2ykWBB2IV7mLW9l1cP7SeVU/INUshlHPGExDYc4jSFhJb9ItANYIKKfsgyNiFpu cxMwIO89gi/MxqQTemMJWynEoUre4DnhfzuAlqfMYD3yZjxlmnlIxm6nCjYZ97VwxVu9 Vhtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=IH9+T+1tVTQzZvAkd3ufVYodC50qXVrXCC8WEz/Oyjk=; b=e0z49BU+7tCtsNl9LzWLpvUvAS1/sSlQkQsOxNoFCyK1cwjXB4Snu2rKs5q93Ebsbr HUNeSosMZaXgi+mL2n7Ck3aV7MCLtjl+s74uTxnfHUdSvGHvDCaVqcqi767Cyk91LQfj y08i8LxXxiu54CC0diOwH3UP4RNjcCRFYfTz78rw8mcGAJ4amv7ygXDn/OjCC/fUHxpp V5qXCEjzwj/aKoTA+bagKfRYqA61Zw1+ToBEUcvfcxmy0cgkXoHLWAnvHWob/zlwAqCY bURGr8+vQHfFRGruq4vnsjdnRCnWyMn7r+kzm0WoPsImlj7kZ2IlpAaxkFImg7GMFR8u UcbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 h128si702314pgc.397.2019.03.02.05.48.32; Sat, 02 Mar 2019 05:48:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726776AbfCBNru (ORCPT + 99 others); Sat, 2 Mar 2019 08:47:50 -0500 Received: from sauhun.de ([88.99.104.3]:36380 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbfCBNrt (ORCPT ); Sat, 2 Mar 2019 08:47:49 -0500 Received: from localhost (p54B33179.dip0.t-ipconnect.de [84.179.49.121]) by pokefinder.org (Postfix) with ESMTPSA id 095F84A177B; Sat, 2 Mar 2019 14:47:47 +0100 (CET) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Keerthy , Peter Rosin , Tony Lindgren , Russell King , Andy Shevchenko , Stefan Lengfeld , Phil Reid , Tero Kristo , linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org, Wolfram Sang Subject: [RFC PATCH v2 7/7] i2c: algo: bit: HACK! add atomic callback Date: Sat, 2 Mar 2019 14:47:35 +0100 Message-Id: <20190302134735.4393-8-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190302134735.4393-1-wsa+renesas@sang-engineering.com> References: <20190302134735.4393-1-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is only for testing and will work only for bitbanging which is done without generating irqs. Not for upstream! Signed-off-by: Wolfram Sang --- drivers/i2c/algos/i2c-algo-bit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers/i2c/algos/i2c-algo-bit.c index 5e5990a83da5..a9c361947de1 100644 --- a/drivers/i2c/algos/i2c-algo-bit.c +++ b/drivers/i2c/algos/i2c-algo-bit.c @@ -615,8 +615,9 @@ static u32 bit_func(struct i2c_adapter *adap) /* -----exported algorithm data: ------------------------------------- */ const struct i2c_algorithm i2c_bit_algo = { - .master_xfer = bit_xfer, - .functionality = bit_func, + .master_xfer = bit_xfer, + .master_xfer_atomic = bit_xfer, + .functionality = bit_func, }; EXPORT_SYMBOL(i2c_bit_algo); -- 2.11.0