Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1080963ima; Sun, 21 Oct 2018 04:24:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV60EfjuH2QW2T8zfyIV1QovtHXtYKGdunDCKbBVyFhO/0pBP8eQmzZa3epi8EYdd9w5l2JLm X-Received: by 2002:a62:4799:: with SMTP id p25-v6mr41481464pfi.197.1540121049902; Sun, 21 Oct 2018 04:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540121049; cv=none; d=google.com; s=arc-20160816; b=a35QF705UVk3p0iav9WK03ATqFSmO3y8Pim/LNPlQXwi0f44v+4xKvY8IVeHKMZvW7 zXSOQnuuCNXp2mJBKOzpu12KKyzgC5Mta4pb8eabOYi8XWJgBP1J5O6WyXSgyYJ0XThJ PuSLQ4tLYnXFokg5AuuKDovrfR+Q19IxRojaDeb06p+PjNjYSuV9BnfKMe8OWcWAaHrw 2FOl/EakiwzJN4nYNygOEPhkH41i+KwcmPGB9/yIAFeSSi8BhXTLhbwCQrB8UUhzJ3wE FwsjGfmp3DT1hbUIyMfrUwX3Lr9vBmQTDMzE9JmMqb4HmSf6+q1gsF+rCuS/S7KjtrIE Tywg== 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=n0s4/5nYi1ErNihuL+0YrceJPCOTVqM0hCgk36SP488=; b=j7779rAh72FNmCL2NiTKpodKAfTX/glcd5hb5KcNdHo4Kg/ZfoKA3N+g83wrjAW7qS 68gCP9ze06l5CP4I+SbhfLwHBqp+Wz4d9zKrIsKYY0mXdFzonHftiRqgi1wmaH+i8th6 mrB2cE7mucbESUNArGFBcIswTlTvQvyUqfSDDin0wi1w5L97Uz7Igm6IblTgYZFb46cy 0nQPdYOjUmQwRZ94AKBt4XK5Rx/ngNOrK6ODp6Wjkphy0zVbkv+qADJu/E+uOY8d50TL b8OQN1oWV0yF2no+0gkzv22kloM+7LQmn05UNDa4i0S8rlYsXQ7bU/EIbTUf8u7ApmNA nxZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="RFUowC/T"; 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 x6-v6si30891162pgf.303.2018.10.21.04.23.49; Sun, 21 Oct 2018 04:24:09 -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="RFUowC/T"; 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 S1727573AbeJUThX (ORCPT + 99 others); Sun, 21 Oct 2018 15:37:23 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:50340 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbeJUThX (ORCPT ); Sun, 21 Oct 2018 15:37:23 -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=n0s4/5nYi1ErNihuL+0YrceJPCOTVqM0hCgk36SP488=; b=RFUowC/TvVbVN/vGGbMpnYBdb kLbrQF8GsK6mmalqqNpid6WLG5E17JGHkhp74RI+bIWOec6ksSW+vZEpe7kgGUKOooh0ftqmYWQq9 iptczHizHK1Md+qK9fPctsPUaIL/o555XqkFHXBmykizKWlaSB/ncOfUJBQml45+2Nzhw=; Received: from [87.246.76.36] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEBoz-0003sm-Nv; Sun, 21 Oct 2018 11:23:01 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 4F220440078; Sun, 21 Oct 2018 13:23:01 +0200 (CEST) Date: Sun, 21 Oct 2018 12:23:01 +0100 From: Mark Brown To: Jon Hunter Cc: Marcel Ziswiler , alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Kuninori Morimoto , Marcel Ziswiler , Jaroslav Kysela , Takashi Iwai , Liam Girdwood Subject: Re: [PATCH v1 3/3] ASoC: soc-core: fix platform name vs. of_node assignement Message-ID: <20181021112301.GC8554@sirena.org.uk> References: <20181018111829.27056-1-marcel@ziswiler.com> <20181018111829.27056-4-marcel@ziswiler.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CblX+4bnyfN0pR09" Content-Disposition: inline In-Reply-To: X-Cookie: Sanitized for your protection. 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 --CblX+4bnyfN0pR09 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 19, 2018 at 11:22:46AM +0100, Jon Hunter wrote: > Looking at snd_soc_init_platform(), it seems that the platform pointer > can be allocated by the machine driver and so if it is not allocated by > the core, then I don't think we should clear it here. Seems we need a > way to determine if this was allocated by the core. Indeed, this is a bit of a mess. We probably shouldn't be modifying the data that the drivers passed in, otherwise we get into trouble like this. That suggests that we should copy the data, probably all of it. I will try to have a proper look at this next week. > Furthermore, it seems that it is possible that there is more than one > link that might be to be cleared. Yes, that's an issue as well. --CblX+4bnyfN0pR09 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlvMYZQACgkQJNaLcl1U h9Btfwf/dFxAtQI/Mhc7ISVGXuzVPNSrMX9GIpvPLgmAYOMav0sAv/Hwuc5l8yQn lezhE0TDqs7mjjnBcjSkNlMX+8DRzlr/ROGKmnew4bQUwww+rEex1damDp6JS3b2 fdYqhq42yAVjh09z3ofdX8oa3Y3glbNAp3zR527TajqzSZHOpUOMAFJBxCByDQGH +8JNd5A7LsccEA29oKULq6OnlsthVbLNEhirU8SE1qaUSadHAZLB8o5IQRmIGnIH 2SmmerTwmMCQE5AHwo0H5HY5M/h6wGYlDNJK2n2mSKohDvN4hKiFBb8lhFb+K15Y V1l48FNy1pCQpsD7aeTSHFBmh3XhRg== =q3BQ -----END PGP SIGNATURE----- --CblX+4bnyfN0pR09--