Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1198849ybm; Wed, 22 May 2019 19:35:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwozrEBa7OwBElSHXc0IPUOantF2cZhIny0c5hGYrz07Cj/wjS6SVupRLgfmYM5lV6oKwHU X-Received: by 2002:aa7:8495:: with SMTP id u21mr89674092pfn.125.1558578907296; Wed, 22 May 2019 19:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558578907; cv=none; d=google.com; s=arc-20160816; b=WDVmfIBs5+8mpOaJXBjreJqIo/tIuZacqrr8ExvWB1FU2j5/8av7KegQdvam03jqCy /pzouVlGRkx+Wo16BT3HJIYpyQ9/25glXRjzayGRmNdP3+zZduZ65Zv312U5fbb6GeHT K9W/m2r4yCcAtexU3I8RexRyJzmcMASJkSJpIts07C3OsywyAW/TAd1CNSS86k8mXpKJ Xx1rLK4y7CUwpCCt8mOOl92XjoXs5YNjK7xE8qyYBxRpaTW/gntYEZ3fNPP4dI5ZZUlc f1Ur/NTtURZRGuP9ViPmgJurtdviW5SsfCw9/p3V2NjjJAdfg+yL5UbnyQk4c0kfEgjT nEkA== 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=d2q4ra9q9Nu35Cwmly5OuixyVs7lPBjEwxFSSaLG/VE=; b=RaK5C3k6fvJwID+yrbJkabYnMjgBSG2kOAj6jk1F9+73hrgM7K5ssnXLmG78mwn1mk L6F6xWTTpWQVIehAJJ/IQoTUaj6Kch531B7M68/fwGmmld1lZMCOGK1RTOKo0wM/qdPu 3P1K7KS0ebP8AqJHChcOk/++qnaJ37tckQwG6keOwlya54zP1kjB/u5QIsPfyCcPokQ5 rmz824iOzL3s1r+mWGGYeOKksDo1rm6XKzX9XxIzHEnJAG0PkgIsCBQU/nIPq7G94e87 cIgmheYCE7s5Qfnpdf8SgUJAY5+E6lO+cJoFZo1Q+Ar/43sUNgb08vAjDWxPXbiLkGND ZgoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=d3IwBZhG; 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 b32si27953901pla.294.2019.05.22.19.34.51; Wed, 22 May 2019 19:35:07 -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=selector2 header.b=d3IwBZhG; 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 S1729934AbfEWCdh (ORCPT + 99 others); Wed, 22 May 2019 22:33:37 -0400 Received: from mail-eopbgr60049.outbound.protection.outlook.com ([40.107.6.49]:41863 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729758AbfEWCdg (ORCPT ); Wed, 22 May 2019 22:33:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d2q4ra9q9Nu35Cwmly5OuixyVs7lPBjEwxFSSaLG/VE=; b=d3IwBZhGIp6BGCs3U9uYXl6xM5fwa2z0rMgOaBWYuMAzdubEF+6po8t9MZrBEzWOl/cFB5Sfv5Gd1AnXFTdSwBx/72NLtH5hH57/x5hnGATkteJRh8h+tdzCafZKyN7oJ89ulmrOBGXwtu77yMRraBqpI7NNsvXNGFHQc9AQ09s= Received: from VI1PR0401MB2237.eurprd04.prod.outlook.com (10.169.132.138) by VI1PR0401MB2494.eurprd04.prod.outlook.com (10.168.65.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.18; Thu, 23 May 2019 02:33:33 +0000 Received: from VI1PR0401MB2237.eurprd04.prod.outlook.com ([fe80::b091:6395:e853:5986]) by VI1PR0401MB2237.eurprd04.prod.outlook.com ([fe80::b091:6395:e853:5986%3]) with mapi id 15.20.1922.016; Thu, 23 May 2019 02:33:33 +0000 From: "Y.b. Lu" To: "netdev@vger.kernel.org" , Richard Cochran , David Miller , Claudiu Manoil , Shawn Guo , Rob Herring , Alexandru Marginean CC: "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Y.b. Lu" Subject: [PATCH net-next v2, 2/4] enetc: add get_ts_info interface for ethtool Thread-Topic: [PATCH net-next v2, 2/4] enetc: add get_ts_info interface for ethtool Thread-Index: AQHVEQ/qWwNzgkPVw0iRjtIX9MK2uQ== Date: Thu, 23 May 2019 02:33:33 +0000 Message-ID: <20190523023451.2933-3-yangbo.lu@nxp.com> References: <20190523023451.2933-1-yangbo.lu@nxp.com> In-Reply-To: <20190523023451.2933-1-yangbo.lu@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR04CA0053.apcprd04.prod.outlook.com (2603:1096:202:14::21) To VI1PR0401MB2237.eurprd04.prod.outlook.com (2603:10a6:800:27::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yangbo.lu@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5feaf647-1d88-44a0-85bf-08d6df270cbd 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:VI1PR0401MB2494; x-ms-traffictypediagnostic: VI1PR0401MB2494: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:556; x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(396003)(366004)(346002)(376002)(136003)(189003)(199004)(2616005)(54906003)(66066001)(86362001)(478600001)(110136005)(26005)(476003)(52116002)(486006)(76176011)(8676002)(66476007)(25786009)(81166006)(81156014)(186003)(66946007)(66556008)(64756008)(66446008)(99286004)(73956011)(2906002)(102836004)(3846002)(6116002)(6512007)(386003)(53936002)(2501003)(6506007)(256004)(36756003)(68736007)(50226002)(305945005)(6486002)(7736002)(8936002)(71200400001)(71190400001)(6636002)(5660300002)(316002)(1076003)(14454004)(446003)(4326008)(11346002)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2494;H:VI1PR0401MB2237.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: X6eC/NzyZjLtzXKr56uql+JL9u7c9/T47CpMg6xIYRf12r32FFZj0CTVs4UdRNSbMumgTgfTsIwvdpwFkF5YrWVspqhgDpliAwejJnCpp8ZAXDJ/uGjwnZu1W4Ken9Nsl92xSjCDaCQnpcgPwK23AgpdVOqhpavoy0L/xX86GYi9pNobz0+h8oqImj/OuoldzQ7o6mClMP+A1I0zQmLeWuv567KZzVvocCXGMTpJYd68s+43OjIJjVYgSH21tOJt5jXzMDEENOmdU26VHLCEjjlX1taa6T3Di7cAlhtNyU/BLfVREGs1DevCAnoAFdxOLd7iqRczoYod1xg22o5JrBmAR5cdQRaRhey7s1X6eYTRgPLbIE5/UWVyF757rWEComp0yRWVuxlgJRD7655IWwdT3Ekz4CpAHHB6WyEvzmU= 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: 5feaf647-1d88-44a0-85bf-08d6df270cbd X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2019 02:33:33.4543 (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-CrossTenant-userprincipalname: yangbo.lu@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2494 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhpcyBwYXRjaCBpcyB0byBhZGQgZ2V0X3RzX2luZm8gaW50ZXJmYWNlIGZvciBldGh0b29sDQp0 byBzdXBwb3J0IGdldHRpbmcgdGltZXN0YW1waW5nIGNhcGFiaWxpdHkuDQoNClNpZ25lZC1vZmYt Ynk6IFlhbmdibyBMdSA8eWFuZ2JvLmx1QG54cC5jb20+DQotLS0NCkNoYW5nZXMgZm9yIHYyOg0K CS0gTm9uZS4NCi0tLQ0KIGRyaXZlcnMvbmV0L2V0aGVybmV0L2ZyZWVzY2FsZS9lbmV0Yy9lbmV0 Yy5oICB8ICAzICsrDQogLi4uL2V0aGVybmV0L2ZyZWVzY2FsZS9lbmV0Yy9lbmV0Y19ldGh0b29s LmMgIHwgMzEgKysrKysrKysrKysrKysrKysrKw0KIC4uLi9uZXQvZXRoZXJuZXQvZnJlZXNjYWxl L2VuZXRjL2VuZXRj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