Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3657080yba; Tue, 9 Apr 2019 01:52:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWevaRpFp+HESBK1AVqMH4P3cI4E0hOTw9yrw9CDOuMl3NHw+0t9Q0Ezl1uUTKlaFx7Mw0 X-Received: by 2002:a62:2a97:: with SMTP id q145mr35354038pfq.22.1554799973084; Tue, 09 Apr 2019 01:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554799973; cv=none; d=google.com; s=arc-20160816; b=kxyn0FXmCAPdveDpH9qhyfcfai9DQKZ/iS/tRyaTOoYZcVQ+1BZycRDWqg4Rfnnxfj aUrFINTRENgcZiNkliFleJfHHdh+CF4MPGZbZD4Dalsihj/0SmyW+0+omQzpF3V6Nk+f M1p9nDF/0ce1WcOV7DkbH35oKrNR8ismneSk7hTeKBt3vklMr4/xSe+/k9iokyCqZrEg 1oxlD20lppWAvm7pnxRhzgxLDqS0wQ1TPyVB67EEW+kmrSfxjhg3Canypqd/Ksmemd1I 6bgtZlr90JffkCzBPq8s9oTeOYjA/YH3TJX9AyAH2Ah3Pk8dFy9CCcC3pgIdR7kToyT1 UU1Q== 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=Qg56kuSzse+4I1MOHZoziMDdnNIDx2VoOxjHG2jPj/Q=; b=vivQj5x5/hxq9KNC+WkvcS18X7KgWkH33XVBGBwcvlq1NfIMlV8ZxtJRD3UncgTBpq X8HSGihmZxqkRKH/CJb+4b83t/HzYEl2g5v88BVt1VKF05nVaeRZdG9VOWN7K91Jeslq ijc8rWCZwA6B08vUdGL7NVWjqQUteuTlhciNxpCtwcS1hyFdnobz0rPmK8YTCuLzoRqd mturrkqQnvPmUInG3Sm1wj7kyALA0K2jzUakI9Z8MQep0bP0SMJOKsv3oo+Pyly+cDWF B6miLtlnpJEAg3g59chyQDBG0oZdHapMBe8CraJFIoXX5ujjs8HK/KpHHqAHKfJZ5wFi A60Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="ii/nJyJ/"; 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 w8si7899591pgr.529.2019.04.09.01.52.37; Tue, 09 Apr 2019 01:52:53 -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="ii/nJyJ/"; 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 S1726532AbfDIIwB (ORCPT + 99 others); Tue, 9 Apr 2019 04:52:01 -0400 Received: from mail-eopbgr50086.outbound.protection.outlook.com ([40.107.5.86]:16963 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726066AbfDIIwA (ORCPT ); Tue, 9 Apr 2019 04:52:00 -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=Qg56kuSzse+4I1MOHZoziMDdnNIDx2VoOxjHG2jPj/Q=; b=ii/nJyJ/X+njAExDAIzuZLcVU4AchszVLwz1YAw8gl71FH8vA7qSaHLAKsGmCQAP6N/WR184edonAKCt/DRCDmUKWHEw/6a1+wqxEOvYFekPlFZq26J/1t8JIGo2U2y5tVJHVPo5BwDTGPKDnq4Hiac3LyqYVlsbSvx5nG9aXOo= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3692.eurprd04.prod.outlook.com (52.134.65.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.15; Tue, 9 Apr 2019 08:51:48 +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.1771.016; Tue, 9 Apr 2019 08:51:48 +0000 From: Anson Huang To: =?utf-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= CC: "thierry.reding@gmail.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux@armlinux.org.uk" , "stefan@agner.ch" , "otavio@ossystems.com.br" , Leonard Crestez , "schnitzeltony@gmail.com" , Robin Gong , "linux-pwm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: RE: [EXT] Re: [PATCH V10 2/5] pwm: Add i.MX TPM PWM driver support Thread-Topic: [EXT] Re: [PATCH V10 2/5] pwm: Add i.MX TPM PWM driver support Thread-Index: AQHU46B9WLT24xilRkuAOvixB3Q1lqYzeQoAgAAbkdA= Date: Tue, 9 Apr 2019 08:51:48 +0000 Message-ID: References: <1553582817-29519-1-git-send-email-Anson.Huang@nxp.com> <1553582817-29519-3-git-send-email-Anson.Huang@nxp.com> <20190409064750.qnjcddlf5gktipah@pengutronix.de> In-Reply-To: <20190409064750.qnjcddlf5gktipah@pengutronix.de> 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.69] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6da08230-b37c-443e-2d87-08d6bcc89a0d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3692; x-ms-traffictypediagnostic: DB3PR0402MB3692: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 000227DA0C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(39860400002)(396003)(366004)(346002)(376002)(13464003)(199004)(189003)(105586002)(106356001)(76176011)(256004)(14444005)(5024004)(186003)(71190400001)(30864003)(74316002)(53546011)(7736002)(7696005)(6506007)(6116002)(6306002)(446003)(305945005)(9686003)(99286004)(55016002)(3846002)(4326008)(229853002)(2906002)(81166006)(97736004)(71200400001)(68736007)(476003)(5660300002)(81156014)(54906003)(66574012)(316002)(6436002)(86362001)(6246003)(66066001)(8676002)(44832011)(102836004)(33656002)(25786009)(478600001)(26005)(45080400002)(53936002)(8936002)(53946003)(11346002)(966005)(7416002)(14454004)(6916009)(486006)(52536014)(579004);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3692;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: ttl6EOch6Ey0xkFifijzc6VvFY5EPJZKvh2A4Ji8vzEl76nbpyXTHZmS3qYdsK5fhhf0I5Y6H2cChDE3GDrcrJet2tro4hSWSPk4qPl/F4ymio7PWDq27UOUjlHsOYvLoIQh7KVI7aOarfop3Mqas40pYi4Xm9+AWUTa7IGhzJAYUT5DGmyBhmEA2lDEWm9WXAcUdFHECr/ieDr5MHXfMjRGGDzNyO4Kh8XpInMvd7ni7R+L8H22GoPchfh7vIE37P0OHTSNzzj0G3zC6kkjDP5EpXjGoXNs6hIManujT/YyZxs7ZZIk7ucLyzPM57uuw9Zc6smZPOVqNAszCPT7fqD9x5iKt8NKhVrE3in9Aco2MEVgExM8I8QSAULwFPilllMkpP7OObaHcV9TNGlUbaVKdJ1p/tLMcUrDbbSMfSc= 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: 6da08230-b37c-443e-2d87-08d6bcc89a0d X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2019 08:51:48.1468 (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: DB3PR0402MB3692 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIFV3ZQ0KDQpCZXN0IFJlZ2FyZHMhDQpBbnNvbiBIdWFuZw0KDQo+IC0tLS0tT3JpZ2luYWwg TWVzc2FnZS0tLS0tDQo+IEZyb206IFV3ZSBLbGVpbmUtS8O2bmlnIFttYWlsdG86dS5rbGVpbmUt a29lbmlnQHBlbmd1dHJvbml4LmRlXQ0KPiBTZW50OiAyMDE55bm0NOaciDnml6UgMTQ6NDgNCj4g VG86IEFuc29uIEh1YW5nIDxhbnNvbi5odWFuZ0BueHAuY29tPg0KPiBDYzogdGhpZXJyeS5yZWRp bmdAZ21haWwuY29tOyByb2JoK2R0QGtlcm5l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RUM7DQo+ID4gKyAgICAgc3RhdGUtPmR1dHlf Y3ljbGUgPSBESVZfUk9VTkRfQ0xPU0VTVF9VTEwodG1wLCByYXRlKTsNCj4gPiArDQo+ID4gKyAg ICAgLyogZ2V0IHBvbGFyaXR5ICovDQo+ID4gKyAgICAgaWYgKGNoYW4pIHsNCj4gPiArICAgICAg ICAgICAgIHN0YXRlLT5wb2xhcml0eSA9IGNoYW4tPnBvbGFyaXR5Ow0KPiA+ICsgICAgIH0gZWxz ZSB7DQo+ID4gKyAgICAgICAgICAgICAvKiBpbiBjYXNlIG5vIGNoYW5uZWwgcmVxdWVzdGVkIHll dCwgcmV0dXJuIEhXIHN0YXR1cyAqLw0KPiA+ICsgICAgICAgICAgICAgdmFsID0gcmVhZGwodHBt LT5iYXNlICsgUFdNX0lNWF9UUE1fQ25TQyhwd20tPmh3cHdtKSk7DQo+ID4gKyAgICAgICAgICAg ICBpZiAoRklFTERfR0VUKFBXTV9JTVhfVFBNX0NuU0NfRUxTLCB2YWwpID09DQo+ID4gKyAgICAg ICAgICAgICAgICAgUFdNX0lNWF9UUE1fQ25TQ19FTFNfUE9MQVJJVFlfSU5WRVJTRUQpDQo+ID4g KyAgICAgICAgICAgICAgICAgICAgIHN0YXRlLT5wb2xhcml0eSA9IFBXTV9QT0xBUklUWV9JTlZF UlNFRDsNCj4gPiArICAgICAgICAgICAgIGVsc2UNCj4gPiArICAgICAgICAgICAgICAgICAgICAg LyoNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICogQXNzdW1lIHJlc2VydmVkIHZhbHVlcyAo MmIwMCBhbmQgMmIxMSkgdG8geWllbGQNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICogbm9y bWFsIHBvbGFyaXR5Lg0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgKi8NCj4gPiArICAgICAg ICAgICAgICAgICAgICAgc3RhdGUtPnBvbGFyaXR5ID0gUFdNX1BPTEFSSVRZX05PUk1BTDsNCj4g PiArICAgICB9DQo+IA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Qgc3RhcnRzLg0KPiA+ICsgICAgICAgICAg ICAgICovDQo+ID4gKyAgICAgICAgICAgICB3cml0ZWwocC0+dmFsLCB0cG0tPmJhc2UgKyBQV01f SU1YX1RQTV9DblYocHdtLT5od3B3bSkpOw0KPiA+ICsgICAgICAgICAgICAgZHV0eV91cGRhdGUg PSB0cnVlOw0KPiA+ICsgICAgIH0NCj4gPiArDQo+ID4gKyAgICAgLyogbWFrZSBzdXJlIE1PRCAm IENuViByZWdpc3RlcnMgYXJlIHVwZGF0ZWQgKi8NCj4gPiArICAgICBpZiAocGVyaW9kX3VwZGF0 ZSB8fCBkdXR5X3VwZGF0ZSkgew0KPiA+ICsgICAgICAgICAgICAgdGltZW91dCA9IGppZmZpZXMg KyBtc2Vjc190b19qaWZmaWVzKHRwbS0+cmVhbF9wZXJpb2QgLw0KPiA+ICsgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE5TRUNfUEVSX01TRUMgKyAxKTsN Cj4gPiArICAgICAgICAgICAgIHdoaWxlIChyZWFkbCh0cG0tPmJhc2UgKyBQV01fSU1YX1RQTV9N T0QpICE9IHAtPm1vZA0KPiA+ICsgICAgICAgICAgICAgICAgICAgIHx8IHJlYWRsKHRwbS0+YmFz ZSArIFBXTV9JTVhfVFBNX0NuVihwd20tPmh3cHdtKSkNCj4gPiArICAgICAgICAgICAgICAgICAg ICAhPSBwLT52YWwpIHsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgaWYgKHRpbWVfYWZ0ZXIo amlmZmllcywgdGltZW91dCkpDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0 dXJuIC1FVElNRTsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgY3B1X3JlbGF4KCk7DQo+ID4g KyAgICAgICAgICAgICB9DQo+ID4gKyAgICAgfQ0KPiANCj4gSWYgdGhlIFBXTSBpcyBydW5uaW5n IHlvdSB3YWl0IGluIHRoZSBhYm92ZSBsb29w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