Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1028602ybl; Thu, 12 Dec 2019 08:35:16 -0800 (PST) X-Google-Smtp-Source: APXvYqy0DEtJ+G+2SacUfXCrKY5wEJssTf/br/0GexfihFiwbDs/nGDNd2nPwNaMnSGayXJVrx9Z X-Received: by 2002:a05:6830:20c6:: with SMTP id z6mr1692047otq.272.1576168515901; Thu, 12 Dec 2019 08:35:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576168515; cv=none; d=google.com; s=arc-20160816; b=q3US9UPtMAtDwklOTpYRxXl+Y5Tg33XK0PdldPTcb/9n2avItipqKfXoVky1gVeDhQ C/pnIrUCrRwN4dfiOs8303TCZjDwQRZyBePj6F1SOu/NHiXIqvZybM7Lu4s+ZaXgl9WW 5lEjkSzjKSarjJUBHOHzi0NjNso3Bi+2mx8DCSsEKYbBR0QWVgNaMK9NLxYQ30DcvocN 1YNgxhNRFbXeIwKK53r0Wa3DLA2x8NrC66NkeTxtOS9aqN6hHZtwGLovgCUHoTWTWD+R 6YR51q/c6+Pp0/DIaFZn5mpuYM5fTJsZ8mF8SNPU08FGLlyGcV1DcOxWuEmjyUGmiwcc I15A== 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=gQ+ChNlSc4mH/BIsvVteCFgQH7xa2wzCjVx/gxwt7nc=; b=LJ9/vqtqOYhtV9NREgyhwRQV5y7uyXv64L8ErZjwzIyE9TTT/slC6n0EcPzfjccDL7 QVecQyh3lbyf9WgufVYFNmSsAJM/Ag6BgwKRaU6whC2XpEEtWUaZYMQTVq33O4/OXsTj Fo0xXW3mfhDVSDkMYZQ0XihXTUrlj9dhXWbj9W86tEPHUm61pFSMDfw9Rc/j1jUeVXZs 9qbF9ZU49Bl5fsmP92IVJxMbiEKJ4WVeIV2DXu6rZSfIqOC17SwKogu4X7TcVIvneIqm SB0Utm+7LhDHdo9jjN3WLMQYuHPx5MJku6L2Lz11MmQ4P7qSk20IPzfZ8SKDLgh55svB cSfw== 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 h3si3166574otq.203.2019.12.12.08.35.02; Thu, 12 Dec 2019 08:35:15 -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 S1729906AbfLLQd1 (ORCPT + 99 others); Thu, 12 Dec 2019 11:33:27 -0500 Received: from sauhun.de ([88.99.104.3]:37048 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729591AbfLLQd1 (ORCPT ); Thu, 12 Dec 2019 11:33:27 -0500 Received: from localhost (p54B331D1.dip0.t-ipconnect.de [84.179.49.209]) by pokefinder.org (Postfix) with ESMTPSA id 7C6252C04D8; Thu, 12 Dec 2019 17:33:23 +0100 (CET) Date: Thu, 12 Dec 2019 17:33:15 +0100 From: Wolfram Sang To: Luca Ceresoli Cc: Daniel Mack , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, broonie@kernel.org, lee.jones@linaro.org, lars@metafoo.de, pascal.huerst@gmail.com Subject: Re: [PATCH 07/10] i2c: Add driver for AD242x bus controller Message-ID: <20191212163315.GA3932@kunai> References: <20191209183511.3576038-1-daniel@zonque.org> <20191209183511.3576038-9-daniel@zonque.org> <64adf5d7-754a-f1da-aa9b-11579c5a2780@lucaceresoli.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: <64adf5d7-754a-f1da-aa9b-11579c5a2780@lucaceresoli.net> 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 --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Luca, thanks for the review! > good, but I think there's a problem in this function. A "normal" > master_xfer function issues a repeated start between one msg and the > next one, at least in the typical case where all msgs have the same > slave address. Your implementation breaks repeated start. At first sight > we might need more complex code here to coalesce all consecutive msgs > with the same address into a single i2c_transfer() call. Note that it is by far the standard case that all messages in a transfer have the same client address (99,999%?). But technically, this is not a requirement and the repeated start on the bus is totally independent of the addresses used. It is just a master wanting to send without being interrupted by another master. Wolfram --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl3ya8cACgkQFA3kzBSg KbZBdQ/6ApPjJEPmloupECtcOPxRdHIBMJSbDi9HpBk6QSvFwtknvv6ybcJHJ3Dc 2GkbUK4EAcDvvDx4mTqhw7t8JPay3Bu3O13a/wXP5PDb7DeHJ5xDaBsEYVLC9id2 E1I5aEfdrrxsL1HFUZn86BmmthMuupvelZAyfL7pXDT3AU5oNkPipfKzoiC0EiBP MPu2HN8BIX7l1ECvOL9j0pZYCfz00UHA4PtWHwz7zjiCG7RmY3qlm6xw5l6XFeq3 wbcmTXcLr8OIG/8sw0PMJjJFqHfH9Vlj8aYcRrsgjDEHQbSTKAQ/RTDw9rcmAktW /1u6RUea0ckwX6rhKWZSXVktPzCV5LWaywD6lsMGXxhF/0T2tvKRqV6+xIngUY3n 8KnzpK2i3gvLmP9BYYxa/BM8qiuR4SimZi35lmofttUzXUs/5fgJwxFg2UuJqpPD Ex/lyLc1AUbRRp8mDsSMsGg7Ku6WUt5T7OxmVjzvIYPLJ84GlTvZLA4WIskzWFVw aZ2+E4YZq35snfMfawdrDmTOOmNOEPfVuT5Cm2ul1HVTprAgF/DVkQHVWPzNtOo9 xxwPgX9lrN0I+Ek2F1kSJguphMzVjIFRvFCl77TJUQ7qvBEWYDLQs1hBdmXieBxA bNZoxeVI6DmFF5qTxkQ3Qh9NUGWkPKuslRF2Fh7dWQIoS9FauJo= =Gmcp -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn--