Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp18168rwb; Wed, 14 Dec 2022 13:21:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5hmOkCjrBUMh/O96uzMiApe7AMGwD83mU549M7l0h87NamFrnow5e6DalMm393CwQK8a+n X-Received: by 2002:a17:90a:ea98:b0:219:2e8c:d1c8 with SMTP id h24-20020a17090aea9800b002192e8cd1c8mr26694087pjz.35.1671052897446; Wed, 14 Dec 2022 13:21:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671052897; cv=none; d=google.com; s=arc-20160816; b=LL17PfRdY5MWECWdy2xPn40V3WUEuMCWZeQIWOHvIcvfeVhwK+gUDzFro7OX5exXuU UYJ1hRKk/NBkRRZQ8esFRq1WornhgqY6SB4WWxD1kWSAygo8LQ9ilEng4bfxujsGpY2A sivXmRH/f1DnZnb4x7Jkiif7iwPIADJmV3hd/OT7vgdVfc2s/vJWW6DQqnNRvg+Drl9f 5DPF99IHo94KwHRbXpFvpZOEyyQ81pkrsEI4ZM2wwDJ0TgzwD7lpWfJGMBawqsEL/PAc fg3gkGUH9+chuSEy3gZjSrlfuJUEKDHu4dBPszrH+LapDe2beTjiTvaCkOk7sNccEhN+ dkRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:organization:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=7dtoXhtnaVnh5Z6efBy24a1ZLt8Pv0Iv7af81Gd4QuA=; b=0QiDSd7MWfmiSF7fdOWjqG10FsIlj9/gyBI1O3AbL/UDZQpwO+daaox1ryyPZZ6D5Y gcjRGyOQNWMF7VOr1hyMEKCqeCklLwRPp/gaRQqEFYqmiv9b4XWDtJ2LT8KGpOAwsTQ6 Jqn5xqH2SEp1UnyN2iYGIWk7HnI0H1KX0zrxilYVAQ5ljhEaa0xaK5GuheanLUCYfsAE SCooEMTEu1sxdW/8vn2/nQA7VnWQlXDfQKLxGHpalY4EGy/X5dPoeKpebsIqfuq/vJ+c 6LLy+W5xx/F8q6efu1183FemlV41zK/5euDzFup7DqjV5uUQoquIYJ0dmlKTYeaTGweD +qiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=uBILq3Xz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a634a48000000b004776a50bd21si763599pgl.579.2022.12.14.13.21.24; Wed, 14 Dec 2022 13:21:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=uBILq3Xz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbiLNVKm (ORCPT + 70 others); Wed, 14 Dec 2022 16:10:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiLNVKk (ORCPT ); Wed, 14 Dec 2022 16:10:40 -0500 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D51DB861 for ; Wed, 14 Dec 2022 13:10:38 -0800 (PST) Received: from wsk (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id DE2638431A; Wed, 14 Dec 2022 22:10:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1671052237; bh=7dtoXhtnaVnh5Z6efBy24a1ZLt8Pv0Iv7af81Gd4QuA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uBILq3XzKI4YnEVM8OoAWrXo5syr0ROMYUdDCd9dCvnuM6DsvgLZYJAEmSdkCBhv9 wzHG97dppQHK1UFEH+uX22ntqB0VfeT9EJPPj9V+mVJgqnh4rReITpeFumBBpyVElo jT1MHTi6iasa7hWGmvURynWGXu9EyffDyYKr5uMAolMv05joXuXu+YO1Ya32277WDR WjEWW0J0OjGbZWId+xEVlEDbxbmcvOCNcTS5Y6w0LX8Kzq7PbSUbwklNaxMrkxUuUz yGRHtuPfJO8SXfofEUCrtT9l0jiL0vR8q5dOJVBkmBEG2oXvmaKbcy4AeOxBAGD773 qvivIUN3qDMbg== Date: Wed, 14 Dec 2022 22:10:35 +0100 From: Lukasz Majewski To: Mark Brown Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Charles Keepax , Stephen Kitt , patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] ASoC: wm8940: Rewrite code to set proper clocks Message-ID: <20221214221035.25347427@wsk> In-Reply-To: References: <20221214123743.3713843-1-lukma@denx.de> <20221214123743.3713843-3-lukma@denx.de> Organization: denx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/QNpDM0lSQp3YUsIs1hh5dY5"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/QNpDM0lSQp3YUsIs1hh5dY5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Mark, > On Wed, Dec 14, 2022 at 01:37:41PM +0100, Lukasz Majewski wrote: >=20 > > Without this change, the wm8940 driver is not working when > > set_sysclk callback (wm8940_set_dai_sysclk) is called with > > frequency not listed in the switch clause. =20 >=20 > Your commit log doesn't actually describe what this change is... >=20 > > This change adjusts this driver to allow non-standard frequency > > set (just after the boot) being adjusted afterwards by the sound > > system core code. =20 >=20 > This doesn't appear to correspond to the commit. The change will > result in the driver automatically configuring it's PLL. >=20 Yes, indeed - I will update the description. The problem with the old code was that after boot up - the frequency was not in the 'switch' values, so the driver aborted in early init. > > Code in this commit is based on previous change done for wm8974 > > (SHA1: 51b2bb3f2568e6d9d81a001d38b8d70c2ba4af99). =20 >=20 > Please include human readable descriptions of things like commits and > issues being discussed in e-mail in your mails, this makes them much > easier for humans to read especially when they have no internet > access. I do frequently catch up on my mail on flights or while > otherwise travelling so this is even more pressing for me than just > being about making things a bit easier to read. Ok. I will provide proper description. >=20 > > @@ -496,7 +505,6 @@ static int wm8940_set_bias_level(struct > > snd_soc_component *component, return ret; > > } > > } > > - > > /* ensure bufioen and biasen */ > > pwr_reg |=3D (1 << 2) | (1 << 3); > > /* set vmid to 300k for standby */ =20 >=20 > Unrelated (and questionable) whitespace change. Ok. I will remove it. Thanks for the review. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/QNpDM0lSQp3YUsIs1hh5dY5 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmOaO8wACgkQAR8vZIA0 zr2Utwf+K6mHim7wUuBqEsORod1LhFNJ6FO47rpdO1WayfqWjVQJ28/0CbQ6ZpmZ CuDzOvjP/T6+tfAVmIkrbqMI6JSpWZznbbWjO38SlymTriKKTh5sBWDIspRZ+mnN WCUo+okBaeUgJqVCARMse+i8WpJWLAtMFaID6oV01cqcKPaw61yhECpw1U4v1sa5 uwZyr3SOVrZ40gK7xZIeVQzuQZ52GVPBr/VvweSwiOsgbKvjYECQ1TmZQYtWM3QE FJAKbd8v5Ad/CPkH34KohoxCzQyl0B7GS+ImCr05LS9iDi78iwfVbA8XX0dB5LX8 pazkoNn8U1O3hhfKdxk4HK8NTYHbRA== =kxtP -----END PGP SIGNATURE----- --Sig_/QNpDM0lSQp3YUsIs1hh5dY5--