Received: by 10.223.176.5 with SMTP id f5csp1511429wra; Wed, 7 Feb 2018 21:58:26 -0800 (PST) X-Google-Smtp-Source: AH8x224SkcGlDtto/WvqhyJpQ7Hnc28uk4zZ1H26yqZjpyGp0BH/QuG7smhWW5V/IfXj6aKj08PU X-Received: by 10.99.174.69 with SMTP id e5mr3259358pgp.269.1518069506441; Wed, 07 Feb 2018 21:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518069506; cv=none; d=google.com; s=arc-20160816; b=Rkn0X9sQVv80CZrmCpvh+i116gyOyXo35g9+r1X13jcauz09Sw15JiwniyeC5xcR9U xBp1XQ42rA/Hfl6sR8GnTnE6DwzDzgF7bN3KxRIMHeA7b+A0r7gPTAtBA0a2baygFsVr 5JD7DQtqRAltq23N7wHXoNxfI10V1W14/RqrgjkYPFJ3WbxtCW6ZG+9tLrGM9Q0M+4J7 9IXHSPhO7ufnIoli/xXPZoW0W8+jOEhDCgeXrlh1jdBWgGsR7+DUfpJQ1K135gKuJjgc szBOxRK5njHYMA+1Z3JeDEYxbshpzkAzJ4FdVwn4nLx/jwi7bokK6OY4NPWzi2T8wQiZ 9wXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=rQ81Dei492JIlaszggB4RN9xSACmYmnLaQPbmfCxS2M=; b=QvaqxaIlIc14jB8/OIKmcUfzpYBKxyT5CLBBy3HAbtYDnY36dDyO85dNVD0Qz2//UM 8uqoFg8PPcsoGwgJYxBdziOgeSzG6Q/Fmp6ITwcS9r6ro+BWo3XTutgUvCQzcYRKaLHm uBrJoUNJ+5XYGiqS31GURvkCQpzkjUjnYWeAE5E4GAwigMnmUNmIEH+mjMZ1XwqkcE28 RDBFQIg+UNfq3nzCgV3aM/CGY1HIpw3l3We6Fxb++182rvuuGtqJ1ZSHeWRN6pEYoUHP HlsRzqQ28IHfzHMpo7u8mSF4XapD0kPwCMCz9fy0JXGcXXvKNyrA9tGV0SLlkFhzvzpg Iu6w== 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 f12si1980077pga.22.2018.02.07.21.58.11; Wed, 07 Feb 2018 21:58:26 -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 S1750865AbeBHF5e (ORCPT + 99 others); Thu, 8 Feb 2018 00:57:34 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:44785 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750749AbeBHF5c (ORCPT ); Thu, 8 Feb 2018 00:57:32 -0500 X-UUID: e3f5e06b960a43dd8e2135b967e4e7a6-20180208 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 616134398; Thu, 08 Feb 2018 13:57:28 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 8 Feb 2018 13:57:27 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 8 Feb 2018 13:57:27 +0800 Message-ID: <1518069447.28878.4.camel@mtkswgap22> Subject: Re: [PATCH v2 2/5] clk: mediatek: modify MT7622 audsys to adapt MFD device From: Ryder Lee To: Matthias Brugger CC: Stephen Boyd , Rob Herring , Mark Brown , Lee Jones , , , , , , Garlic Tseng Date: Thu, 8 Feb 2018 13:57:27 +0800 In-Reply-To: <0e0e703c-0ac9-06ad-91c5-abdf16de1ee9@gmail.com> References: <72058f8d-c83d-d0e6-dc07-83c9f5fc2710@gmail.com> <1517803655.1173.12.camel@mtkswgap22> <0e0e703c-0ac9-06ad-91c5-abdf16de1ee9@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-02-07 at 16:18 +0100, Matthias Brugger wrote: > > On 02/05/2018 05:07 AM, Ryder Lee wrote: > > On Sat, 2018-02-03 at 15:26 +0100, Matthias Brugger wrote: > >> > >> On 01/31/2018 08:42 AM, Ryder Lee wrote: > >>> As the new MFD parent is in place, switch probing method to adapt it. > >>> > >>> Signed-off-by: Ryder Lee > >>> --- > >>> drivers/clk/mediatek/clk-mt7622-aud.c | 3 ++- > >>> 1 file changed, 2 insertions(+), 1 deletion(-) > >>> > >>> diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/drivers/clk/mediatek/clk-mt7622-aud.c > >>> index 13f752d..8c18536 100644 > >>> --- a/drivers/clk/mediatek/clk-mt7622-aud.c > >>> +++ b/drivers/clk/mediatek/clk-mt7622-aud.c > >>> @@ -142,11 +142,12 @@ static int clk_mt7622_audiosys_init(struct platform_device *pdev) > >>> { > >>> struct clk_onecell_data *clk_data; > >>> struct device_node *node = pdev->dev.of_node; > >>> + struct device_node *pnode = pdev->dev.parent->of_node; > >>> int r; > >>> > >>> clk_data = mtk_alloc_clk_data(CLK_AUDIO_NR_CLK); > >>> > >>> - mtk_clk_register_gates(node, audio_clks, ARRAY_SIZE(audio_clks), > >>> + mtk_clk_register_gates(pnode, audio_clks, ARRAY_SIZE(audio_clks), > >> > >> We will need a fallback here for older device tree bindings. > >> > >> Regards, > >> Matthias > > > > Up to now, I didn't see both driver and bindings are used anywhere. > > Should I still care about that? > > > > Yes please, we have to ensure that newer kernel work with older bindings and > vice-versa. OKay. An unrelated question - is it possible to change the compatible string (*-audsys-clk) without breaking backward compatible?