Received: by 10.223.176.5 with SMTP id f5csp622911wra; Sat, 3 Feb 2018 06:48:38 -0800 (PST) X-Google-Smtp-Source: AH8x2246S80sFb2I8Mqr9bmpUkwOcI0ktnEXe7QroFP14P7ybhQpK5ipnGCnk17qvPIpMuMVwppg X-Received: by 2002:a17:902:6c0c:: with SMTP id q12-v6mr30173798plk.51.1517669318665; Sat, 03 Feb 2018 06:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517669318; cv=none; d=google.com; s=arc-20160816; b=ybfzYJ5cS+IePElGVwOXTJKdg/aEWras65kjF+oje7ghwT/zT0mq+6UkNCiPqWVBnx pXQlG7Vxl46jFrLO85BFAEQ78/HI9ytu6UUV6GlQcRuAIpZllGTHa1BUJUf3ythIvG9x 0Tn+wIuQrrOwMKoDUkxMplJThR1WNFUKeBc1nLVIcdYAcultxP+YkuYf57V4jrsHDmsr t/+m7mgNGcm3HlsdWwpPnJpoWGfaF1szM5LFNQMuggDzjhE6FeZaTxPqY8nfa1N33u1z tdWnErxpSnjrC9eHEeVaqBaVrrn6VMvbUcksh0NXjhcXK+SJHPJah7scczlJ/kQkDr+f D4Fw== 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=U+wPd1jebyLG2EpvG6l8VSTiIxhnfj+Ze8JIM4sGxSI=; b=Tkvp1j/wIs7v5UpUpWRCxfMHFFSVzklXroyFAhnlIy79kdO0FVpNu/WIIVF5BT7FLA Cb2McaFIwHEVj/30k0N888FGAb8rG8z1wjwIBp/hQU7KbJEYQCJgph+VeOG5laEOvFWq V5ks2HzBbKX5XBIQ5HTs04jCTP/VPpsDsFQ4pY+BcECql3M3T5mSZ1TQoAqWJbT+sBJS GSRnEzmIWCCCaoUibty1ja9aPBQjjyfbE++CLeNX7f6kcrq+iaFeI0mDTWpzUjm5AztA FniY8NH6r4w1Xm1b/ro6tXW9YRmC14bYQoKNT4qo3Js3FkmWIinhUrRZ+ng12PpGtdXP FduA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LY+NqHmk; 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=NONE 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 62-v6si3790634pla.713.2018.02.03.06.48.09; Sat, 03 Feb 2018 06:48:38 -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=LY+NqHmk; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751638AbeBCO0U (ORCPT + 99 others); Sat, 3 Feb 2018 09:26:20 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:52743 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751787AbeBCO0N (ORCPT ); Sat, 3 Feb 2018 09:26:13 -0500 Received: by mail-wm0-f68.google.com with SMTP id g1so18033926wmg.2; Sat, 03 Feb 2018 06:26:13 -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=U+wPd1jebyLG2EpvG6l8VSTiIxhnfj+Ze8JIM4sGxSI=; b=LY+NqHmkR7sxINptJOwl1J0X8eRFG1CylkYzoJcorDrSr7wgjeP9nuS2hgDf+fiEGB TwobqKcmQ+NK+PtJ34s2Ni+0Ig+AMnQG8OxNZWigVAsPUNbqOzu/RiTvHW0jjhnQCB+D o3aMH4I4CPUHHAmaaFD1B+yCeySoFA2xCljqATdLHNQX1xMlzCTT4vBUDZp/pYA+qwCc YFXGp/FH3JrjIH3dH2P+zrj6RHGjnH2P/2nFNbylRUIyBxcX15dhk8T0A1NuA/gvs6sY U5OQheXmfcPbpYlUWRdTw4woYmsvmycAFYEtECNk52rOFbKtvZu5fEE7h2OSymmFONbJ eJ8A== 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=U+wPd1jebyLG2EpvG6l8VSTiIxhnfj+Ze8JIM4sGxSI=; b=HlAVVW++nOJ9janRjJ0mMt0nTfEUsSgHULo5Z/igPHh+TAWs+gm8sAAlmcd/q8CtP6 Qp5HFI8lGGvkLpAFfWNTipKKwOAJIkEMJ/+CSyZX1fsO/B2I1+KFiddzY7mOX5O1qTRY KnQU4ANl1ni7mgEW63fF5StY1dMNtUn2kHPSNWXn9KVGGDH55DrQCIkctxlKlDeagqoe 9533uR6EUsGUh2hG7Qw+0AVIU5Vq/M1HrWvsLx1tIQZdUv3nsGidcz9NZImihzTzuZ/F mYKIqi2ZfzHjVzjzR9FstCZO0YMXJ8l+aD3QPq5QHW0CEK5vweLNKM0AR/G4cpmthunM w8gQ== X-Gm-Message-State: AKwxytcLPWyNFMDABSTu9G0yymIbVeo/v46YgxS4welV+YiANnYX7q5K nXAFWgZqWPH6IE7sjepQ/YXzl9tp X-Received: by 10.80.155.90 with SMTP id a26mr70686834edj.290.1517667972364; Sat, 03 Feb 2018 06:26:12 -0800 (PST) Received: from ziggy.stardust ([2001:67c:1810:f051:299e:1088:8cf6:d1e7]) by smtp.gmail.com with ESMTPSA id r9sm3609546edm.59.2018.02.03.06.26.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Feb 2018 06:26:11 -0800 (PST) Subject: Re: [PATCH v2 2/5] clk: mediatek: modify MT7622 audsys to adapt MFD device To: Ryder Lee , Stephen Boyd , Rob Herring Cc: 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: From: Matthias Brugger Message-ID: <72058f8d-c83d-d0e6-dc07-83c9f5fc2710@gmail.com> Date: Sat, 3 Feb 2018 15:26:10 +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: 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 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 > clk_data); > > r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); >