Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1108248yba; Sat, 4 May 2019 22:04:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqz454Xp/S4mlCKpSkBoMwv9OMyalh22wlvWOuyYkewZ0ok6eoW+BzmPgkZHs7aJJYFs4PpX X-Received: by 2002:a17:902:bd94:: with SMTP id q20mr22796204pls.334.1557032696256; Sat, 04 May 2019 22:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557032696; cv=none; d=google.com; s=arc-20160816; b=FgUBwaNlFY0AO9fgwxxJ6JilpzzHucALV4W5fJvp4ATQMAkN5LKAhpyrHbATNFVOqF 1vgQUBAJb4hB2NOtK+cp3HH9+Zuk1Wa+m66vnyFTjetXg/SdN2WtsNhcTyjYj2tKXSBN zzSysk+izuNZ92gkxyV25yU04TZpKvU13B1pwePP2/Wwu4uFfsTOuJli148aMJwfCP4O og89L6CazXJJ1Iln5C61my2uyy7I5AUO9iBHVYpzVBiTSzllWy2U4LOq32iKCgNpWES4 6tWdgx1L6Rrg8E4VUxOA2WpfAoTx+/Ur3CbCFMWqgvqVCsb1BOnRppZDVyg7xcOPZR+d 33mQ== 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:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=mL8c1wp2SdDJZThoH10q4Y4BLAXZi6NDdzG59TV9bD4=; b=nhQItSGmoC5g6rS9hAYUrPsq1nb3c6AvWu+eX+IMjZ/dpQ5sDUZOkR3we7Dir98IA6 4Rg6h2V0LW1uVpGPbw92KmsHivm9qJb3tudO14Wn4Y+fHrDci6TUTjPmStQJ+YRFfeoH PGU57kHQt1HZnMWwb8P/p9MCCrRqxT9Iqgje/cP4hXsi9p/NAYWHxTRE4GIbi/i41npd 44Lbvo3YrVgiP7d13CUQeAwBcmHfAYtfgyDY+CkVS8EicyOze18n/5U9EP0P9lgL2Ckz DyaASqAA+mlASTI11xn423oiBHJo/zNegmdIup6FrkobsIhzdLOVq/9Es/F3QyTXMz9+ cVZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=hkizsgTe; 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 d17si9768341pgg.367.2019.05.04.22.04.41; Sat, 04 May 2019 22:04:56 -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=hkizsgTe; 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 S1726905AbfEEFCQ (ORCPT + 99 others); Sun, 5 May 2019 01:02:16 -0400 Received: from mail-eopbgr130089.outbound.protection.outlook.com ([40.107.13.89]:7189 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725814AbfEEFCP (ORCPT ); Sun, 5 May 2019 01:02:15 -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=mL8c1wp2SdDJZThoH10q4Y4BLAXZi6NDdzG59TV9bD4=; b=hkizsgTe/Ss1uh6h/b2eZ3jrpgv/XJxSIYtU8inyngu2aoBzhBHB57kwMP4fMtH6umfNfvI9P+cKWqoa3E38R0SpyEuWNLu9PfSPfeNSl+sbNU0pNbmQlk5mMKdY0kpOWlVO+yb9xl89phb9zUASomygbxue1YpVTH9Ux2WO5c0= Received: from VI1PR04MB5135.eurprd04.prod.outlook.com (20.177.50.160) by VI1PR04MB3086.eurprd04.prod.outlook.com (10.170.228.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.11; Sun, 5 May 2019 05:02:05 +0000 Received: from VI1PR04MB5135.eurprd04.prod.outlook.com ([fe80::a986:98cc:25cc:ace0]) by VI1PR04MB5135.eurprd04.prod.outlook.com ([fe80::a986:98cc:25cc:ace0%6]) with mapi id 15.20.1856.012; Sun, 5 May 2019 05:02:05 +0000 From: Po Liu To: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" CC: "Y.b. Lu" , Claudiu Manoil , "davem@davemloft.net" , "richardcochran@gmail.com" , Leo Li , Roy Zang , Mingkai Hu , "deepa.kernel@gmail.com" , Po Liu Subject: [PATCH v1] timer:clock:ptp: add support the dynamic posix clock alarm set for ptp Thread-Topic: [PATCH v1] timer:clock:ptp: add support the dynamic posix clock alarm set for ptp Thread-Index: AQHVAv+uAw38mip9iECrS0NFEcaAmQ== Date: Sun, 5 May 2019 05:02:05 +0000 Message-ID: <1557032106-28041-1-git-send-email-Po.Liu@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 1.8.3.1 x-clientproxiedby: HK2PR02CA0203.apcprd02.prod.outlook.com (2603:1096:201:20::15) To VI1PR04MB5135.eurprd04.prod.outlook.com (2603:10a6:803:5a::32) authentication-results: spf=none (sender IP is ) smtp.mailfrom=po.liu@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 607b9a46-1526-4465-f003-08d6d116d10b 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:VI1PR04MB3086; x-ms-traffictypediagnostic: VI1PR04MB3086: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-forefront-prvs: 00286C0CA6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(39860400002)(136003)(376002)(346002)(199004)(189003)(476003)(4720700003)(68736007)(6486002)(14454004)(53936002)(2616005)(66066001)(4326008)(6506007)(386003)(7736002)(6436002)(486006)(73956011)(66946007)(3846002)(99286004)(186003)(6116002)(26005)(66556008)(66476007)(66446008)(64756008)(6512007)(8936002)(81166006)(86362001)(81156014)(2501003)(102836004)(8676002)(2201001)(316002)(71200400001)(71190400001)(36756003)(25786009)(2906002)(5660300002)(54906003)(50226002)(14444005)(256004)(52116002)(110136005)(305945005)(478600001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB3086;H:VI1PR04MB5135.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: zKYOu3T2gBIwgO4bwj7gXHbRSoDhYCEc6EOsuataDVy/yw4a0up0K5auLxXIk+BZi7fKx+yf0enOqmmexGpZ1WCFZUPEAV0dHbRWy2u3lkApgb8eLDYDAs6Qaow+e3EbXEjiAtxYRm5W6ptRc2QtzBmokb55f9o9lFbF4rZDyQGOMJ9eJGW/lvCCOtzsadlqukjjzfloSvsbgOXpEcv2RjQcLB1oqGV2qfVGP+cD60KBPIeLwz0MxiHLPhD9YYrc3I1iy7tRtP19HZeW+nSiSlfhO2KnaZV2X6M5z17qVSxohFLPwYJoZ5u/oeD7mU3IkrjYp3TVGvP0sz4dB0SM0q1nn3H3IT4E5gGgwatR31uretluTF2BrXF1I+c5BypS1xe+8d8YSY1jA1WdRYbOqREF7Lb5qYD/ozXuEe780f0= 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: 607b9a46-1526-4465-f003-08d6d116d10b X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2019 05:02:05.1383 (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: VI1PR04MB3086 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Q3VycmVudCBrZXJuZWwgY29kZSBkbyBub3Qgc3VwcG9ydCB0aGUgZHluYW1pYyBwb3NpeCBjbG9j ayBhbGFybSBzZXQuDQpUaGlzIGNvZGUgd291bGQgc3VwcG9ydCBpdCBieSB0aGUgcG9zaXggdGlt ZXIgc3RydWN0dXJlLg0KDQozMTkgIGNvbnN0IHN0cnVjdCBrX2Nsb2NrIGNsb2NrX3Bvc2l4X2R5 bmFtaWMgPSB7DQoNCjMyMCAgICAgICAgIC5jbG9ja19nZXRyZXMgICA9IHBjX2Nsb2NrX2dldHJl cywNCjMyMSAgICAgICAgIC5jbG9ja19zZXQgICAgICA9IHBjX2Nsb2NrX3NldHRpbWUsDQozMjIg ICAgICAgICAuY2xvY2tfZ2V0ICAgICAgPSBwY19jbG9ja19nZXR0aW1lLA0KMzIzICAgICAgICAg LmNsb2NrX2FkaiAgICAgID0gcGNfY2xvY2tfYWRqdGltZSwNCjMyNCArICAgICAgIC50aW1lcl9j cmVhdGUgICA9IHBjX3R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