Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4651258img; Tue, 26 Mar 2019 13:50:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjg+qeqwqGB0w32SqnDnPKIcVxXRFFXpMhTCneqAz+IcyP99SEZt+0qeKxxrtsESiu8dC1 X-Received: by 2002:a17:902:eb84:: with SMTP id cx4mr24093034plb.52.1553633441396; Tue, 26 Mar 2019 13:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553633441; cv=none; d=google.com; s=arc-20160816; b=ZcXjiSaL0puzd960/qdZO1Gpzqpmi1AYXfzjlrvBmFMn08giFuXP22W3Qv4izkNHqP jgvrxb4K7X0UGpqQDVe4p8kw2XnFzqQIWbaM5FMyYd0sOjr8ken4G9aPhN2NwEUjOYs4 yHG4wX50Eme0MHpoN39JtBppfPC93noCye9153N1h2kpD+iuZCdVmdI/LVf7X7pZ8YLw FuJ3Yla4tOy/Z+Mma6bLgEu4iTfOD+ww0UHnetx9VVSqbMbn1IfZIFuUJKEvFiI9tTu7 X6XMrNQnBahCuZ7sVwV+oGzH9FhgQA3ZufQhdSiHR0WeMMh6qMfCKG///dXQc1ip03oK 7Gkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=99UwvHDP2nPd4O/9cVUlffAfFVOjvG0us6fHtFqo3EY=; b=SUk/JwkZL0vjyxKVHSAkzTiUSgO3Iji/VyRRzl4MSB6v2uZp7OIM7BbBYyVvOH1QNE 6aQ2E79z6R2LoQuzf5zkP79U2MS/Gk3ELGREuI442dvKFRLwr/Qyl2FSpbbF7ZTpkr3N Tba+FvhEGqx9sX7pGhHr02B2QJ5aUbWM2ELSyF5X5ULR5PLp0wsCutDjQhZ6b3i5s/46 CrgVkjKImAZlHDjReID48I2a0TfEXKld8/Wd8uKTW1QYjso+Y17mSszSIEoOtL16+ujr Q1/7u8nT15gC1J75rTzCnioP0rGS7Go0Y+S/f7vA79HqfDtLPGeo10eqYG8+iPIY84gO 6P2Q== 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 k17si15909042pfk.40.2019.03.26.13.50.26; Tue, 26 Mar 2019 13:50:41 -0700 (PDT) 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 S1732783AbfCZUte (ORCPT + 99 others); Tue, 26 Mar 2019 16:49:34 -0400 Received: from stcim.de ([78.46.90.227]:36266 "EHLO stcim.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731736AbfCZUte (ORCPT ); Tue, 26 Mar 2019 16:49:34 -0400 X-Greylist: delayed 1740 seconds by postgrey-1.27 at vger.kernel.org; Tue, 26 Mar 2019 16:49:32 EDT Received: from xdsl-89-0-91-101.nc.de ([89.0.91.101] helo=porty) by stcim with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h8sYH-0005lq-Qn; Tue, 26 Mar 2019 21:20:06 +0100 Date: Tue, 26 Mar 2019 21:20:05 +0100 From: Stefan Lengfeld 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, Keerthy , Peter Rosin , Tony Lindgren , Russell King , Andy Shevchenko , Phil Reid , Tero Kristo , linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [RFC PATCH v2 6/7] i2c: tegra-bpmp: convert to use new atomic callbacks Message-ID: <20190326202005.s3ktyth42lfjirx2@porty> References: <20190302134735.4393-1-wsa+renesas@sang-engineering.com> <20190302134735.4393-7-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190302134735.4393-7-wsa+renesas@sang-engineering.com> X-PGP-Key: https://stefanchrist.eu/personal/Stefan_Lengfeld_0xE44A23B289092311.asc User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wolfram, On Sat, Mar 02, 2019 at 02:47:34PM +0100, Wolfram Sang wrote: > The driver did handle this internally, convert it to use the new > callbacks. > > Signed-off-by: Wolfram Sang > --- > drivers/i2c/busses/i2c-tegra-bpmp.c | 27 ++++++++++++++++++++++----- > 1 file changed, 22 insertions(+), 5 deletions(-) > [...] > @@ -268,6 +270,20 @@ static int tegra_bpmp_i2c_xfer(struct i2c_adapter *adapter, > return num; > } > > +static int tegra_bpmp_i2c_xfer(struct i2c_adapter *adapter, > + struct i2c_msg *msgs, int num) > + > +{ > + return tegra_bpmp_i2c_xfer_common(adapter, msgs, num, false); > +} > + > +static int tegra_bpmp_i2c_xfer_atomic(struct i2c_adapter *adapter, > + struct i2c_msg *msgs, int num) > + Here and between the function prototype of 'tegra_bpmp_i2c_xfer' and it's function body is a unneeded blank line. Nitpick. Kind regards, Stefan > +{ > + return tegra_bpmp_i2c_xfer_common(adapter, msgs, num, true); > +} > + > static u32 tegra_bpmp_i2c_func(struct i2c_adapter *adapter) > { > return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR | > @@ -276,6 +292,7 @@ static u32 tegra_bpmp_i2c_func(struct i2c_adapter *adapter) > > static const struct i2c_algorithm tegra_bpmp_i2c_algo = { > .master_xfer = tegra_bpmp_i2c_xfer, > + .master_xfer_atomic = tegra_bpmp_i2c_xfer_atomic, > .functionality = tegra_bpmp_i2c_func, > }; > > -- > 2.11.0 > >