Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9353526imu; Wed, 5 Dec 2018 03:29:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/VPh6OKtYVGcZCbCUuiHM1rFidWjOlM9OWx7RyT6igg3Zek60MsHX3yIL2CalmRwYsYmBax X-Received: by 2002:a63:db02:: with SMTP id e2mr20279078pgg.419.1544009393722; Wed, 05 Dec 2018 03:29:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544009393; cv=none; d=google.com; s=arc-20160816; b=m9U2D5GBtjS0J/Lhj1R3ZoghwxZe7ZJFcDJxTHW4aZFFNK0PK5GtNu/gNUMkdFaEmU fw67NqAzhFYZzKQP4QoqddZ52Ux0YG+4HcqshPGc1SvTDV+sgF2ig3ORdx6ct5U7Neaw p/kR3mx11FhhRrdXlVHccIzeF4mY7by4OgxOKoUU7S98+KmL8TrgrXMEnGcUGbEz6lJg C7VbLSEh8q7h67eZRgeZJvdcTNOEJOpR+tygB/64qb87dcsA6wsvPmq29OnWpZxNc8F6 dmJT3cRsxG2+GQ60BC8Uf1H8FhIiC9u/zqCr7TbD7G6PLPkmLbYFp3LVQEvEIO0uEvdr 2Epg== 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:dkim-signature; bh=Vr9tgcVHTh8iiUQZzai9FfjRca3WGPSQTxY477+SLsA=; b=AZJamibGBdW5PfvN9KQeHbDTU6wrLkr3ZBM38Ochgk65M+K6ngRv3YkbTDJvDJua85 CbdUJly+CreQm3PW5v/wbljHGlpdNtpNXZ7MRXONOZt0mQR0WY3Rmg9LAlBIFyTt58sg NNtsDevGuJ+jRFQKxYPtHSRQ7e7AXqI8w3zFymbodr2CBkNmYJ66/Mje6s/+UaMJPeA7 aOAUcHzo2zSrt/2fOkVp4aMRdzRqHkOCiPxxSEiOmKX+/9QmuSpgarZa/BvzIwXSVTzx gNyapTdeIEiih6cYYnZhehSJltiP8OQO+vomG6ZOI27TyxVwLPRhGIgEe3YlvNMqGiNP kcig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=g2Mc8Ypy; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o68si24124179pfo.140.2018.12.05.03.29.38; Wed, 05 Dec 2018 03:29:53 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=g2Mc8Ypy; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727696AbeLEL2o (ORCPT + 99 others); Wed, 5 Dec 2018 06:28:44 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:50918 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727678AbeLEL2o (ORCPT ); Wed, 5 Dec 2018 06:28:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Vr9tgcVHTh8iiUQZzai9FfjRca3WGPSQTxY477+SLsA=; b=g2Mc8Ypy6cXQQpM7U8HoFCB6j SBydPD1h2mp13rEErwiczdEkF98+I7cL/o8msV5++uvuJ8m68dLUFUMum5B4/8ZV55sHTdytzlsGY 0tUSh5olEzVV1ROFkynDv2DLeRKchfSlu9eHPV4oEDxxuT34/G305d9msuNZ9ePx+94sU=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gUVM0-0003HO-Rk; Wed, 05 Dec 2018 11:28:32 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 8180C112533F; Wed, 5 Dec 2018 11:28:32 +0000 (GMT) Date: Wed, 5 Dec 2018 11:28:32 +0000 From: Mark Brown To: Adam Thomson Cc: "Agrawal, Akshu" , "djkurtz@chromium.org" , "Deucher, Alexander" , Support Opensource , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: Re: [PATCH 2/2] ASoC: DA7219: Implement error check on reg read and write Message-ID: <20181205112832.GA6205@sirena.org.uk> References: <1543948103-20752-1-git-send-email-akshu.agrawal@amd.com> <1543948103-20752-2-git-send-email-akshu.agrawal@amd.com> <50cffd9e-74f4-b0af-5eed-3dad5f32d8f9@amd.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5vNYLRcllDrimb99" Content-Disposition: inline In-Reply-To: X-Cookie: Real Users never use the Help key. 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 --5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 05, 2018 at 10:21:04AM +0000, Adam Thomson wrote: > If the previous I2C access failed, how can we be sure that the write back to HW > of 0xFF even succeeds? More importantly these error returns won't necessarily > stop subsequent calls to controls within the Codec I believe, so you could still > see unwanted writes to HW via I2C, if I2C is sporadically operational. Again I > don't see this update resolving that. The key thing is to resolve why even just > one I2C transaction fails. Right, it's just not clear what we can constructively do if the I2C bus falls to bits other than log things and the I2C controllers will generally do that themselves. There's no guarantee what made it through to the device or what will in future make it through to the device. --5vNYLRcllDrimb99 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlwHtl8ACgkQJNaLcl1U h9DiPgf/dRdws2pJQNwVjMZCeXaIWamfcvHKqKCY0obEy89cZkRWM/SWVu/M1bj3 5pzLBIjk5b/tJh4/yFcK1ioJjiEpCk76HGlFnUp9+wDFeO8TOJVNppe72gmN9QrA fq2PjmoDPV3STxHwDzy0/5Q4pCiS3K1qFLTfY/pK8PFowuk+y/SLVNnsb34HlH7c 6OOIGiUJNn3a6cKBTeyN2VH9tasRbsBeap4q8DZJRt2Q6+6Jp3/cLtSO7HKqLghK hDkNILIx9pymLYIn9zGntO46IyP+R28+TP6lGafnFvfj/eoz+BJTYsxg26qdRP+0 WIuaOyr/YmzRZ3yjFs8Pn7SdVXj1Kw== =0djV -----END PGP SIGNATURE----- --5vNYLRcllDrimb99--