Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3076275imj; Mon, 18 Feb 2019 19:14:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IY3AWUkfnTW7K5vzdIXfU4OXasOPamDqv4hiYawdD5Yt8Kk6AnXhnfPklfWta9/schJL6EP X-Received: by 2002:a62:e082:: with SMTP id d2mr28134079pfm.240.1550546058241; Mon, 18 Feb 2019 19:14:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550546058; cv=none; d=google.com; s=arc-20160816; b=KbLAavmX51aykgG/d8JAhVaZvmmr5ojcV4ZVaZXLIE8OC9Ix+MKs5ULatYp1DKsr0v tsZUifAInYDz7XCqcFW/obAMs6oAfWkRsSiSKUz3nNdcLYXkHsUwpl10zSp9YON70OPy uB+i0nNxmF2VToP1fzsv0gB1oGI9u5pYGGJKdS8o7e45qvbYF9eQfd4Wr3hGA5D+jN3G qIn1KxA5bH8tLRiUzyRmm4KcmoRtNC9IzEEh9nZ90664OKnQFNV+75gMrxGhOLQ7tDpA 0o78ZsEggNsKBlWmmx8eKboEkOQBFOw5/R++O0leUpuzcWtOg8C8m20UowElRH5o5et4 WHlw== 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=yVPPo2SoXNuS19x361Hw0PyLyqboNrbI5peegD8qE38=; b=PULsDtufy9JGqDRRdBcjYDPLWT4yRXWfVtoDR5bSeWFKSMKZv9kVF6vgETfD+X/S3u t3t9PFPGZnvv82m8rzumpWpeQ0olw1zPnmlv/D1FLrJx+XB2jMejggtkWXAHczBAqPDH YZhRiy7TbKSP4ge7ATr/NwPb92l4RmjH4URU2JR4hfaIXTx6/fXVAwNC7j413lxP/2Vp 8jpfFYHt/iDixFnfXnDwxC3GYd//lLBQjde8wXQQRX5VcfnQkg0A+0+eN/QcIYzk/18u kP1Ukq6ZxUQK+FCT1LKDXPDc+bDOV9W9t842iU/1OZleJBUFCa8FdcrM8rCEv0FwRx9H plHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=B4aCFITb; 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 l4si14062390pgr.346.2019.02.18.19.14.03; Mon, 18 Feb 2019 19:14:18 -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=selector1 header.b=B4aCFITb; 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 S1726312AbfBSDMF (ORCPT + 99 others); Mon, 18 Feb 2019 22:12:05 -0500 Received: from mail-eopbgr130044.outbound.protection.outlook.com ([40.107.13.44]:14815 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725536AbfBSDMF (ORCPT ); Mon, 18 Feb 2019 22:12:05 -0500 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=yVPPo2SoXNuS19x361Hw0PyLyqboNrbI5peegD8qE38=; b=B4aCFITbnDfy7vAzUfEah2slXz8FYb00EiF7Xke2+plTdT8dXFvObf5gac0NEpTM6ja7PeQUvThPZlFyDLVf3vPKAu+XfefXQQsYEkBUuVvXX/mb8xJrc8yPgvBLnt+bYYK4he5LRjhJP/MLT7tF+OXlJnOep3dfzLCFkxI01vE= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.21; Tue, 19 Feb 2019 03:11:55 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5%3]) with mapi id 15.20.1601.023; Tue, 19 Feb 2019 03:11:55 +0000 From: Anson Huang To: Alexandre Belloni CC: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "a.zummo@towertech.it" , Aisheng Dong , "ulf.hansson@linaro.org" , "sboyd@kernel.org" , Daniel Baluta , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-rtc@vger.kernel.org" , dl-linux-imx Subject: RE: [PATCH V2 4/4] rtc: imx-sc: add rtc alarm support Thread-Topic: [PATCH V2 4/4] rtc: imx-sc: add rtc alarm support Thread-Index: AQHUxBei1IUMOqlWBECYcHiTQj2z0qXmIckAgAA6V3A= Date: Tue, 19 Feb 2019 03:11:55 +0000 Message-ID: References: <1550115535-14488-1-git-send-email-Anson.Huang@nxp.com> <1550115535-14488-5-git-send-email-Anson.Huang@nxp.com> <20190218215748.GC10129@piout.net> In-Reply-To: <20190218215748.GC10129@piout.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 600e7ad9-2fe1-461d-6377-08d6961800c2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3916; x-ms-traffictypediagnostic: DB3PR0402MB3916: x-ms-exchange-purlcount: 1 x-microsoft-exchange-diagnostics: =?gb2312?B?MTtEQjNQUjA0MDJNQjM5MTY7MjM6ME9tSC9ZVUl1aHhGM2xER0RwTFhlUHc4?= =?gb2312?B?Y0l0TWNhNjJ2TzRaQlpHOEhYdm1zRmREdGdab1VsUkxXVGF0Tm9xVnVETXdO?= =?gb2312?B?MTNMWlFHU29YK3BTOEFHZFE2U3h2REFNWStuQ091SjU5M3lTWG4wVTBvQmZ1?= =?gb2312?B?djlweG53eXkwSG43bjF2eWhFbmw3R0c4ZlEyUHZYZ3ZWR3RmZ2NSREVxN0Zx?= =?gb2312?B?QVdRTTZoc1NsUnB4djUycXV4bTBQVjlqWGNCZFo1QzgwYlVlWmNIYWNqVzVt?= =?gb2312?B?dUREc25YZW1BM1VUNHNpMElWdi9Tb1h1SmY0SWdWZDZ5dmNPNDFjVWNFOEg0?= =?gb2312?B?cnBYdFF5Y21JWVFVbEpBRk52aXB3aTNsU2hUR1c0WHRUamxpOHpwWTZNeVg3?= =?gb2312?B?azJxZHhZc1V2RU5Mb2J4dkVEWURGNEY5N1dIZnlWcXZNZGRGbWFJUlQ3L3VO?= =?gb2312?B?cmdNQngzNGt2YmdnMHVTbHdRd1lhUjFtSWpaUjNCbDkzVEhPU2RLQXV4OXYz?= =?gb2312?B?cjVyZVpmZHBGWmowQ052WWM1RXhVdVpkRXh5c09yb3VubGpMbVpYaTV6Zlpy?= =?gb2312?B?QkpyRVRabWdQaitHbWd0aVhHN2grM0xoWlp1eEZML090eU5HOHNXSEtxcnY1?= =?gb2312?B?dGRnRFd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B?ZnVlSDA2eHU5cDVUQWxNVU0rbFFHK3ZHWXc4VktCcWxodXBkSmc5a2ZXdFlt?= =?gb2312?B?MGpONEtmRlY1ZkNUdk1iTVRvNytzNjhzd2I4TjlsenN5bUtCZ2IrVGtvMjNZ?= =?gb2312?B?L3NFZDY4R01VTUhpK3ptZ0d3TkhxbFFIR21qUHZSN0ZGV3o1Tmo4YzNuOG9r?= =?gb2312?B?TFJLMjhRSVd5UmF4RUhnTkd0eHdTQUtwOUF2ODBiOVFpd2JjbXRmc0lEaEEw?= =?gb2312?B?dlBjUjVRMm9BS08yVXdhSjhGMk8wQjVXb25wNjdJWHZBdXlnSGFlYUJ4VW1C?= =?gb2312?Q?F68SZ9kV/gHFs=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09538D3531 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(136003)(39850400004)(376002)(346002)(366004)(189003)(13464003)(199004)(14444005)(26005)(45080400002)(25786009)(68736007)(256004)(6346003)(6306002)(9686003)(33656002)(478600001)(486006)(3846002)(6116002)(6436002)(55016002)(7416002)(44832011)(186003)(14454004)(7696005)(446003)(11346002)(476003)(4326008)(316002)(8936002)(81166006)(966005)(229853002)(76176011)(6916009)(99286004)(7736002)(81156014)(53936002)(305945005)(74316002)(8676002)(54906003)(2906002)(86362001)(6246003)(102836004)(105586002)(53546011)(6506007)(71190400001)(71200400001)(97736004)(106356001)(66066001)(5660300002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3916;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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: SMtLDGK0bgTD3pHThBqTS/nnBzGFVWjq72gUnF7rNAr5wkR3c0OFOlpFC6LZLz622Y1QnGNpAGK21wnI4x78jqunvIgvx4JIB2+AWLfTKGySLX+BoMu4kV0lAE8SDRGwrcfQT9LvGC0rk9cL+EVnOYMkCfko94vcM9zZM2BOfejzHE64hlYUcHww5SqaCvx9hlkJ4xYiZyLLLcIu7NZCZIszK66+6doju9LvRTaQicscoJFtsII07Ay0b4exNzfHrTVN+6T28QD7M0BAPLtt+gWzYlyypAOoagQjrDISEFA92oxLo3z8OzRdupjFNEzF7owhrnYTiK2TZH32Sgw7DbhE9zWJAIw3tlNydskB2q6z0qI1U2ny0bAkXHUst5DwqJcBc3aXX0OjTltwrAXspu71dcm2y2cS/6C8pSrv0xk= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 600e7ad9-2fe1-461d-6377-08d6961800c2 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2019 03:11:55.3983 (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: DB3PR0402MB3916 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIEFsZXhhbmRyZQ0KDQpCZXN0IFJlZ2FyZHMhDQpBbnNvbiBIdWFuZw0KDQo+IC0tLS0tT3Jp Z2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEFsZXhhbmRyZSBCZWxsb25pIFttYWlsdG86YWxl eGFuZHJlLmJlbGxvbmlAYm9vdGxpbi5jb21dDQo+IFNlbnQ6IDIwMTnE6jLUwjE5yNUgNTo1OA0K PiBUbzogQW5zb24gSHVhbmcgPGFuc29uLmh1YW5nQG54cC5jb20+DQo+IENjOiByb2JoK2R0QGtl cm5lbC5vcmc7IG1hcmsucnV0bGFuZEBhcm0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