Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3056752yba; Tue, 16 Apr 2019 03:53:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDQY9/8w6YWXkEOdYsuCoD8kUdKYnDfUV1kNbUWjnRU3Zlp/oiLIVRBh8NYJMTQ7NNDkJb X-Received: by 2002:a63:3dc8:: with SMTP id k191mr75434982pga.286.1555411999818; Tue, 16 Apr 2019 03:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555411999; cv=none; d=google.com; s=arc-20160816; b=hKj1SU3jVsMWit2+4GDQwpaJeds0ub/mR2SnDcQ3VTWKZBirv8Nhwcf1/R6hIXPzwb 8XIhiR/Oq9efOEBSUeUM+vfx03EyPR1eFPzGhZBcXWvGQkcDnpB10snFrnpMMgVMnH4s Z8H/BkKCCEk7i0WjEoLqT5xI2RWE6tfZP0p+VNvelxme+A0wxoVGiPZhQ44I0vycFYbh JarOtlLoxV+3OoFfY6g0XwzG8IZe2EukR0r4SJ2HV1tfjC4xjhwlCHlU2JCk/TTEP+5h Qy6fPAlJAk+NRgBEfZBZFULE5rSxM9gMhOcs+88i1clL7JQZdOJqTj1CvVvcOaUiNuUy 5/KQ== 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=RxbjzFnBUA9Q+IUew8ts2IduU8ANVUJVeKK57WwEVdA=; b=NFooVwczaV5Z1bPY7VFdLnk0scAonZRVoXTuEZFOTDavblNtqHbzro3wK+a34bHIfk n1gKptgkXMfWnHVnM3Or1yYpOmyio7LjG45o17MbqCjN4ONf6dLaE5vIH3BAlZ0bSQrF qMSE75zrQCAycZO7aSIDV1vKJcKy/R/1gGV/VMOGtZEnOe4Fy5oy9S2nszi0jQRdZyTv tlICQwS+nPmgj+kG8vJexLx4vUHGXSlIZ0fDn0kP27rFiDRoAodcf9Iurmu8WtO+/tLE ivQxYIBusjWnSNk62Z8+OA7KCE3CqUQ4LDiljIT5Zykj57a+4cuqFvpM38URlEWxYTo2 J/LQ== 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 y2si46826734pgl.527.2019.04.16.03.53.03; Tue, 16 Apr 2019 03:53:19 -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 S1728667AbfDPKwZ (ORCPT + 99 others); Tue, 16 Apr 2019 06:52:25 -0400 Received: from sauhun.de ([88.99.104.3]:48958 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbfDPKwZ (ORCPT ); Tue, 16 Apr 2019 06:52:25 -0400 Received: from localhost (p54B332D3.dip0.t-ipconnect.de [84.179.50.211]) by pokefinder.org (Postfix) with ESMTPSA id DAB712C3637; Tue, 16 Apr 2019 12:52:21 +0200 (CEST) Date: Tue, 16 Apr 2019 12:52:21 +0200 From: Wolfram Sang To: Stefan Lengfeld Cc: Wolfram Sang , 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 , Tero Kristo , Keerthy , Simon Horman Subject: Re: [PATCH 06/12] i2c: omap: Add the master_xfer_irqless hook Message-ID: <20190416105221.c7h4ktzzu4xmdht3@ninjato> References: <20190403124019.8947-1-wsa+renesas@sang-engineering.com> <20190403124019.8947-7-wsa+renesas@sang-engineering.com> <20190415220546.bvrp7jodgdq7phwg@porty> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="txtx6lpjzxgqvxdx" Content-Disposition: inline In-Reply-To: <20190415220546.bvrp7jodgdq7phwg@porty> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --txtx6lpjzxgqvxdx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > the subject line of this patch >=20 > i2c: omap: Add the master_xfer_irqless hook >=20 > still contains the old name of the callback '_irqless'. It should be > '_atomic' instead. >=20 >=20 > On Wed, Apr 03, 2019 at 02:40:13PM +0200, Wolfram Sang wrote: > > Add the master_xfer_irqless hook to enable i2c transactions >=20 > Here again. It should be 'master_xfer_atomic'. Yes, thanks, fixed! > > static int omap_i2c_xfer_msg(struct i2c_adapter *adap, > > - struct i2c_msg *msg, int stop) > > + struct i2c_msg *msg, int stop, bool polling) >=20 > Nitpick. In the patches for the other drivers the boolean flag is called > 'atomic' and not 'polling'. This patch originally is not from me, so I prefer to not change it. Also, I don't want to enforce strict naming within drivers. As long as it is readable, I am fine with it. > > static const struct i2c_algorithm omap_i2c_algo =3D { > > - .master_xfer =3D omap_i2c_xfer, > > + .master_xfer =3D omap_i2c_xfer_irq, > > + .master_xfer_atomic =3D omap_i2c_xfer_polling, >=20 > When consistency with other drivers is a goal, the functions should be > named like: >=20 > .master_xfe =3D omap_i2c_xfer, > .master_xfer_atomic =3D omap_i2c_xfer_atomic, >=20 > The first without a suffix and the second with the '_atomic' suffix. ditto. --txtx6lpjzxgqvxdx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAly1s+UACgkQFA3kzBSg Kbbbzg/6AocTzfCzOeRPB/NVFcGqaiGYqcQk7Hy7UA6lLoQpit+Chf2zJb9XD2wn PmVDoRjkCLqX9nO6bZ7te2hayAVej50J/L7tdXWtV5icGbyQEEbAFR68Ipe+OQeB v7fAjShyYYwkUD/VuRospLZ7z3oYB5GFeu5FvHZ4IOdKAGhlaIRkcdHQAjb3L11P oMFCxS/WkKFeejPQChncWE0UkauM3ZT6ssE+mI55MdcK7OhG6QgTYwuYqaMK/k4E KCehQC2KvyT1TDxkDYGCHOWhSyO0DLjPNtRh8DF1I/NWh5GfsfaHDyOKJ7e9L6xa Y2JH4Y8pcb94B2hm831fedAuyf031gtYuZRxag3ZhfbZFGY55ubABk77lI+o6a+E 0ZJK3fMgQkZ4Iik0FFm+039vTwrcPLMZK4L2ZwreHyp7ER9kmlfxUT1Fi3ZonAcQ gy/juds3pyE/4T515+7WD7EAdbWIt1PC9oc3LgkJaEn1vbXGu4Nbg6XJ9ImaRsXs txDjlSClQgWBKuh76cIKR5oIhBD6vn6fzjxTN37Dwmc37lHXtC/X2qoQ3S+IcISv 0L47f1Jd53M6RVeLL1P89zH/CsmeByeqjYbNSTMnHoMEWw6g5VqaPGAfXgnbit83 3tW7UvQF0krApbKmJHZL0NCWVctO+tDmk7asjdnEn82uba3fGCg= =v1tF -----END PGP SIGNATURE----- --txtx6lpjzxgqvxdx--