Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4026655ybv; Mon, 10 Feb 2020 10:52:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwRI8MfYwOnUxn0w3o+hFzSY3cEa2FMs3mM6OMeBwshrlILyfHthlvKRlI1K/q/fHOTeagq X-Received: by 2002:a9d:7cd9:: with SMTP id r25mr2013663otn.326.1581360767202; Mon, 10 Feb 2020 10:52:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581360767; cv=none; d=google.com; s=arc-20160816; b=IvJmyld5ksR49oEBeGJ93QBGmB7YFimGOvxgK8mkQvwrEUtnUAoCUXcZ5QxDtY5Hr+ AMYc+yPQb0JEz8gebd+/Gzg9A61O0qzXHvyDftuAR2IglkyStIGBSRBfOP+T0txXeiUD CvYZ7JWLPJpEBuJwhnmDwRzFITUsov8Dji0BtG3QFUZWc+FhhnjB4c/A3VuK2KyFX1Sd N+LvMwBOMYl4rGK90enkWkvu0n+F2pgLtvfgtm2NmuLdau+P4PTDqWL/4sdBDlVGHvKN cSSAWhTcvuLUiwCHQsX/xWz0ROF8ggvDgkKLXSJaZBZcFIWyeqZmgsLlMs8OTrA6TTHE ruOg== 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=/SLoaOtPB+uo2CRbEowW5swt0UejP/A9m3fP8QQ7gzI=; b=m0WSHn7zNr6aLEXgXeX9QIOqvKXKJiuLQ3pTvzIu8xzleniivvUoweUCSzruB8qRww 2xYhTrt8v2/fxqViNGwE4zr9bT4HgXBqi/sVovJyN2rYtKsb8rMfl9WAF5Yri3ncadt4 QCWmd7ujpCKYfMRgWQB99uiozBLHQeo1HFA4zjDnz8ht8LKqwU9dspZAUZ4O5YaHXf2X 8bA7BgpAH+SLFiD9V5LQm1iIoaVIXgarjShf5D5ZJlWo+5wCf1H39ivLbQi8XYHLoOLP Bra88AThf+JSn3USJleHr2diGCmBjz5BYrZZOZ9aysaXHS6zZecM+W7Xqb2x5LXs7wPt 01uQ== 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; 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 k9si479440oiw.262.2020.02.10.10.52.35; Mon, 10 Feb 2020 10:52:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727584AbgBJSvY (ORCPT + 99 others); Mon, 10 Feb 2020 13:51:24 -0500 Received: from foss.arm.com ([217.140.110.172]:37630 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726991AbgBJSvX (ORCPT ); Mon, 10 Feb 2020 13:51:23 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 175711FB; Mon, 10 Feb 2020 10:51:23 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 913B43F68F; Mon, 10 Feb 2020 10:51:22 -0800 (PST) Date: Mon, 10 Feb 2020 18:51:21 +0000 From: Mark Brown To: Jeff Chang Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, matthias.bgg@gmail.com, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jeff_chang@richtek.com Subject: Re: [PATCH] ASoC: MT6660 update to 1.0.8_G Message-ID: <20200210185121.GC14166@sirena.org.uk> References: <1580787697-3041-1-git-send-email-richtek.jeff.chang@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8X7/QrJGcKSMr1RN" Content-Disposition: inline In-Reply-To: <1580787697-3041-1-git-send-email-richtek.jeff.chang@gmail.com> X-Cookie: No lifeguard on duty. 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 --8X7/QrJGcKSMr1RN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 04, 2020 at 11:41:37AM +0800, Jeff Chang wrote: > From: Jeff Chang >=20 > 1. add parsing register initial table via device tree. > 2. add applying initial register value function at component driver. OK, so there's still a problem with the whole concept of putting "initial register settings" in the device tree - this is clearly not idiomatic for an ASoC driver. If there are machine specific settings that need to be done unconditionally (eg, values controlled by external passive components) there should be specific properties for them. If there are runtime options these should be normal ALSA controls with the default values being whatever the hardware defaults are. If there are things that should just always be set no matter what then they should just be hard coded into the driver. --8X7/QrJGcKSMr1RN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5BpigACgkQJNaLcl1U h9BiyAf/QaAXZr0p0rJqLpG7vmgoly1T9FBkezqmJEiv3P33z9JTA42AEA+m+4/+ P4rXU6XE8hpiODCHfl8xxLY3VzihTReH7vIZf3BsGdsKNxOGTv/srMC0GxLynuXt aVgdqh/a1iVFpHlExbNepcncR7OD96NAQT90Qg25TkDEGQAKcX6KxFtD7xshp/jd dx6o0pSY4sypcaPDro+KSOzXDNdRv9tF0/mDKCY+nMpkX6mtFHVhJyp/W3J6bMDS hdaaLnWJ5qLwJa9d2wmuu0Mhgf8dcftSBHOHa1jPVYhloldoFGZTPtAa0BQdFH/z kGDUjJRGtISjBD+mJLho5/CiPPhPFg== =WFJc -----END PGP SIGNATURE----- --8X7/QrJGcKSMr1RN--