Received: by 10.223.176.5 with SMTP id f5csp774150wra; Wed, 7 Feb 2018 07:20:50 -0800 (PST) X-Google-Smtp-Source: AH8x226ut2KG9lddunbaIKheZbmnnqluO+lPFbIu8MitGMjPyEfDhSN+7cNMhhaml6GPIg4VWoAe X-Received: by 10.101.82.141 with SMTP id y13mr5181794pgp.179.1518016850036; Wed, 07 Feb 2018 07:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518016850; cv=none; d=google.com; s=arc-20160816; b=DZ26uMiTFfQ6xiUOYd0nn9kcK8egwo+dnxEXlyUGQVXljE+ye9TR4NHTCrVO9CfLev ApksEuHp8JuuayHj7MVuLpnIk8wmYvC2yfdDH3G95Vyp0DggCXNv3B8J95QPXA1aIdST 94YOr9BOGqhIZlXZz/Gfsaxslp5cXaB2cwTrmawcQunq3WxHf19g1tV7uXDixEBPluHG YG/O7QC6prgtIdA/5xd4gNr9L//MEaGkKHqzi549Fut7J/VW5uZ1g5jJ7G6ZlydB0S6C bcbiAgECijk2quwgWpBU0TJ+2Xt6QC4W2dvn+YwHxiz2wlbxRjFVcb5gvq1fK6E1jmWr sVuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=vuBxi9yz4tur1pKhHm6miFyk3wWs8VtwcNxPZJWONGQ=; b=GrGawaToI+9evj5LliOWdI1iN14PSIxC0kohP9UXcHen5cX/Z5ZCiwWVd+sjgdG4rG WIjdcny+E7t+a2GQzj1Vd2HIPqlhuLRVsNwcQ11lSuRxg/YWiMT/CtgDOo9pdnEJz5MH ZNpphuQYn2I5Ei+dtYGX946n/LKYOvIi8MIUdYF/ziu3HQmSHccuPaACaXT3M9u7lR8s tFoOV4y17ilSuxxqekwICmUqdGg1k5ACimMObBHgyJn+2pTecxyA2476sduYonc9jJxN L3JfcdDsWFMmQqIlfHVpMXhLnOZdo1qBODpWHdhSBwuoh24j9Il166OdZWReqUMBTs3/ rggw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=djUpvmm5; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si341439pgt.572.2018.02.07.07.20.36; Wed, 07 Feb 2018 07:20:49 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=djUpvmm5; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754602AbeBGPTF (ORCPT + 99 others); Wed, 7 Feb 2018 10:19:05 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:32792 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754091AbeBGPTD (ORCPT ); Wed, 7 Feb 2018 10:19:03 -0500 Received: by mail-wr0-f196.google.com with SMTP id s5so1447370wra.0; Wed, 07 Feb 2018 07:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vuBxi9yz4tur1pKhHm6miFyk3wWs8VtwcNxPZJWONGQ=; b=djUpvmm5WZcdQ2eZQlZWj5XBQRQ8cHjnfWD1nQvGaAt3gDTkf+/uacxAfwdD1tf+Hy wgZpagnV2Dz2y5eFIIdFpkfKqsx/csq59TzuNRGlPNXF3EDaYv/Gl2Ta8wSjhBe4UB1k aEYkAxCg0qzaSpOB2VuP9wwgChNrQAH4g/L4MpGmzbe8/E9p37YlzSKAQ+9JE/89m52A 70fLwg/5Jpg3vr6aZmvvOuQYsTY8zoZsJUtoFU1xlG/T4VUMzZv1c0ND5SoQvMAN/VAn AdyRz64lELflFNMbo5RQ04QR33v199nFaXB503WBgh9ohbcGolM0mDUDvbZOxQocqnB9 HAhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vuBxi9yz4tur1pKhHm6miFyk3wWs8VtwcNxPZJWONGQ=; b=Cs81Ad9r1LtI6feSi0hz0wtIj7+VzFgztO+UfW6UzPF4YLic+sxEP6PHPA3/qQMaFR eFpSQnKeJDmOL/y+uWw7vpux2NJitgMiggFFQNFwPFtpx9UvmG+Kvs0Fg1MlMRP5AgLc 72YtvocjtFHI1utG2MUJzCGYeEdUOO7NQnklimn/43tDC9LZciIuHBR7dL/a1v2Iyp49 qNSNEe304m6MN/tcHu9YYRxcjlajk3/QAi5i2oFst2QE1b3aW+cK4UNyU8p2hiQG0gWN n5igOB4MFljuBTURSxlnXI4CJJkTo9EpDvp2I4iBAhrzpv1JyzisQIUsRwkhEy8w5xqc HOnQ== X-Gm-Message-State: APf1xPB3Fs5czcqeto1fB9+T3tftE8iBxZY4WaL3U+rGL1PMibVZsYrc JGvd7ZLtd9WXBmSUkEJrz6oHYusQ X-Received: by 10.223.153.54 with SMTP id x51mr6512127wrb.210.1518016741532; Wed, 07 Feb 2018 07:19:01 -0800 (PST) Received: from ziggy.stardust ([37.223.139.174]) by smtp.gmail.com with ESMTPSA id u98sm4475980wrc.69.2018.02.07.07.19.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 07:19:00 -0800 (PST) Subject: Re: [PATCH v2 2/5] clk: mediatek: modify MT7622 audsys to adapt MFD device To: Ryder Lee Cc: Stephen Boyd , Rob Herring , Mark Brown , Lee Jones , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Garlic Tseng References: <72058f8d-c83d-d0e6-dc07-83c9f5fc2710@gmail.com> <1517803655.1173.12.camel@mtkswgap22> From: Matthias Brugger Message-ID: <0e0e703c-0ac9-06ad-91c5-abdf16de1ee9@gmail.com> Date: Wed, 7 Feb 2018 16:18:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1517803655.1173.12.camel@mtkswgap22> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Matthias