Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1790959ybc; Wed, 13 Nov 2019 04:28:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwkexQgoCRiFt4lrQFlHJEBil8CoS5xx2NqDIgL9CAx9sF0uGBMzedkYwCRczsabxANK99b X-Received: by 2002:a17:906:1da1:: with SMTP id u1mr2469014ejh.275.1573648135048; Wed, 13 Nov 2019 04:28:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573648135; cv=pass; d=google.com; s=arc-20160816; b=W0JSsQoB/dw/DsVfFPdY0IdcueQlqx62GXZFs9BKZDKmV6o3PlCQavB6/KF1/oD3+N FF/kHjFSgAEYBbP80iGuydKGKobqk8/rGUD5kgWIuNRQsVBgvI8W4cq//EnkpDDNuM9l kp8PKgz7Shx+hgX+bEgLVuUeg0zZku7qDWAlWNfe0NYRq2cp4kiayP9BSs9EgpRCX1NP bn24X+83Xge6oAvk1HpanHwDagZDEGlHZknmR3pnqn9PGUbowuqf2iZx4RfGyR9MaccW CbuzU3yqABl58ZOt46LCNEau4Z0KnZHD4se9TV1LuQqhnSpwJ5cmofBPfXKDEyrVq0Hi QooQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=SgGnlizYGK4KP1AejEyXY6WM5lwcXacZ05ifzCLVxBg=; b=Ki8QOwC13zh7w9EJ0ShJ/KPR3Vd/Q/oQqlzFmzv/y8FT9OlbqVh0cph10DE6RXpn0D U4dQj5KkfSrEMT7d+Du0Ngk7v+G3SqnzhrdvwGyByTFOFlsPRR0TTQmXw6v+R7Bu+LTL SKxyOjEP0wr0ZrE40SaSRhuFg2VEBPLWGnN68UAy5+of4z5l7n8R5rKRM9yFwDIQVR+8 JiBqfWuHPXvhbqwWf8L6gxM9vZ1zE2Ga1XC3gzv1AAlit8Q5go1oVDQwpiGfiIGvZvg2 Y5QtkK0EJGb1t9ZfCeFhYyDpMEEuS67GlDaHV8iBwez7OuRWiPXNEiTPfh0HkGASowrf v2RA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RMmVC9GP; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 cc4si1136740edb.237.2019.11.13.04.28.29; Wed, 13 Nov 2019 04:28:55 -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=@nxp.com header.s=selector2 header.b=RMmVC9GP; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 S1727064AbfKMMQi (ORCPT + 99 others); Wed, 13 Nov 2019 07:16:38 -0500 Received: from mail-eopbgr50062.outbound.protection.outlook.com ([40.107.5.62]:18262 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726973AbfKMMQh (ORCPT ); Wed, 13 Nov 2019 07:16:37 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YpnhJWZhgBQSXCu9yl7nK6tJMYKBQYtM8MvYmbBC7jh4V5cyqD9OU3/NAx2LdO6nXSmXefYFqeiuRoDkteTvbkLpLwtoP342k/wCppC6zg4NwNlj9PKrnYgU/EhP2OfQGEcfiITiKmhshIP9dmWCRcw4tyyRINJFXvGlJ6nSV+91lfd19vTQvgtcqsppcoAHbAag5WPW2Pz1rscecRg3d24YOVpuL0MDsA7QagJElrKitame+AEFTvqOAu7e+A5IoxzaCqzDOjKqk+M6jqeQ0Ff+lpA/EUgn6vGpLavcN9u3FKpmUFBzzflS99IMfC4KkUgdRBQYSk96eyFmQgwdtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SgGnlizYGK4KP1AejEyXY6WM5lwcXacZ05ifzCLVxBg=; b=J5nRbrbdFjQObUCH5PFfnR1LVH+aWToj6ZPswgzcB/ztJdmk2hag0EJ+w4i6bOjcZjTMJDSC+TttZ5JaeNrUjvwIKKSd4YK1ICmQ0PEb07wqq3OeInaSqnt6wyaY0bxAP7er3aQrCnYXf4RjIqRdEuJOceCOk5/yHABHNR1KWDuno8GUZzSh+NbGmZ8QnxlbC0aqqYUxifS13pVkOY3Ai95KHC3lK5/rTAW7Hgmn2JT3A7ccLNkpAUz8dqYDPd/WabISU+qY+9d4dNYg+P2GPDBEOl+RuNzmsoul0fEHDIVfcvuPAtBjonfMljy0w7Zd8zb3CwtYYLfGtK60jlwKxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none 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=SgGnlizYGK4KP1AejEyXY6WM5lwcXacZ05ifzCLVxBg=; b=RMmVC9GPfad42kSmCyncfcTPzAvQUZKpEyn3lFSKQlZfoeUeWRQu8C4568fYeBN8i8mfSXn6ZED9EfA3C7zPR2/ktkvcmi21RbjtIqENmTP4/JBDA0WJXIGgMDI/yMvG1cIYDRewsS4/td4kaHAWJMoZ5Hzjx1MoXa4AUToFM2Y= Received: from VI1PR04MB7023.eurprd04.prod.outlook.com (10.186.159.144) by VI1PR04MB5280.eurprd04.prod.outlook.com (20.177.51.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.23; Wed, 13 Nov 2019 12:16:33 +0000 Received: from VI1PR04MB7023.eurprd04.prod.outlook.com ([fe80::dd0c:72dc:e462:16b3]) by VI1PR04MB7023.eurprd04.prod.outlook.com ([fe80::dd0c:72dc:e462:16b3%5]) with mapi id 15.20.2451.023; Wed, 13 Nov 2019 12:16:33 +0000 From: Leonard Crestez To: Peng Fan , "sboyd@kernel.org" , "shawnguo@kernel.org" CC: "s.hauer@pengutronix.de" , "festevam@gmail.com" , Abel Vesa , "kernel@pengutronix.de" , dl-linux-imx , Aisheng Dong , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Alice Guo Subject: Re: [PATCH] clk: imx: pll14xx: introduce imx_clk_hw_pll14xx_flags Thread-Topic: [PATCH] clk: imx: pll14xx: introduce imx_clk_hw_pll14xx_flags Thread-Index: AQHVmfO4UT5wBnIiNkiEwV6EPli0Lg== Date: Wed, 13 Nov 2019 12:16:32 +0000 Message-ID: References: <1573629896-23954-1-git-send-email-peng.fan@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=leonard.crestez@nxp.com; x-originating-ip: [89.37.124.34] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ab9a7a5a-2e50-468e-aa13-08d768335263 x-ms-traffictypediagnostic: VI1PR04MB5280:|VI1PR04MB5280: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 0220D4B98D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(366004)(396003)(136003)(39860400002)(346002)(189003)(199004)(26005)(316002)(256004)(110136005)(86362001)(6116002)(102836004)(6436002)(3846002)(99286004)(25786009)(478600001)(71190400001)(74316002)(71200400001)(305945005)(4326008)(54906003)(966005)(486006)(81166006)(81156014)(6246003)(14454004)(8936002)(7736002)(8676002)(44832011)(2906002)(2201001)(446003)(9686003)(52536014)(55016002)(33656002)(2501003)(66946007)(5660300002)(76176011)(229853002)(6306002)(186003)(476003)(6506007)(53546011)(66066001)(66556008)(66476007)(66446008)(64756008)(91956017)(76116006)(7696005);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5280;H:VI1PR04MB7023.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: BCL:0; x-microsoft-antispam-message-info: dkK6z7/mR/nsplt7rUoaA5SXjVH0DlcZswIhts+2j5c+gAWvll2mJPjgUlxL5hp8Ol12drjR3hrKcDw4upB+svOgNo5ElRpjCdXMkWk0VQoVHOlD8bp/Mbapyv7ssfon/Y7FpMKtufMBVbEWC6TZeAmZdkEspE4x4j6lP6UIuCahzE8yJwjFXDOFpVfAYri+LUeo3nhoWDR7jj2DnvhxovpxamnwN8I3AA11UH122Nzx1OEzXIP0K/izgn+b5JD715A8pjP0Gnu/oxF+RE05BoMRUiDhMsiFoXyqVs6Xh+5S39h3ltsgxFj1P1bU4Zel15C4BFi009ZkT5rQxQAexH3tLmzJ0gshNnUSdmNUa01CFcgKNvZK6Xiv9gzYAIQANt0sYLB9x+QyrV5FrK0DCP7sSITmk8m1MzFgkeJ0cnC8oooN558cKWVvaIg+5Yd72HpfssI0yneVJujSoL6xe8nGu5k6VmLgf9yWqNqZvXE= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab9a7a5a-2e50-468e-aa13-08d768335263 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2019 12:16:32.9465 (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: LLGuyh5fPOZun7mUCBgcMlQpvsyUdvJ02T3RvhWCCWoJxaYY+Ai2j7eeOT3EF2FRafLeV5/XxLOUdbTscivmgQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5280 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.11.2019 09:26, Peng Fan wrote:=0A= > From: Peng Fan =0A= > =0A= > Introduce imx_clk_hw_pll14xx_flags, then no need to add new=0A= > imx_pll14xx_clk variable for new flags.=0A= > =0A= > Since the original imx_pll14xx_clk flags is not used, so drop it.=0A= > =0A= > Signed-off-by: Peng Fan =0A= =0A= Reviewed-by: Leonard Crestez =0A= =0A= Most other imx clock wrappers take flags as an argument so it's nice to =0A= be consistent.=0A= =0A= > V1:=0A= > Based on https://patchwork.kernel.org/patch/11217889/=0A= =0A= In general if you sent patches on top of patches it makes sense to =0A= resend as a series. That clk_hw series is not in yet.=0A= =0A= > drivers/clk/imx/clk-pll14xx.c | 12 +++++++++++-=0A= > drivers/clk/imx/clk.h | 7 ++++++-=0A= > 2 files changed, 17 insertions(+), 2 deletions(-)=0A= > =0A= > diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.= c=0A= > index 2bbcfbf8081a..a8af949f0848 100644=0A= > --- a/drivers/clk/imx/clk-pll14xx.c=0A= > +++ b/drivers/clk/imx/clk-pll14xx.c=0A= > @@ -379,6 +379,16 @@ struct clk_hw *imx_clk_hw_pll14xx(const char *name, = const char *parent_name,=0A= > void __iomem *base,=0A= > const struct imx_pll14xx_clk *pll_clk)=0A= > {=0A= > +=0A= > + return imx_clk_hw_pll14xx_flags(name, parent_name, base, pll_clk, 0);= =0A= > +}=0A= > +=0A= > +struct clk_hw *imx_clk_hw_pll14xx_flags(const char *name,=0A= > + const char *parent_name,=0A= > + void __iomem *base,=0A= > + const struct imx_pll14xx_clk *pll_clk,=0A= > + unsigned long flags)=0A= > +{=0A= > struct clk_pll14xx *pll;=0A= > struct clk_hw *hw;=0A= > struct clk_init_data init;=0A= > @@ -390,7 +400,7 @@ struct clk_hw *imx_clk_hw_pll14xx(const char *name, c= onst char *parent_name,=0A= > return ERR_PTR(-ENOMEM);=0A= > =0A= > init.name =3D name;=0A= > - init.flags =3D pll_clk->flags;=0A= > + init.flags =3D flags;=0A= > init.parent_names =3D &parent_name;=0A= > init.num_parents =3D 1;=0A= > =0A= > diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h=0A= > index cd92d9fdccf4..c2851a82b4fd 100644=0A= > --- a/drivers/clk/imx/clk.h=0A= > +++ b/drivers/clk/imx/clk.h=0A= > @@ -48,7 +48,6 @@ struct imx_pll14xx_clk {=0A= > enum imx_pll14xx_type type;=0A= > const struct imx_pll14xx_rate_table *rate_table;=0A= > int rate_count;=0A= > - int flags;=0A= > };=0A= > =0A= > extern struct imx_pll14xx_clk imx_1416x_pll;=0A= > @@ -105,6 +104,12 @@ struct clk_hw *imx_clk_hw_pll14xx(const char *name, = const char *parent_name,=0A= > void __iomem *base,=0A= > const struct imx_pll14xx_clk *pll_clk);=0A= > =0A= > +struct clk_hw *imx_clk_hw_pll14xx_flags(const char *name,=0A= > + const char *parent_name,=0A= > + void __iomem *base,=0A= > + const struct imx_pll14xx_clk *pll_clk,=0A= > + unsigned long flags);=0A= > +=0A= > struct clk *imx_clk_pllv1(enum imx_pllv1_type type, const char *name,= =0A= > const char *parent, void __iomem *base);=0A=