Received: by 10.223.176.5 with SMTP id f5csp668744wra; Fri, 9 Feb 2018 05:25:23 -0800 (PST) X-Google-Smtp-Source: AH8x2240Ye/OYnajYPKgAM+VJX+no/Ytvtgozv+OdMkHhmf/d5Ml7wn/h696crjgA6761Q0ghn74 X-Received: by 10.99.109.70 with SMTP id i67mr2425213pgc.109.1518182723293; Fri, 09 Feb 2018 05:25:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518182723; cv=none; d=google.com; s=arc-20160816; b=UpW3h4AEY9E2Tu/f6ZdUp4NtIWdHj2MPGl13scS4+agfqSPRejMbMRH9qL0kNRY6GQ A7liUCGKuifDP8KK8a7A4h3z9p2IppWX59pjiZdoLYykt/NivjXaYSM5VsiV8xhPv2kK t+WZEBUp2/Ahe+ZGbh1MPqV3H1iryKfvYZN1n0VRlsopylywWSACjshH40Z+K5+VKOt+ CzzUHMqygydl7QMEbyN5aSoVclLjRmdXERRORvfDUMYib8Ji4I6H7pRxLLd6t2HhGXUf 8QlU8t42FbFcPS3Py2ih7nbfDCOx0Aamq7kZouYVbQeUL/RAQQss/QFA6AMpDLnDYA7S DRkQ== 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=JzyBeM6c7f7N5tQfIyfG0c0i2Sggsb4QHlLPf/aEtCc=; b=GE7vItmyZbYeCbNuW3gGGjSaUlnlSVTpwiuMiN0ayX0hb/FbXlL9/nTkAmCRjYRWuW BhkPggkIN7vAfwdF3DfCnB6XzG6ybQ/o/ZSNWUYcqtx+GThqaRoPuHzcHGTexsBE6qfW JSzL2T7zSlu3sSt+IP4R8rMOnjFBS50Xu1DOkA0czuBouQGXZFqLLkjQUMh6dQABEyZI qJQB1W63hnLQtgsJarf20KfCBtuCzjI1EvCaQPMh/hGpM3mHZnqAG9OptVIgYsVF7LqP RDCX/NuK8dMaESauJ3rVbc7jSvLWP0ItvGLvbe+95/BShGt88J9XiA630ZgV+8btnc+/ o8og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wku/xC4T; 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 s7-v6si1475199plp.57.2018.02.09.05.25.08; Fri, 09 Feb 2018 05:25:23 -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=Wku/xC4T; 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 S1751057AbeBINY2 (ORCPT + 99 others); Fri, 9 Feb 2018 08:24:28 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:39235 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbeBINY0 (ORCPT ); Fri, 9 Feb 2018 08:24:26 -0500 Received: by mail-wr0-f195.google.com with SMTP id f6so8222099wra.6; Fri, 09 Feb 2018 05:24:25 -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=JzyBeM6c7f7N5tQfIyfG0c0i2Sggsb4QHlLPf/aEtCc=; b=Wku/xC4TRtauYs7/E4pYG7Qvq9OkAAbe++YAg+uDmKUR3QKDbTV4BNE7WRDtiuyOSx sESE5I6MOjvho9pk99WmawgkkUzpryn+Iff4SAfjlTur/wTWSKo5kx5ljNDfxgPYvDXf EEJBHtBMx27IDS7tupXB59H7dSx00w86qp+5eOdj+ISs76yrKnkyLcRLyILJ7Pp/yuKw cI30nPWTUdzUqkLSaxejBXIbZCOqv7tehArBvlyWyKncT2gNhln1go/PrqoJI/hnbX2L AuznK/Tbb1fjyGVdsXHqIStKyYrSXpunoHr2JSdr9HI4mq3QRd3B+tuUfKmcGTawI0+z C3fA== 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=JzyBeM6c7f7N5tQfIyfG0c0i2Sggsb4QHlLPf/aEtCc=; b=OOYa3HTk4FFSuSPG0Eulpd+KBZFaLNuz3diMb0DhrQtmOMPxJv8oI8GLVRkUEPWrP7 guXF2llMAXebtvWDcvHox/PSK/QyMHvKiYF/t8RUUQ2iAZ0unMkZojcKI6IHQ9839ICZ AnBWQj0xv5B8G37Xbn8lERnoqWPNYmZCHkQHfLQUfn+QS1cT69xpkgcJVwjzfJ2zifr5 U5TqOEw2tLpCQoG07E487QlG6SSsnjGpy0pAQpMkz7Q0paDc4W/kg9dmOWEGr5+TLFGX DM6DfumawJfwvBUIHX7xKsDFRyE4jg9QpQZUzvFB2RiRn6oZ7mm066PfnnVGa6UajykW hCEA== X-Gm-Message-State: APf1xPD70hDNClfBMQLiweL2nwcZUxCMSLSDN+hiksYoYgmXbmj44Qqc xFN14FWO3UtiCpLj3vetTh4HZLjZ X-Received: by 10.223.187.144 with SMTP id q16mr2343047wrg.67.1518182664722; Fri, 09 Feb 2018 05:24:24 -0800 (PST) Received: from ziggy.stardust ([37.223.139.174]) by smtp.gmail.com with ESMTPSA id o53sm2476255wrf.79.2018.02.09.05.24.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 05:24:23 -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> <0e0e703c-0ac9-06ad-91c5-abdf16de1ee9@gmail.com> <1518069447.28878.4.camel@mtkswgap22> From: Matthias Brugger Message-ID: <6fc674ba-a540-ef25-932d-afdc9d8e7fbe@gmail.com> Date: Fri, 9 Feb 2018 14:24:22 +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: <1518069447.28878.4.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/08/2018 06:57 AM, Ryder Lee wrote: > 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? > You can't change the compatible string, but you can add a new one, if the DT maintainer are ok with that. Beware that you won't be able to re-use the old one in a different driver. Regards, Matthias