Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752355AbdFUHOA (ORCPT ); Wed, 21 Jun 2017 03:14:00 -0400 Received: from mail-eopbgr30049.outbound.protection.outlook.com ([40.107.3.49]:21376 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751656AbdFUHN6 (ORCPT ); Wed, 21 Jun 2017 03:13:58 -0400 From: "A.s. Dong" To: Stephen Boyd , Dong Aisheng CC: "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "mturquette@baylibre.com" , "shawnguo@kernel.org" , "Anson Huang" , Jacky Bai Subject: RE: [PATCH 9/9] clk: imx: add imx7ulp clk driver Thread-Topic: [PATCH 9/9] clk: imx: add imx7ulp clk driver Thread-Index: AQHSzYOH73b4znJbl0CVMpAdvEkJyqItNzCAgACA+QCAALgbAIAAbnig Date: Wed, 21 Jun 2017 07:13:55 +0000 Message-ID: References: <1494856763-6543-1-git-send-email-aisheng.dong@nxp.com> <1494856763-6543-10-git-send-email-aisheng.dong@nxp.com> <20170620020119.GQ4493@codeaurora.org> <20170620094256.GF6805@b29396-OptiPlex-7040> <20170620204152.GS4493@codeaurora.org> In-Reply-To: <20170620204152.GS4493@codeaurora.org> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: codeaurora.org; dkim=none (message not signed) header.d=none;codeaurora.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [199.59.231.64] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM3PR04MB1314;7:+qxO6d4ypPKJ0Jznu8oBhIc5k7YubqC/Dq7tDWPNiu0nGM5NjGb6+qBXy5MIRo0I5UIsCPJjs/XDwMfToY3S8w8o7Ei8s/8aOch3GiJ9xBgxgRwbfMns85P+QbDqN+AHfE370pvNFSdRcEclHdunTW/Nbdd6PVyizW2GsLL5nXS6lgbmt/1+bNGMxSf1hxqj1GRongshF4dfzdqq9rqs7sFMAnta45DkYqKVkvXV7k+WWqE8dDA3UCKD7GUSJ/P+z7SIvQNiHOP/PEuM78PRjLg5sDOl9A0QGpfkerCSrwUTy2BOG/qQlUKGMcdqv0pRJ2gBQn4y7lvu07PpwCcpkZ61rDdOt3Fc6gxCVwCCd1gVB06/5PoaCpnYEkgfKTtgw1497NLE6AZejC5XgaRg+8WSaEM+iLtjFSQ0s+Yx96cVfKZ/rWAnkWjCpo0rmoOLEA3Ycl77TGbBJ4enC46n2FmOjwUuusXy+peNpFWnRS27aPtZjSIpR06M3xjt7Q/LRdmtrzKplEwKqYOJC4wPfMomwyjW8kif384OZYaLVtLQ+aG3p4DyopJaD/PIzq6VecuUkn2sonsSh/n1iIgVL5201pNaTp04Afu4Qg+2ngBAMS5MozTj9mbsBy9mh5TxIlgEF/kJc23qa8Fahw1KM/3gANbiE61l0c4tEbqhfdZ05dPHFjA8zIv7WO0kuAdmOMlHXTZ20UqHAZBombydRfF+4cwQLM1fYnUuEvKdeXtZnRa0YDqwBGN/7tvX/upZc9FDxw2Q368Ekg1dXBezz35KirCVXUR6UOev7fzzIH8= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(39410400002)(39850400002)(39860400002)(39400400002)(39840400002)(39450400003)(13464003)(24454002)(377454003)(39060400002)(33656002)(3660700001)(2950100002)(2906002)(3280700002)(229853002)(6506006)(53546010)(189998001)(2900100001)(6436002)(55016002)(99286003)(76176999)(9686003)(6246003)(54356999)(54906002)(53936002)(8936002)(8676002)(81166006)(66066001)(6116002)(3846002)(102836003)(93886004)(38730400002)(50986999)(7736002)(478600001)(14454004)(5660300001)(7696004)(86362001)(5250100002)(305945005)(4326008)(74316002)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:AM3PR04MB1314;H:AM3PR04MB306.eurprd04.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; x-ms-office365-filtering-correlation-id: 0869051d-f6c7-45a2-ebb8-08d4b8751413 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500055)(300135000095)(300000501055)(300135300095)(22001)(300000502055)(300135100095)(2017030254075)(48565401081)(300000503055)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504055)(300135200095)(300000505055)(300135600095);SRVR:AM3PR04MB1314; x-ms-traffictypediagnostic: AM3PR04MB1314: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(258649278758335); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(20161123555025)(20161123558100)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AM3PR04MB1314;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AM3PR04MB1314; x-forefront-prvs: 0345CFD558 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2017 07:13:55.2616 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR04MB1314 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v5L7E6bD007697 Content-Length: 1633 Lines: 46 > -----Original Message----- > From: Stephen Boyd [mailto:sboyd@codeaurora.org] > Sent: Wednesday, June 21, 2017 4:42 AM > To: Dong Aisheng > Cc: A.s. Dong; linux-clk@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-arm-kernel@lists.infradead.org; mturquette@baylibre.com; > shawnguo@kernel.org; Anson Huang; Jacky Bai > Subject: Re: [PATCH 9/9] clk: imx: add imx7ulp clk driver > > On 06/20, Dong Aisheng wrote: > > On Mon, Jun 19, 2017 at 07:01:19PM -0700, Stephen Boyd wrote: > > > > > > Any reason why it can't be a platform driver? If not, please add > > > some comment explaining why. > > > > > > > Timer is using it at early stage. GIC seems not although standard > > binding claim possible clock requirement. > > Others still not sure. > > > > What your suggestion? > > Convert timer to platform driver and make clock as platform driver as > well? > > > > The timer can't be a platform driver because it would be too late. The > clock driver could register whatever clks are required for the timer/GIC > in a CLK_OF_DECLARE_DRIVER hook, and then leave the rest to a platform > driver. This way we get some of the device driver framework in this code. > Okay, I could try it. Thanks. One thing is that TPM clock has a lot parents and parents having parents, as well as PIT timer. So I may need enable more than half clocks in CLK_OF_DECLARE_DRIVER hook. BTW, What's benefit to convert into two parts of probe? I'm not quite if I already get it all, can you help clarify it? Regards Dong Aisheng > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux > Foundation Collaborative Project