Received: by 10.192.165.148 with SMTP id m20csp3574159imm; Mon, 23 Apr 2018 08:46:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/d4eAZMAkvWx0ZqQ2h4LXma167qif2QUdEncD3oocTUIEtEWB8tg2mN/LiSy3DwI0ngWN3 X-Received: by 2002:a17:902:4464:: with SMTP id k91-v6mr21073534pld.219.1524498360452; Mon, 23 Apr 2018 08:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524498360; cv=none; d=google.com; s=arc-20160816; b=KEP5A0slQ/U4KJhZffCf6WH8bewklRMC9NQYTvt1PA9TacTTGSEVoOWSoWZs1dwRmT Ke/IGTtJfGTyDz79RaafgraMjHjoWmECvcJN5poT69I8xp8Kb4MSZhAg/gdjiGg3Vqh6 KrzAo2hcJDMAHEBcaDSJdO3BhVopMUJXPoB8Mu2CCC986lJS5UMI4I4erMp1jAXsSKOX 2IFNRqk2LVY+IFuNFPd/YeERyQAyygqDXKX7grGgFvUT7e20gupL1Dt6CG9o04wqxKi/ aMuZBzpcekWibvybKbCf0yUzlirDoK4hHTmHMHw4PeM7hhyBt4TUSF433EWglXGFmn4N U3eg== 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:arc-authentication-results; bh=dEl5ne9XYnqXW/pMfVKGRG6f7/qn/i5tuc5OmuVWOKg=; b=bRyppKXUz2swv8Hz+H3rpdaaOiH9wdqwf9pczWYlBCDQ1fa8a0zKTsfFh57MnnEE4p j1bL1MH4L6pldLW/n0WYZowSiZzbu2SRSbqLhxKBWqAGo6us4HChQriFt8PTcUAI+5i3 rMHohltgnVCjvhcOSOloNfTys3TG2SZc1xcAgkqqPUNhc9zKGYXTHTfHt/Va7hAohvDZ Dr98LtAbZTxke/GSpESFjAllaTvRFn7YmKMgQIn2eU3KE6sa/3fyc3hrzkzAFNz+0uPN 7DQwr+lNb+QsOEE/OUU2kcQUUvMNqv8MpL+574EfG6wg+JiDpatoNZaZ/xpgrFRKXEop mU6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=UOP5PrbY; 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 c184si11138933pfc.367.2018.04.23.08.45.45; Mon, 23 Apr 2018 08:46:00 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=UOP5PrbY; 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 S1755713AbeDWPo3 (ORCPT + 99 others); Mon, 23 Apr 2018 11:44:29 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:47934 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755447AbeDWPoZ (ORCPT ); Mon, 23 Apr 2018 11:44:25 -0400 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=dEl5ne9XYnqXW/pMfVKGRG6f7/qn/i5tuc5OmuVWOKg=; b=UOP5PrbY1MlVgXRfZ2wwBUj7f r8L5hbwzK428bU2x95MSitT4Nd3Rt8ltZ9WwPHN+OQUzQwh1Ufclmx/ut4+rcoubMp/NS6Ls65tm8 g2+DCOWUKsudu0kVtHOjhZvsbxyfIZ3Vm/yOrFE3BTojgTQuYhyW0t9rmMQjm8oj6N9Ac=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAddU-0005el-Lu; Mon, 23 Apr 2018 15:44:12 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1fAddU-0008PS-19; Mon, 23 Apr 2018 16:44:12 +0100 Date: Mon, 23 Apr 2018 16:44:12 +0100 From: Mark Brown To: Jean-Jacques Hiblot Cc: robh+dt@kernel.org, mark.rutland@arm.com, perex@perex.cz, tiwai@suse.com, dannenberg@ti.com, afd@ti.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] ASoC: tas6424: Allow disabling auto diagnostics for faster power-on Message-ID: <20180423154411.GK19834@sirena.org.uk> References: <1524218684-19752-1-git-send-email-jjhiblot@ti.com> <1524218684-19752-2-git-send-email-jjhiblot@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2WS97oupGEGbYNpW" Content-Disposition: inline In-Reply-To: <1524218684-19752-2-git-send-email-jjhiblot@ti.com> X-Cookie: I think, therefore I am... I think. User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2WS97oupGEGbYNpW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Apr 20, 2018 at 12:04:42PM +0200, Jean-Jacques Hiblot wrote: > The TAS6424 incorporates both DC-load and AC-load diagnostics which are > used to determine the status of the load. The DC diagnostics runs when any > channel is directed to leave the Hi-Z state and enter the MUTE or PLAY > state. > The DC diagnostics are turned on by default but if a fast startup without > diagnostics is required the DC diagnostics can be bypassed by adding the > property "disable-auto-diagnostics". This is making me think we should be smarter here and either only run the diagnostics once during boot or provide a user control for the diagnostics. It seems like something that is more of a runtime software decision than something that's fixed in hardware design, is there anything about the hardware design that'd make it impossible to run diagnostics? > + if (tas6424->no_auto_diags) { > + /* > + * Disable DC auto-diagnostics to save time when channel leave > + * Hi-Z state > + */ > + ret = regmap_update_bits(tas6424->regmap, > + TAS6424_DC_DIAG_CTRL1, > + 0xff, TAS6424_LDGBYPASS); This could just be exposed to userspace as a simple switch control couldn't it? I do note that it masks more bits than it sets though... --2WS97oupGEGbYNpW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlrd/0sACgkQJNaLcl1U h9BJJQf+LarwNv6nMCjPJuZ01r2WdQ8JnLzPZ8TUSXu7IoQHYAgSthTL024mNAi5 4q5+gnO3UtOYJ6ij62m8j6btoTZTBWh3Xtc/oABbFYA46hThuw3w9oNgLWXL9eWd SmETAZ1RVCmQ8KrmRf2XF3hmHgba4Y14ts1gQsF203iFa69FLhFOs99r7rWzoOS1 NZQ4+0bUJNh0MCAr5kuGiZmofDCevGCBHKBWUVG/fhWKGirsXNko02uDak/12Hvd dM/9wXXaYyvKScbPoBoYnXLgvvFw8drprINRTw9RkE2CrW+tyKX9+2Pvz+ZVKVDu Jm643AogFadU8Kp6s86j+9eBqjRDdg== =ruBO -----END PGP SIGNATURE----- --2WS97oupGEGbYNpW--