Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3827211ybi; Mon, 3 Jun 2019 00:33:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyVIKpbnk7NroYVFXloP/eZy/qUXUC2Enq9ZnKXx4qW/OqpLob/asCalo9HCl/62cnIgcP X-Received: by 2002:a62:1990:: with SMTP id 138mr29290881pfz.133.1559547191019; Mon, 03 Jun 2019 00:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559547191; cv=none; d=google.com; s=arc-20160816; b=SGQBQ/hqsDefg+snzcyXo/gkA76nvxL9/ufESIKxAHtut7hjdMQoeZONyhzJx6pztO S0FqDAcfNu5Edmi2l34eftJ5kuzal/tBP8lLjYEGG3wPH+d3h+hr53Lw3RunX+nkjK7m 3H9dCQmu1jv/i+dYTxgEMRF59Z4xgiVZ6pfEZWW2Dx1/Ii5IkPo69sZDG9KDf0tbeWgt heJaEPwu3JmGqCZeD4NmagfxqgSXlbsaVRHz6GSzMgBx+eeucIHX+jlqAe6JyTqpUyzG iqt+6plIg/EBe6BBg2HyuLt88t0MNCIooV7C9c/yNYxHOkMIqtJwNE6XyeAFsetlN/0X BznA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=Y0styPCxA2kXlg4P9JLhrWY2z3+c+PAly9DON3UUT0M=; b=hRj2CnFGe6ydsvgZKSYI75Nlv6AFU7O22hLNOWjNLqL8MPaLchi4c8aF9KrL9m0Dyr LlwU/v2yMKxNwO7RV89yWLR1Uhqz8UQ4iUlBBNFaxRCZ8fD4co7KFCyVNSomTE+queXe QEzlY3rr9YgQYT+JgrFHK9QWW8AOx8Q26zyBc1rEpzWA69QYT6/MTuvlqFNXQWIAcSsI 1bI7SQxjkGr1ZasywpZJPWdopFLX3KcndKz0aUw4duGp7kpJ+XbrsI991aUozyNCQYUm vo/AqgIdbU2YK5woDRGh13v1Ni51e3y2ENANPv5QebeXy8tF5laxAB3nQMv/xGC5MrYT GNMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=MU9p6u1k; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si17757243plr.410.2019.06.03.00.32.55; Mon, 03 Jun 2019 00:33:10 -0700 (PDT) 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=@nxp.com header.s=selector2 header.b=MU9p6u1k; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726292AbfFCHa1 (ORCPT + 99 others); Mon, 3 Jun 2019 03:30:27 -0400 Received: from mail-eopbgr10050.outbound.protection.outlook.com ([40.107.1.50]:41538 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726136AbfFCHa0 (ORCPT ); Mon, 3 Jun 2019 03:30:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y0styPCxA2kXlg4P9JLhrWY2z3+c+PAly9DON3UUT0M=; b=MU9p6u1k/BOgFJMSe6V6ZX5i5KlXgKFMgbcoNEuTBBnuOwygwc3sMG6SruHe3GG0HNVzsL8KcBkfJOzUZteT/J63reauKt86MNsxhnyZ/Fe1B7Fs1uGhtNQuuVvuWKtasPBx11RbeG7FLk1KfcAQbJlHqlypEM4hoaiFHCPAcmc= Received: from VI1PR04MB5790.eurprd04.prod.outlook.com (20.178.127.224) by VI1PR04MB5805.eurprd04.prod.outlook.com (20.178.204.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.17; Mon, 3 Jun 2019 07:30:20 +0000 Received: from VI1PR04MB5790.eurprd04.prod.outlook.com ([fe80::607a:a473:5c73:7d7e]) by VI1PR04MB5790.eurprd04.prod.outlook.com ([fe80::607a:a473:5c73:7d7e%5]) with mapi id 15.20.1943.018; Mon, 3 Jun 2019 07:30:20 +0000 From: Abel Vesa To: Anson Huang CC: "mturquette@baylibre.com" , "sboyd@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "maxime.ripard@bootlin.com" , "olof@lixom.net" , "horms+renesas@verge.net.au" , "jagan@amarulasolutions.com" , "bjorn.andersson@linaro.org" , Leonard Crestez , "dinguyen@kernel.org" , "enric.balletbo@collabora.com" , Aisheng Dong , Jacky Bai , "l.stach@pengutronix.de" , "linux-clk@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH V2 2/3] clk: imx: Add support for i.MX8MN clock driver Thread-Topic: [PATCH V2 2/3] clk: imx: Add support for i.MX8MN clock driver Thread-Index: AQHVGaxevUMbLPz7GEiRBakv1/ckCqaJiQoA Date: Mon, 3 Jun 2019 07:30:20 +0000 Message-ID: <20190603073018.j236j57ooc7t5hp6@fsr-ub1664-175> References: <20190603013503.40626-1-Anson.Huang@nxp.com> <20190603013503.40626-2-Anson.Huang@nxp.com> In-Reply-To: <20190603013503.40626-2-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; x-originating-ip: [89.37.124.34] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3081f70e-89dd-41c4-bf65-08d6e7f5552d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VI1PR04MB5805; x-ms-traffictypediagnostic: VI1PR04MB5805: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:758; x-forefront-prvs: 0057EE387C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916004)(396003)(39860400002)(376002)(136003)(346002)(366004)(189003)(199004)(53936002)(476003)(486006)(256004)(26005)(81156014)(7416002)(446003)(44832011)(8936002)(11346002)(305945005)(33716001)(68736007)(4326008)(7736002)(25786009)(186003)(229853002)(6636002)(6862004)(6486002)(6436002)(99286004)(66446008)(5660300002)(81166006)(66066001)(6246003)(64756008)(66556008)(8676002)(66476007)(66946007)(73956011)(6512007)(9686003)(71190400001)(71200400001)(14454004)(76116006)(54906003)(6506007)(86362001)(2906002)(3846002)(53546011)(6116002)(102836004)(478600001)(1076003)(76176011)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5805;H:VI1PR04MB5790.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: qaotL9fdM+dVKd4ZPG3fiJg7l1Na5uRru6qhe7eHg0Bk8jizNjkX9RATm/5YlEOECvFA6rlQWZKChqiYR3XGDkzhLuFDK8vGNGQqJFxYOZTJ9GWP6r8xMH/yUE63uiYh4zz/9rkYc3OQcrRG3G3MS/9dc+qxeXt8d12Ciit8bq5eLJu+nFw7mu2V4kYG4knuauTIn4PvWIUbuxeIOGavQhtzg8IYSekOpFAgMdMjvlc66xH5VArVx6Uzr8FCMWRbSe1B3pMGO8FEgYlGZzaMKxCFm0pn9vsFLtjvvW95360SqM3ASu1A9iITyritHBIf0DN3doKzPXvSVlExCPYlweZAp5IRkAfFnxprnv8HK3qvnKKoN4uffR5swtQrgAbQTnzmknqEybSKNKnjcpC1DfKcuJZiq9jDpMtBXSEiS1Y= Content-Type: text/plain; charset="us-ascii" Content-ID: <051749EE44B0A8469CD620AEC45CD774@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3081f70e-89dd-41c4-bf65-08d6e7f5552d X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2019 07:30:20.0389 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: abel.vesa@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5805 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-06-03 09:35:02, Anson.Huang@nxp.com wrote: > From: Anson Huang >=20 > This patch adds i.MX8MN clock driver support. >=20 > Signed-off-by: Anson Huang > --- > Changes since V1: > - add GPIOx clocks. ... > +static struct imx_pll14xx_clk imx8mn_sys_pll __initdata =3D { > + .type =3D PLL_1416X, > + .rate_table =3D imx8mn_pll1416x_tbl, > +}; > + > +static const char *pll_ref_sels[] =3D { "osc_24m", "dummy", "dummy", "du= mmy", }; All of these should be "static const char * const ". > +static const char *audio_pll1_bypass_sels[] =3D {"audio_pll1", "audio_pl= l1_ref_sel", }; > +static const char *audio_pll2_bypass_sels[] =3D {"audio_pll2", "audio_pl= l2_ref_sel", }; ... > + clk_data.clks =3D clks; > + clk_data.clk_num =3D ARRAY_SIZE(clks); > + ret =3D of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data); > + if (ret < 0) { > + pr_err("failed to register clks for i.MX8MN\n"); > + return -EINVAL; > + } > + > + imx_register_uart_clocks(uart_clks); > + > + return 0; > +} > +CLK_OF_DECLARE_DRIVER(imx8mn, "fsl,imx8mn-ccm", imx8mn_clocks_init); Any reason why this cannot be a platform driver ? > --=20 > 2.7.4 > =