Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3080558ybk; Mon, 18 May 2020 17:25:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPfhlzZULDQ3IznXk90zcCtmn/7P6PnQ9Vx1aJ5GEMtgdfP6FtQsl1NLWXXErFM0uNxueg X-Received: by 2002:aa7:cf11:: with SMTP id a17mr2200848edy.172.1589847933888; Mon, 18 May 2020 17:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589847933; cv=none; d=google.com; s=arc-20160816; b=ynYYVNAX/apCJ0BBtoj4GqHwg6WKtX6FzJaZ7wlSfp+CCyZjcaHuRJ/NHQYG9PRW7K zwnMNH+42iz04pPn6JOfnITuvUOXdLYT3RsCohWSFl996/tA40LoySM6+8aTgo7bDwnp Twn6559hBayW7CAfIZf428xMMN2Sg+kEOASIliyGnzVKQE3CIHo3YD9FHxiyh3Q2LFxT CInygDUiPs2RzRSSZcrziwBsxobnezjrf+LFpzsr2EULxkGZllvMAeEVCacy98ewZIbl HMDwYg7hSkCjwizkWRvuj1EZvz1k5habCxByH51gDPVAxHG9dW8Axb99sjXE2ioELYjh SiDg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PHo0R9SJmecGPPcCh7CehmllW08w3b09f6fZE/wsYGA=; b=sx8uXzccx/9iWRZm49sF8o72N+pEy6xf5XZlDCukZT38u+Fp0Z3efsKQ/mz7HRJFoJ 6ps744yrcMjP3GdbXpowuUosrL3vajonY+7sqEJZqnJQhascJhretHzVj4bNKQa2XXlh r2pkgwswr4p1nYNhqDhBbGFMnUzBgs6jJMMC4lD8GbSk5rIwBjYtDlJP/MJS5V+g5ZI0 U7DCzNyXjVlwwdrfbdZXxnSZGxgrweu9L2AUuVREtmUvBy39Xffw8S0YgA18GRgXxZvi E6znb31qRh85gqmNi227C9hpukS2nkf7cgIV5y4S8LFiE35biK7YV++r924U/e8NxK7D HxDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VYkk+hfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl17si7412121ejb.241.2020.05.18.17.25.11; Mon, 18 May 2020 17:25:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VYkk+hfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726940AbgESAXk (ORCPT + 99 others); Mon, 18 May 2020 20:23:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:47224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726284AbgESAXk (ORCPT ); Mon, 18 May 2020 20:23:40 -0400 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6EC52207E8; Tue, 19 May 2020 00:23:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589847819; bh=yXFIXoaaIhCB0WBUDuO8+foBCMcSuBqnKo4TZIde9+s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VYkk+hfQEWe2QCIlDVTrL0JzYcHPFEh2pQdt0SJC4kVCkK3WALYEsbyaJdgWQcF6F ZQ1Ir+MKj5YNMBlpRtBD5GfHYyxoMlFJREA29gDzJMhBnSfjLFBttiypFO4VGrQPht bot2fl/Y2FZV3XsyOX+jXE6j5v20TbVwRNA45tOM= Received: by mail-ed1-f46.google.com with SMTP id l25so5458677edj.4; Mon, 18 May 2020 17:23:39 -0700 (PDT) X-Gm-Message-State: AOAM531LAZZpOK1nXxecnbMHeoZt2CbO2nn48XqLWa43kHQNyBCmd8kX ZhGSlYYW1UFb+6juxFbmh4v9DhxA9QwaYHox+A== X-Received: by 2002:aa7:d84b:: with SMTP id f11mr13610097eds.288.1589847817907; Mon, 18 May 2020 17:23:37 -0700 (PDT) MIME-Version: 1.0 References: <20200518113156.25009-1-matthias.bgg@kernel.org> <20200518113156.25009-2-matthias.bgg@kernel.org> In-Reply-To: <20200518113156.25009-2-matthias.bgg@kernel.org> From: Chun-Kuang Hu Date: Tue, 19 May 2020 08:23:24 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] clk/soc: mediatek: mt6797: Bind clock driver from platform device To: matthias.bgg@kernel.org Cc: Rob Herring , Matthias Brugger , Michael Turquette , Stephen Boyd , Kate Stewart , devicetree@vger.kernel.org, Greg Kroah-Hartman , linux-kernel , Richard Fontana , "moderated list:ARM/Mediatek SoC support" , Linux ARM , mtk01761 , Thomas Gleixner , linux-clk@vger.kernel.org, Allison Randal Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Matthias: =E6=96=BC 2020=E5=B9=B45=E6=9C=8818=E6=97=A5 =E9= =80=B1=E4=B8=80 =E4=B8=8B=E5=8D=887:32=E5=AF=AB=E9=81=93=EF=BC=9A > > From: Matthias Brugger > > The mmsys driver is now the top level entry point for the multimedia > system (mmsys), we bind the clock driver by creating a platform device. > We also bind the MediaTek DRM driver which is not yet implement and > therefor will errror out for now. > Reviewed-by: Chun-Kuang Hu > Signed-off-by: Matthias Brugger > --- > > drivers/clk/mediatek/clk-mt6797-mm.c | 9 ++------- > drivers/soc/mediatek/mtk-mmsys.c | 8 ++++++++ > 2 files changed, 10 insertions(+), 7 deletions(-) > > diff --git a/drivers/clk/mediatek/clk-mt6797-mm.c b/drivers/clk/mediatek/= clk-mt6797-mm.c > index 8f05653b387d..01fdce287247 100644 > --- a/drivers/clk/mediatek/clk-mt6797-mm.c > +++ b/drivers/clk/mediatek/clk-mt6797-mm.c > @@ -92,16 +92,12 @@ static const struct mtk_gate mm_clks[] =3D { > "clk26m", 3), > }; > > -static const struct of_device_id of_match_clk_mt6797_mm[] =3D { > - { .compatible =3D "mediatek,mt6797-mmsys", }, > - {} > -}; > - > static int clk_mt6797_mm_probe(struct platform_device *pdev) > { > + struct device *dev =3D &pdev->dev; > + struct device_node *node =3D dev->parent->of_node; > struct clk_onecell_data *clk_data; > int r; > - struct device_node *node =3D pdev->dev.of_node; > > clk_data =3D mtk_alloc_clk_data(CLK_MM_NR); > > @@ -121,7 +117,6 @@ static struct platform_driver clk_mt6797_mm_drv =3D { > .probe =3D clk_mt6797_mm_probe, > .driver =3D { > .name =3D "clk-mt6797-mm", > - .of_match_table =3D of_match_clk_mt6797_mm, > }, > }; > > diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers/soc/mediatek/mtk-= mmsys.c > index 783c3dd008b2..fee64c8d3020 100644 > --- a/drivers/soc/mediatek/mtk-mmsys.c > +++ b/drivers/soc/mediatek/mtk-mmsys.c > @@ -88,6 +88,10 @@ static const struct mtk_mmsys_driver_data mt2712_mmsys= _driver_data =3D { > .clk_driver =3D "clk-mt2712-mm", > }; > > +static const struct mtk_mmsys_driver_data mt6797_mmsys_driver_data =3D { > + .clk_driver =3D "clk-mt6797-mm", > +}; > + > static const struct mtk_mmsys_driver_data mt8173_mmsys_driver_data =3D { > .clk_driver =3D "clk-mt8173-mm", > }; > @@ -339,6 +343,10 @@ static const struct of_device_id of_match_mtk_mmsys[= ] =3D { > .compatible =3D "mediatek,mt2712-mmsys", > .data =3D &mt2712_mmsys_driver_data, > }, > + { > + .compatible =3D "mediatek,mt6797-mmsys", > + .data =3D &mt6797_mmsys_driver_data, > + }, > { > .compatible =3D "mediatek,mt8173-mmsys", > .data =3D &mt8173_mmsys_driver_data, > -- > 2.26.2 > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek