Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp477043imu; Fri, 11 Jan 2019 03:52:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN4xuA2UZNMLlEhWwvd1kbGVcolE3Z4Qp1fOsLoM0fFVUOIYtdLIjDxLiI2moWuUlh5ZwKN0 X-Received: by 2002:a63:e247:: with SMTP id y7mr10379141pgj.84.1547207548482; Fri, 11 Jan 2019 03:52:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547207548; cv=none; d=google.com; s=arc-20160816; b=Fv1PoFw3JS1iFfHbvmqeebgtQWvPm4GAdbo2Y+wNOajB8eSKD0DWBI7cUyRJiNK/fN efnCB1FWXsmff82QwubE9ryLJKSIcb8Vj3/sReuaKdnKxK09vfCXP6pXlIph9Fqx6qVx MFqo3q6+y4Xthml0aOzYZd0CIYATu3MrH4v8AnTXOMEp8o4PxKU8eotOpL89ONQKGhMP Hh0QMbzMYV2W9d930l/Pz4Qbn1t84UtvzUpK/S2QsWjnX9lsIzT0G79CwBIqP72krWSN /QFB5bqJgldKjT/73qu56M3Ka0+PZu2NLJFN5RSIhhC7GVUxeM8iDcRV2zxpbe3dkasj 0e+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=w579yZp3NKsdtvn0pKPkx5gK9Dn1MemglOwlOXIzuME=; b=CGsea5TOIMznFR77efXfOGl8o092otzP4boqAfNh1IhwDq/e40rcVD5n4UkQ2bHyhV qMrlK3uJhQqL/BIAG8hR0RlZV+J6+OR9hRtMv59x4pPqOuQl9HkWPO9Jxvl1+X7ZPWDa cbAPD/MBiEqgB7akvxtu4nsqy6lxgJRBTNy0mvpvclzHv72ZFIQ4o+ChdB7I8vXM/jqm /bouBbslDMyhlkYp8rpw8khnP6MaPuw6P1RGZTCBqxNDkeJ1ECr8cmTIKZKWyiN7ChjE H8vH3WfPjNQIJ+VhU1ab/+fgp8A7phiqNETJaPwHkDmWRitDKPibJBQwwE7sHze+VuIw SFug== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si22702017pfc.118.2019.01.11.03.52.12; Fri, 11 Jan 2019 03:52:28 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731266AbfAKIv0 (ORCPT + 99 others); Fri, 11 Jan 2019 03:51:26 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:17719 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725779AbfAKIv0 (ORCPT ); Fri, 11 Jan 2019 03:51:26 -0500 Date: 11 Jan 2019 17:51:22 +0900 X-IronPort-AV: E=Sophos;i="5.56,464,1539615600"; d="scan'208";a="4957869" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 11 Jan 2019 17:51:22 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 7EE7A4015C22; Fri, 11 Jan 2019 17:51:22 +0900 (JST) Message-ID: <87h8efpoxh.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jon Hunter Cc: Mark Brown , Liam Girdwood , , Matthias Reichl , , Marcel Ziswiler , Takashi Iwai , , Marcel Ziswiler Subject: Re: [alsa-devel] [PATCH v1 3/3] ASoC: soc-core: fix platform name vs. of_node assignement In-Reply-To: References: <20181218174040.k7u26vnnoplllnwb@camel2.lan> <952471da-b355-6471-6c19-5120d6704f81@nvidia.com> <87lg3vuc7p.wl-kuninori.morimoto.gx@renesas.com> <865d2a3e-bf6b-1f30-1179-7e922c0d0641@nvidia.com> <87k1je38w7.wl-kuninori.morimoto.gx@renesas.com> <0660a471-3698-2059-4494-ad146518a4ed@nvidia.com> <20190109125340.GD10405@sirena.org.uk> <52f5f2cf-9260-f9c5-f73d-3c3d5debc86b@nvidia.com> <20190109141439.GE10405@sirena.org.uk> <875zuxb9uy.wl-kuninori.morimoto.gx@renesas.com> <871s5kqb43.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jon > > Indeed there is such case so far, but my understanding is that current > > driver should select "legacy style" or "modern style". > > If driver setup it as "legacy", but access to "modern" member, > > it is driver side bug, right ? > > Yes absolutely it is a driver bug, but looking at the snd_soc_dai_link > structure today it is not clear what the driver should be setting and > what is 'modern' and what is 'legacy'. You need to dig through the git > history and code to figure this out. So you could say it is not very > well documented/commented from a soc-core perspective and could be easy > for a driver writer to get themselves in a pickle/mess. Anyway, that is > easy to fix and we could add some comments to clear it up. Thank you for your feedback. Yes, indeed there is no enough information/documentation about legacy/modern style, and its plan (= all driver will be switched to modern, legacy will be removed, etc, etc..). So, can you agree about these ? 1) Add enough information/documentation about legacy/modern style and its plan. 2) Add dirty pointer fixup patch as workaround 3) switch to modern style as much as possible 1) and 2) are needed immediately. 3) needs more time, but we can try Best regards --- Kuninori Morimoto