Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2780358ybb; Sun, 22 Mar 2020 07:33:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuM1zp5djtROarvJjLG929JL/kZdtI8IY775ANH4BZQxy+Uktvy4xT18h2KlXoX+jsOf8l/ X-Received: by 2002:a9d:65c4:: with SMTP id z4mr14472592oth.51.1584887638527; Sun, 22 Mar 2020 07:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584887638; cv=none; d=google.com; s=arc-20160816; b=hQ+oXFUmKwY6EQENOIWEaV3YNhSOkYC50lL7E2NHKdLu+jex7QrLubGeI1dZUVr1s4 f0alsaCFpcj1ZWnmuX7qxMSTqdKi+KsGgBKKyzenSEbwkV+kjfZhzb+BU3X4kdEgUDHm 7SCyWjcEhMdNqh8STPUI5ANH+is/hlYTevYDCfbJuHRNRjoveH7EkqiZSeVBdEtCUwmJ JtEeWKApBwXXwwprMj5mdN+OocV5Kv1bHEVwEREgiI9MWCQR7V1teSZ5hUcNlVZowdnZ FuGHOe+LErL3s+8gqXdNlGCfzSKYeX/Tn0qWvUlNts3a/8O+U7zHpc8DlO4Io/o3SNVw JJ3g== 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=i6TUmdU5hozCwzmDEQg2PPt5hCZYUcCGHsd52PZvrPo=; b=GkeBEQBmHX+Gzv/W77QZQ4OCZ+KyLSCwBw87G0WGqFVb3QAud+QRaPsSm5D3VMgmwH TmZuNRMqQFjUJiYR8VpUlRp6UAbImhjHNwygLgMzsHcntHTSIq1dBWIZ0suD5VmMsJjs 2CtSpirKHN7pbSmExg1WZ/fjMbX9nHi0vQK7wo3tP5f+HotgExPruhB4CN0hCO0UeaXE YH6y5Qfy4H6lE1y/1roF/X9mEhZdydSi1UKNgnbH8tYmHOvSSIXaRauZfswkD8jJGGgH YQD1iNiDjrag6SE7vjncKXQhdUUm0Mqqf6GNX74xa7JpzZ4qH+PQgVULMK7QXwqcfyru leQw== 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 i184si6057979oia.14.2020.03.22.07.33.32; Sun, 22 Mar 2020 07:33:58 -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 S1726857AbgCVOaH (ORCPT + 99 others); Sun, 22 Mar 2020 10:30:07 -0400 Received: from sauhun.de ([88.99.104.3]:50556 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgCVOaH (ORCPT ); Sun, 22 Mar 2020 10:30:07 -0400 Received: from localhost (p54B33042.dip0.t-ipconnect.de [84.179.48.66]) by pokefinder.org (Postfix) with ESMTPSA id 226352C0064; Sun, 22 Mar 2020 15:30:05 +0100 (CET) Date: Sun, 22 Mar 2020 15:30:04 +0100 From: Wolfram Sang To: =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Ludovic Desroches , Nicolas Ferre , Alexandre Belloni , Dmitry Osipenko , Stefan Lengfeld , Marco Felsch , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] i2c: at91: support atomic write xfer Message-ID: <20200322143004.GB1091@ninjato> References: <55613934b7d14ae4122b648c20351b63b03a1385.1584851536.git.mirq-linux@rere.qmqm.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Pd0ReVV5GZGQvF3a" Content-Disposition: inline In-Reply-To: <55613934b7d14ae4122b648c20351b63b03a1385.1584851536.git.mirq-linux@rere.qmqm.pl> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Pd0ReVV5GZGQvF3a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > + /* FIXME: only single write request supported to 7-bit addr */ Hmm, this is quite limited. Would it be very hard to support multiple messages? Or reads? 10 bits don't matter. > + if (!dev->pdata->has_alt_cmd) > + return -EOPNOTSUPP; We should handle this in probe(), I think: if (dev->pdata->has_alt_cmd) at91_twi_algorithm.master_xfer_atomic = at91_twi_xfer_atomic; --Pd0ReVV5GZGQvF3a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl53dmgACgkQFA3kzBSg KbY95g//dGarTg6cS+mlOrvC92nc9FsPDk4ovBNx5QEc5w7VYirESZJCs6+OTJEs t0zYn9dzEAo1UVyYUzUetdM2Ma88oB40HCF4lS4A1d2sKzmvxX8niF9YUttD290A A3gZIqr3hio6jeXPzFhaDv7IwpnTDDP4pVgQdVnLZdBPeObTIYNzyM+NKmBAivoG VFKwRKONuhb1hL29jtqmQeSQCEUWLUKu8d4sEVK72/ONqHUX70M6Is5Xv32nVkb1 nPZkKMnUr3X0oX1Fa6S33Q7vqLx5eHNlUaD8hAcodhTJluiLw+wVKZdmNl99o8Hm 7HtEpGFo2jcyTDejstloWX5iPHcPjXIJgtRGwP3PlVWsgWqhTPolM8r025bjJt5E FL46Bf656Gfisd6j7xNWQY6JwXw7kzhqPQCbUb0DZddXuYqtuFUswtLBg2/QQ99K FdykWp76hOHTqCXFW3V6H7jZRW+J98upcsSQFNyHhjO2hYZ48A3yZ/A4W10R0VAe J0fTuK5xLLi7PZn3Q/e/Z56jgoKdmucqcrE7jfBfW5nXtWIWgdcrJO35yBBDU00C BGksiCA4Rpi0SHf0UCqqOfu/6bAXGVD9LxPzRc6O+l0qzD6rm7i21ZoXTkOMZQuF B2TQW2Z/V8bN8zje+tZC6yvjBi5C9osHCeTMOHTIKpEqPhF3zio= =Upnv -----END PGP SIGNATURE----- --Pd0ReVV5GZGQvF3a--