Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3605838yba; Mon, 29 Apr 2019 05:35:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoduV51ctv81MAyknZeAVnowR1KiIeIbPGerow2I2w1EysHkwwO65q/jxyKTNuAgMX0goS X-Received: by 2002:a17:902:4681:: with SMTP id p1mr2652970pld.139.1556541330045; Mon, 29 Apr 2019 05:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556541330; cv=none; d=google.com; s=arc-20160816; b=XZA4Hfdd3k3LpbM+x0H32GkMvFtgANL8DTcAmgx/7pphntJwKdmdbpPkdGxvOgEzam ZZJNH3OMX3wX7rXNWAb2aSwvJxUFLawokhGwh6LUlQovX3OQsMWrdXHhCtWPQz43f7/M 6Qa23A8ZvOy1Mec62sSXAMmd4/NH2tYX79H3vfNcKVlGFNHJZzEynOxBEOotbzoytA8X +tOBGpdJIq/3bj5PBar20jvf3p3hNaH1THNHjyVIBx9rQiinihOBqE13Q30dt4ujl3p2 AQCSlCW9U0SvgLt6YqgaUuBb3veXj46Tz3jIYwqKAr/WYnAcJuuMBookYOnD8TpgOanv z+nQ== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=3mwciFaGHZkXmEc4ttuvaVTUKcIT5pzYMfk5wWbAlOA=; b=skNooQ1wDhcmvqHOhxy6o2s9RXmwBkbmygoR1A5QXouSPviWTi6R/UNTAKWAJsA5v9 LEIcX02Tpjur2xSbKVVTATJIGMmd1Cas31Y1k4Z0rKxHjLLzZcWnmpBhf0ipZHunpQT1 WT+podaXmV7DIbvx0Sh8a4kI2rPdkAxD44jlRG05BbWkUOhCyegZHYteKFhtp8NiE80w 8otDmUs6XXeSYnDpBPRJ46yUj5XC7cDbB1s7BllvLMKiNJOMoMLmq82dI7M2OszDo2YH R7EUdju1k3vDIHdQ3hRIue2VFnBAvna3IZL0Fz5jQTNQXSJk+12e4KdYlr7d7qgpVxT+ eTaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=N80JkWTh; 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 d12si1054372pll.94.2019.04.29.05.35.14; Mon, 29 Apr 2019 05:35:30 -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=selector1 header.b=N80JkWTh; 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 S1728090AbfD2MdL (ORCPT + 99 others); Mon, 29 Apr 2019 08:33:11 -0400 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:12514 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727956AbfD2MdL (ORCPT ); Mon, 29 Apr 2019 08:33:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3mwciFaGHZkXmEc4ttuvaVTUKcIT5pzYMfk5wWbAlOA=; b=N80JkWThZ1yVzB8XSuyD8e4WVNrU4Kf5RzlFTfios3jLwE4t4sExyj5nY2dGcBRXtOqzvPaRhQFcajS6E3DTM/czDux/thPsVFfr0jk2/RC9JGE9sDekh2nbsJ+rDwYe6c8Ihg6jKxmA0jwk5k7PKG1J4AEdsCwL97ygzjodj+Q= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3738.eurprd04.prod.outlook.com (52.134.70.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.15; Mon, 29 Apr 2019 12:33:04 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170%3]) with mapi id 15.20.1835.018; Mon, 29 Apr 2019 12:33:04 +0000 From: Anson Huang To: Aisheng Dong , "mturquette@baylibre.com" , "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: RE: [PATCH] clk: imx: add fractional-N pll support to pllv4 Thread-Topic: [PATCH] clk: imx: add fractional-N pll support to pllv4 Thread-Index: AQHU/jo/D2ZwDi5WREOeVbOKgmEXYaZS+19AgAAF+XCAABEhEA== Date: Mon, 29 Apr 2019 12:33:04 +0000 Message-ID: References: <1556507637-22847-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: 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=anson.huang@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4e0337cc-a20b-48f1-5250-08d6cc9ed37f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3738; x-ms-traffictypediagnostic: DB3PR0402MB3738: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3173; x-forefront-prvs: 0022134A87 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(396003)(136003)(39860400002)(366004)(376002)(13464003)(189003)(199004)(110136005)(99286004)(316002)(53936002)(6246003)(9686003)(25786009)(55016002)(33656002)(229853002)(5660300002)(4326008)(76176011)(7696005)(8936002)(97736004)(6436002)(52536014)(446003)(476003)(11346002)(14454004)(26005)(66066001)(71190400001)(6506007)(102836004)(2906002)(486006)(76116006)(53546011)(71200400001)(3846002)(68736007)(186003)(305945005)(2201001)(256004)(2501003)(478600001)(73956011)(86362001)(66946007)(66556008)(64756008)(66446008)(66476007)(74316002)(44832011)(8676002)(7736002)(6116002)(81156014)(81166006)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3738;H:DB3PR0402MB3916.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: A7/0Fi3O+zXkN3kIKQUl9+TyyZ5mJ3a6g1As7BFMPnJW5+b5bTSx+EtCak9x/DoUBtbeAxRc/GGSUpsqXu3W/5IE+6jDxe6jv4c1yGjvju8vDW2C6eoeHNeSpl6pWDbnlyt++sfY/OOgoN8vdupD3uP5jbZLKComRDIefeZj8FSTXV8YilZctJVI7LhGpAFWEgXRM7L66RMAdL9fQxGy45xJd89xVzqAe43YZPcZadOmMgQiESZVyQ2TQXhTz8/kfmTYXuq/5OzxKbqvW5XvxWEKifzc3wm8FtSOC79fqQd95FrXIYqlclgcwvJuAMOCaIIv2C4f3ks7MkPnLU2O5v8y+jrVV0lDvMcFlwEu7t2OQt+C8dKsmjBdMAJztJQwVs2v8PLALfD86Hy9iwXxGlk+2xQMmHgsmxlXi98UBN4= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e0337cc-a20b-48f1-5250-08d6cc9ed37f X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2019 12:33:04.3018 (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-Transport-CrossTenantHeadersStamped: DB3PR0402MB3738 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIEFpc2hlbmcNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBBaXNo ZW5nIERvbmcNCj4gU2VudDogTW9uZGF5LCBBcHJpbCAyOSwgMjAxOSA3OjM2IFBNDQo+IFRvOiBB bnNvbiBIdWFuZyA8YW5zb24uaHVhbmdAbnhwLmNvbT47IG10dXJxdWV0dGVAYmF5bGlicmUuY29t Ow0KPiBzYm95ZEBrZXJuZWwub3JnOyBzaGF3bmd1b0BrZXJuZWwub3JnOyBzLmhhdWVyQHBlbmd1 dHJvbml4LmRlOw0KPiBrZXJuZWxAcGVuZ3V0cm9uaXguZGU7IGZlc3RldmFtQGdtYWlsLmNvbTsg bGludXgtY2xrQHZnZXIua2VybmVsLm9yZzsNCj4gbGludXgtYXJtLWtlcm5lbEBsaXN0cy5pbmZy YWRlYWQub3JnOyBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnDQo+IENjOiBkbC1saW51eC1p bXggPGxpbnV4LWlteEBueHAuY29tPg0KPiBTdWJqZWN0OiBSRTogW1BBVENIXSBjbGs6IGl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TCBpbiByZWZlcmVu Y2UgbWFudWFsLCBteSBSTSBpcw0KVjIoMi4wKSwgcHVibGlzaGVkIG9uIDEyLzIwMTcuDQoNCkFu c29uLg0KDQo+IA0KPiBSZWdhcmRzDQo+IERvbmcgQWlzaGVuZw0KPiANCj4gPiA+IFdpdGhvdXQg ZnJhY3Rpb246DQo+ID4gPiBhcGxsX3ByZV9zZWwgICAgICAgICAgICAgICAgICAgICAgMSAgICAg ICAgMSAgICAgICAgMSAgICAyNDAwMDAwMA0KPiA+ID4gMCAgICAgMCAgNTAwMDANCj4gPiA+ICAg IGFwbGxfcHJlX2RpdiAgICAgICAgICAgICAgICAgICAxICAgICAgICAxICAgICAgICAyICAgIDI0 MDAwMDAwDQo+ID4gPiAwICAgICAwICA1MDAwMA0KPiA+ID4gICAgICAgYXBsbCAgICAgICAgICAg ICAgICAgICAgICAgIDEgICAgICAgIDEgICAgICAgIDIgICA1MjgwMDAwMDANCj4gPiA+IDAgICAg IDAgIDUwMDAwDQo+ID4gPiAgICAgICAgICBhcGxsX3BmZDMgICAgICAgICAgICAgICAgMCAgICAg ICAgMCAgICAgICAgMCAgIDc5MjAwMDAwMA0KPiA+ID4gMCAgICAgMCAgNTAwMDANCj4gPiA+ICAg ICAgICAgIGFwbGxfcGZkMiAgICAgICAgICAgICAgICAwICAgICAgICAwICAgICAgICAwICAgMzM5 NDI4NTcxDQo+ID4gPiAwICAgICAwICA1MDAwMA0KPiA+ID4gICAgICAgICAgYXBsbF9wZmQxICAg ICAgICAgICAgICAgIDAgICAgICAgIDAgICAgICAgIDAgICAzNTIwMDAwMDANCj4gPiA+IDAgICAg IDAgIDUwMDAwDQo+ID4gPiAgICAgICAgICAgICB1c2RoYzAgICAgICAgICAgICAgICAgMCAgICAg ICAgMCAgICAgICAgMA0KPiA+IDM1MjAwMDAwMA0KPiA+ID4gMCAgICAgMCAgNTAwMDANCj4gPiA+ ICAgICAgICAgIGFwbGxfcGZkMCAgICAgICAgICAgICAgICAxICAgICAgICAxICAgICAgICAxICAg MzUyMDAwMDAwDQo+ID4gPiAwICAgICAwICA1MDAwMA0KPiA+ID4NCj4gPiA+IFdpdGggZnJhY3Rp b246DQo+ID4gPiBhcGxsX3ByZV9zZWwgICAgICAgICAgICAgICAgICAgICAgMSAgICAgICAgMSAg ICAgICAgMSAgICAyNDAwMDAwMA0KPiA+ID4gMCAgICAgMCAgNTAwMDANCj4gPiA+ICAgIGFwbGxf cHJlX2RpdiAgICAgICAgICAgICAgICAgICAxICAgICAgICAxICAgICAgICAyICAgIDI0MDAwMDAw DQo+ID4gPiAwICAgICAwICA1MDAwMA0KPiA+ID4gICAgICAgYXBsbCAgICAgICAgICAgICAgICAg ICAgICAgIDEgICAgICAgIDEgICAgICAgIDIgICA1MjkyMDAwMDANCj4gPiA+IDAgICAgIDAgIDUw MDAwDQo+ID4gPiAgICAgICAgICBhcGxsX3BmZDMgICAgICAgICAgICAgICAgMCAgICAgICAgMCAg ICAgICAgMCAgIDc5MzgwMDAwMA0KPiA+ID4gMCAgICAgMCAgNTAwMDANCj4gPiA+ICAgICAgICAg IGFwbGxfcGZkMiAgICAgICAgICAgICAgICAwICAgICAgICAwICAgICAgICAwICAgMzQwMjAwMDAw DQo+ID4gPiAwICAgICAwICA1MDAwMA0KPiA+ID4gICAgICAgICAgYXBsbF9wZmQxICAgICAgICAg ICAgICAgIDAgICAgICAgIDAgICAgICAgIDAgICAzNTI4MDAwMDANCj4gPiA+IDAgICAgIDAgIDUw MDAwDQo+ID4gPiAgICAgICAgICAgICB1c2RoYzAgICAgICAgICAgICAgICAgMCAgICAgICAgMCAg ICAgICAgMA0KPiA+IDM1MjgwMDAwMA0KPiA+ID4gMCAgICAgMCAgNTAwMDANCj4gPiA+ICAgICAg ICAgIGFwbGxfcGZkMCAgICAgICAgICAgICAgICAxICAgICAgICAxICAgICAgICAxICAgMzUyODAw MDAwDQo+ID4gPiAwICAgICAwICA1MDAwMA0KPiA+ID4NCj4gPiA+IFNpZ25lZC1vZmYtYn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