Received: by 10.223.176.5 with SMTP id f5csp2079932wra; Sun, 4 Feb 2018 20:08:22 -0800 (PST) X-Google-Smtp-Source: AH8x226XSLKDSQOwGZA++NWKnM2OdKUrQbrGpYE/nB02w3Sv3pNNkkzMj6NIwUSjNXR1Vr3Gv/Ip X-Received: by 10.99.96.80 with SMTP id u77mr7071682pgb.401.1517803701944; Sun, 04 Feb 2018 20:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517803701; cv=none; d=google.com; s=arc-20160816; b=AluEvDKgEfSBBsTlbCvIB9JCHtfst3uWqOUi8bMJTWEk6iWkxSz+j7sK7vb6g32dLQ H5fV9HbWgtizo9/EOhEBC5+Jp5MQKgHGRI3R3nTBqOGfiwDk7m6jAOfTzl6Mqsqv7Z20 gxFL3NLvhjZGk7owvByhVAA1LosgVi5R4Q6e0DnzWpa5Qmz8ZoOd3l7Vk4k9ji4y2flp ZpgGObemI9A3YAq2uftV7vOtgWGKHqX+a0dTZzQb4F3+HmmziLGx7zSYnfKo1Yjf+fvP hx/34hFYVnmhFJQ/94n8/ewXmkIjNZgk0+u9BnGH/vPRo0HbF3rLMdJRyU6Qzvp7Iw1n Xg8w== 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=4SkP8USAPVTFLovZ8skBAzHtt2jGWjjHBCPmeLdwub8=; b=0/pyI2o5HfDcLKWGgMXE+Quu8Zqp/Cwt4OVzSbkk/5XOtcx2xYJl+hCXbCHfTO32JA LKEvXGvEOBWurjQbop1GidXgxMB/71k5GyYPrZd0/tHfVy5m8z/Q3fUtUsYthzMGFebo d2FXntQJqcT96IUFoN4FPFmGUQruim+IPU4NCjmJGiJqwwUWemAzPA/ygGw/X/1hBxwH Bt8vdADdy/3wP3cHt7PBqDytXNdGjzQaOSOvesjtBc5qcnWOUQezbDnOxBF6ehQHZ82b Tf2qQ2Vpd61h/FcTeu2vlU29s5bdLqJJudWzBGxUJh9OlE5ZjjbTUsNnRUhvUHMNegSL Z2Pw== 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 w123si6292547pfd.95.2018.02.04.20.08.07; Sun, 04 Feb 2018 20:08:21 -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 S1752322AbeBEEHn (ORCPT + 99 others); Sun, 4 Feb 2018 23:07:43 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:16813 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751979AbeBEEHj (ORCPT ); Sun, 4 Feb 2018 23:07:39 -0500 X-UUID: 7b2c3e2a3e994417a2ad146de51fef4b-20180205 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1506107951; Mon, 05 Feb 2018 12:07:36 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 5 Feb 2018 12:07:35 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 5 Feb 2018 12:07:35 +0800 Message-ID: <1517803655.1173.12.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: Mon, 5 Feb 2018 12:07:35 +0800 In-Reply-To: <72058f8d-c83d-d0e6-dc07-83c9f5fc2710@gmail.com> References: <72058f8d-c83d-d0e6-dc07-83c9f5fc2710@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 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? Thanks.