Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3482012yba; Mon, 8 Apr 2019 21:02:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZ7b7JhUa9EFSWIXGtqHk775sCow4WODaKzsaH7Z8mzNtogRGuum1tlyM9d2yyA7Fjl38n X-Received: by 2002:a17:902:aa91:: with SMTP id d17mr34937399plr.43.1554782572136; Mon, 08 Apr 2019 21:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554782572; cv=none; d=google.com; s=arc-20160816; b=ukT+yFPHdpQNN8ptiotGz0RiOwyXwYrsXBjiZGBVNyMN6VFhNTbvRHA0JaMUXzibG/ TdBB91gzkRw6lyTi3b8byHKQg2tl9Gts/coxKDgnu1LAgqjTVPI63ffCPGwDkNW9rGib 0U1ciBPgEUjjkCn1++pZD+pq527ZKae+hXvgiDqg+afNYNcNeLLdq0UtvcfwQAJJjwjM Kwsms7sK4tD107qCvVLXv/5oxBuOaobic4wBCZMTxIilvAcd7m01zdcJ37ArZNd+t1AO 8p+ED9nOY9t0sn0B2eCRbQEw4XbzSjUmEwL2XMUyvw47uy+dhxqgle9IQ2nBHYScs8pq 9nQQ== 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=0D3CrzBAnbr8OKOdEI+2MbKD0OwjMdpRSQu3i4kZPBQ=; b=ZYhI/XEGI++Gf0zR8O9zfIoQ4ENIwHOWDzcJTCzO44UpYDRhLX4QOb/Yy3Ug9dbTrS /Y2+KZrQvO7fWeDeke+viorIUbutiVUu0iyKa4qDfbmWHzfKJaXzyNqn/uLfXa88Ouak xKY0GlE42OzFySQ7ytzgp7v9a6+b35kvcz6uW6VU8WwwMbCl+B+2riOnel1iqSiDrHuR +u1tCs3kyfsZRdv61TC7JhU0W9srWq+hMCLG54zyn5qg7e6DCqrxJ6h3j+B+CYs4Km34 Dt54fV25yiQyC6Wfh2kNn4gQZf9BQD/fHvhXP7a03QoloeP729nQs2glrZhqTJhbevIp q7kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=R6E1gpon; 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 k6si7341303pfc.122.2019.04.08.21.02.36; Mon, 08 Apr 2019 21:02:52 -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=R6E1gpon; 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 S1726973AbfDIDd4 (ORCPT + 99 others); Mon, 8 Apr 2019 23:33:56 -0400 Received: from mail-eopbgr60067.outbound.protection.outlook.com ([40.107.6.67]:19355 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726456AbfDIDdz (ORCPT ); Mon, 8 Apr 2019 23:33:55 -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=0D3CrzBAnbr8OKOdEI+2MbKD0OwjMdpRSQu3i4kZPBQ=; b=R6E1gpon07VrqcGsQfnj1cqR5TMzgn90QQPrvZyo5qsnA0E865M9rmd8wpkCPDHWl84v2/x0wqJzgz22DEwR6Re0cltVSdm7C95iqVVoAQehwHBAztr0l9cx5TWvbnIseryufmWO5PFWCFA/gMytr800E5CqNor6pnyDPH98fmM= 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.1771.15; Tue, 9 Apr 2019 03:33:50 +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 03:33:50 +0000 From: Anson Huang To: Aisheng Dong , "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" , "alexandre.belloni@bootlin.com" , "ulf.hansson@linaro.org" , "sboyd@kernel.org" , Peng Fan , Daniel Baluta , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-rtc@vger.kernel.org" CC: dl-linux-imx Subject: RE: [PATCH V6 4/4] rtc: imx-sc: add rtc alarm support Thread-Topic: [PATCH V6 4/4] rtc: imx-sc: add rtc alarm support Thread-Index: AQHU7n4EdgguyHsDvUib9vTZjNBAXKYzKrAAgAACNUA= Date: Tue, 9 Apr 2019 03:33:50 +0000 Message-ID: References: <1554777487-31075-1-git-send-email-Anson.Huang@nxp.com> <1554777487-31075-4-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.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e614487c-2ae9-4cf4-3c3f-08d6bc9c2e9e 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:DB3PR0402MB3738; x-ms-traffictypediagnostic: DB3PR0402MB3738: x-microsoft-antispam-prvs: x-forefront-prvs: 000227DA0C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(396003)(366004)(39860400002)(376002)(136003)(189003)(13464003)(199004)(2906002)(6436002)(76176011)(81156014)(102836004)(25786009)(316002)(8676002)(2201001)(3846002)(14444005)(7736002)(71200400001)(6246003)(6116002)(74316002)(26005)(256004)(8936002)(4326008)(68736007)(229853002)(110136005)(86362001)(53546011)(305945005)(33656002)(6506007)(81166006)(71190400001)(5660300002)(2501003)(99286004)(478600001)(55016002)(97736004)(105586002)(44832011)(9686003)(186003)(106356001)(7416002)(7696005)(66066001)(52536014)(446003)(11346002)(476003)(486006)(53936002)(14454004)(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: 4GCrlj86ruzelXUtI5Zr7HJQj/r82OPc3tk+iNy92OuOyvPoBQ9vIEOhyRN7OoENhPsyYk7ezpGIyoM81qKfr0mh7X2+McKXLIGtpvaNGB1xFHEzypNK75h5lkTS5t/U2hTZKvPDDxodLOAPxY3hJJbeQVC908ArHT2F203/1cUJbWeBSjkkYTaDH+JGjwO9zYbvHyZmAJZpIGaeyB8FpsioRiLaA+r7hJ67Fd5ysthY5YA1FvhSwqRpbFcCrBDRtt3sJn1GM2pQrUYpQ/4omIpsvEwv8mBQB/vNcWu/nBGk05FK/yFuwr28smpQZ/cDzVprAE2ediFcztT2pLucy6RQPTs56FQVqbQdg20Rbe8a+U0uZzuVWHRh+ZM25d2hyMfDExp+fvziShAFpTgYOG3AFLLdJbKdUrBDbEB0i1w= 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: e614487c-2ae9-4cf4-3c3f-08d6bc9c2e9e X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2019 03:33:50.0924 (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 DQoNCkJlc3QgUmVnYXJkcyENCkFuc29uIEh1YW5nDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdl LS0tLS0NCj4gRnJvbTogQWlzaGVuZyBEb25nDQo+IFNlbnQ6IDIwMTnlubQ05pyIOeaXpSAxMToy NQ0KPiBUbzogQW5zb24gSHVhbmcgPGFuc29uLmh1YW5nQG54cC5jb20+OyByb2JoK2R0QGtlcm5l bC5vcmc7DQo+IG1hcmsucnV0bGFuZEBhcm0uY29tOyBzaGF3bmd1b0BrZXJuZWwub3JnOyBzLmhh dWVyQHBlbmd1dHJvbml4LmRlOw0KPiBrZXJuZWxAcGVuZ3V0cm9uaXguZGU7IGZlc3RldmFtQGdt YWlsLmNvbTsgYS56dW1tb0B0b3dlcnRlY2guaXQ7DQo+IGFsZXhhbmRyZS5iZWxsb25pQGJvb3Rs aW4uY29tOyB1bGYuaGFuc3NvbkBsaW5hcm8ub3JnOyBzYm95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