Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2649652pxb; Tue, 9 Mar 2021 07:39:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx37CgsUTxrTmyS/9vi3M04zZtnbzoLxbgL0QWm5uHPDuXBHMHQ+6NcN8FuOnUQ6k3mh3x X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr20393184eju.180.1615304385145; Tue, 09 Mar 2021 07:39:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615304385; cv=none; d=google.com; s=arc-20160816; b=AE9GvRw2KvNIPolgomsXK9DoPev2QZ5gaU1p0llsDlt7ipGoqqUSv0FOXXt9q463Mk gjEOmNBVYZHZQ3mlIOtk58uvaI1OEYOAHEFFnG/WPVp7/SXFZ3eRjThRDXLDB219yhgI 77CGuGCZn4Kz0lvGfE4G19QHPreFwnAj6GQalEb+n04j5LdXM6AR7aliqp4gxEL23iwn +lRmJ3oTHOusTiLH5xn+gvP2Eu3HkKKrgX+/8bZfLddUOOae9w0v4Tu6Du1/Ry02sp0H fI13WfTiSgK0ORDAK6wDYxcPqUuA853Gl9dwHYN3DqrE8MXLlLvSExLjzskJ9YDWOq+L G8fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oec8ZGatGSzjTInVaDVHIhQ+mudklieinoAz1oY9kmE=; b=mK9Ug2dpjLHMg/b1u1MiNv8L436VWJp3UcEGlMxZV6X6C8I6X1HfZXWIuczo9JOPjw ZAwl5EbvX2GQVzyda7vf8ZLNkoXlVjjpj9g0PDTcyuwrImOa3hdVJZ9T2P2Obu37uJzw qgWQdGfIjTmPQ+p59FQ/9t7Qfc8v3KUarQwBf6QcZDOMPkZ8t3OUiSaN5BWqInT1exsH yNh04VohxtE7tSMjXL0Q6GLTs7D9mwcpKQkIpnNzKUZZY64iSVwsRskLwXkYy5IqFUJQ sD8+WPZG6pJ9ScxR+m0uvWoQnXNZPhbZueyc/63M0kOmJY5Xy/sdXtoeYcsAruNYjNOF TYzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="e2r/7/r1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si9320390eja.96.2021.03.09.07.39.22; Tue, 09 Mar 2021 07:39:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="e2r/7/r1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230449AbhCIPgL (ORCPT + 99 others); Tue, 9 Mar 2021 10:36:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:46876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231195AbhCIPgH (ORCPT ); Tue, 9 Mar 2021 10:36:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5CE3A65238; Tue, 9 Mar 2021 15:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615304166; bh=Pofaxorq7jn6ioWTVLvagneI4H/1LHRmxp4Zb18QVAQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e2r/7/r1ukV3G49vkayekVLr8eKvRHwVVLMgi2LCWRjExlht8QRFMuP8TwT1LvHzv M++Z9Q7QPMPisXlegJpRPpNekSitAwMOPgVDOE/j6slSVR6A4rdnKcqdsy7+96K61/ jh2qpMP1kJq1UyBqEgLJa0OIuomSNPGk0g8VtgtLsipceGqUOtksXxJ8aNza/NfoAl M2Osg5Obvrxyz/TwzMrRzDDvWbPh9t76Pv2Cq9O06c/rOLBOgLbGw6bhEz4Ermfnxn JLk99+/1BybsjNfr8v53mijg+vt4qD1uVLTXgCvEy/Q9OuxCEza8Ilc2zSELLCCr0/ ASGq7tYFPd2FA== Date: Tue, 9 Mar 2021 15:34:55 +0000 From: Mark Brown To: Daniel Baluta Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com, ranjani.sridharan@linux.intel.com, pierre-louis.bossart@linux.intel.com, shengjiu.wang@nxp.com, Daniel Baluta Subject: Re: [PATCH] ASoC: core: Don't set platform name when of_node is set Message-ID: <20210309153455.GB4878@sirena.org.uk> References: <20210309082328.38388-1-daniel.baluta@oss.nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aVD9QWMuhilNxW9f" Content-Disposition: inline In-Reply-To: <20210309082328.38388-1-daniel.baluta@oss.nxp.com> X-Cookie: Immanuel doesn't pun, he Kant. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 09, 2021 at 10:23:28AM +0200, Daniel Baluta wrote: > From: Daniel Baluta >=20 > Platform may be specified by either name or OF node but not > both. >=20 > For OF node platforms (e.g i.MX) we end up with both platform name > and of_node set and sound card registration will fail with the error: >=20 > asoc-simple-card sof-sound-wm8960: ASoC: Neither/both > platform name/of_node are set for sai1-wm8960-hifi This doesn't actually say what the change does. > - dai_link->platforms->name =3D component->name; > + > + if (!dai_link->platforms->of_node) > + dai_link->platforms->name =3D component->name; Why would we prefer the node name over something explicitly configured? --aVD9QWMuhilNxW9f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBHlZ8ACgkQJNaLcl1U h9CCjwf+KGK9CFvGq0ABRqnlUjLRBWp+vksCfNrIv+WEUvyvWh0ZHjOjOJb5xLP7 uuf4ei9nQDAeyTh7/jDpU2l2/GUUYuJ/6IRRsgZr2OpxEFOGiH5A0U4Yv5fIPB9p DLmqYFD44/QqRnX5aXSq2eTFYcZPWElrkXgZcxeq65kSRJAtf2okS9x8XnmuBHiY h0nb6Q3oTf7PnFoHKHxD93BY5dDuoCz3Ge+hs3+L/piVC/9qDzSnzrHbOl14aZKP /S/r/QY8eQ5A2caYQl3JLFaETl6/baRcgH8CP6LSvnLJJH78tsbaOEQhTeYiBKX8 VNfo+jBBZJBxvqhOiN41oxupo38zhQ== =H9TN -----END PGP SIGNATURE----- --aVD9QWMuhilNxW9f--