Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp412436yba; Thu, 16 May 2019 03:00:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6SQHM4NK0MRrTf5qruxB7qmGAN5rUVYsx6XuXHEkFIIYTX9UKa+lpBv9vPuMHcQpgATRL X-Received: by 2002:a62:3085:: with SMTP id w127mr30342208pfw.170.1558000847785; Thu, 16 May 2019 03:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558000847; cv=none; d=google.com; s=arc-20160816; b=xiZJL08RmQ2Pq6tOF6SzEc63U6rZAtCPknlxO8PZKdpKFi/XhnWSXrsNVXAXEV7tgT rDHyMHG4S0I2xJw+CJrzHipNKsWGYf4pE9PWGcZQrY3LO6JuaAlueoJLmgkhCgV0IpV9 y9dr972TIL6MGBd57TZwCiUhJXS6QCpeRvqWqcCTj1cblFO4I88C2N3HjXotceuCIW8U X44cmGE+aIpgRnMw0eRVSRSGzQUpaqkUJdxZEmM7XpNQV62qV0CaTmcTi+LZL99GeBgq heg82BOVRlBtvbKMxAL0QSr/clkP1pD8NFDECfTFEV0pHU7IVFNBi2XleeTXUdPzLYiR 1K0Q== 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=LLLDSRV3y7e5lrpnJH7HIpdQYx0qclSzKp9Fk5Y13Zs=; b=zPG/OvalOQIBqqhrdTV/GcMcz14bEvretIHnMhHPKqiDiKpxhfKxo4AGAdHByDt5jZ P/h/AFPdsG32Ed3u3dcLuuyxNcXtFMMr7POTkznTczOyyQJgTAJFjdfRv/WDaq8OaWcd iPnihii5rUUbHDG9XpdvJU1BM/ogPDTBXv+b+0DmmaSm90LvIRgztn2iRledxIWtpnE8 pqqvgsvIQYewDfI9CnzobW+/2mH9w09xNANHfcSnEusEur8+7joPEQzF2S4BBz++Prw4 cScH7u8Z2eBLDn0TpMlHjyi+LC4pPWzrSYUbLxwLi33X0jC7be+LQPhrTFTf714RjYyy lGMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=UZ5zokav; 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 u3si5093992pfa.128.2019.05.16.03.00.32; Thu, 16 May 2019 03:00:47 -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=UZ5zokav; 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 S1727249AbfEPJ7T (ORCPT + 99 others); Thu, 16 May 2019 05:59:19 -0400 Received: from mail-eopbgr50071.outbound.protection.outlook.com ([40.107.5.71]:25221 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727176AbfEPJ7R (ORCPT ); Thu, 16 May 2019 05:59:17 -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=LLLDSRV3y7e5lrpnJH7HIpdQYx0qclSzKp9Fk5Y13Zs=; b=UZ5zokavRNdso/FrVWWMMnYqOmhi6AfLuVd4kWuBFin9wW+eBnm8XuuwkosC8somX5/m7OFfBClytX3as46JKaQbhiyo6lOpKRcnrLEjHZ5RhdtXUVephkv3T2OwY139bdN68PW3+uW3mzdnKD2ETDqXrJ+X76UTZPGrXNPG9tU= Received: from VI1PR0401MB2237.eurprd04.prod.outlook.com (10.169.132.138) by VI1PR0401MB2445.eurprd04.prod.outlook.com (10.168.64.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.24; Thu, 16 May 2019 09:59:12 +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.1900.010; Thu, 16 May 2019 09:59:12 +0000 From: "Y.b. Lu" To: "netdev@vger.kernel.org" , Richard Cochran , David Miller , Claudiu Manoil , Shawn Guo , Rob Herring CC: "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Y.b. Lu" Subject: [PATCH 2/3] enetc: add get_ts_info interface for ethtool Thread-Topic: [PATCH 2/3] enetc: add get_ts_info interface for ethtool Thread-Index: AQHVC84DvLvigxLxdka8Zo2g31ppjA== Date: Thu, 16 May 2019 09:59:12 +0000 Message-ID: <20190516100028.48256-3-yangbo.lu@nxp.com> References: <20190516100028.48256-1-yangbo.lu@nxp.com> In-Reply-To: <20190516100028.48256-1-yangbo.lu@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR0302CA0017.apcprd03.prod.outlook.com (2603:1096:202::27) 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: 9c0328c9-4c9d-4e75-6b4a-08d6d9e525b2 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:VI1PR0401MB2445; x-ms-traffictypediagnostic: VI1PR0401MB2445: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:556; x-forefront-prvs: 0039C6E5C5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(376002)(136003)(396003)(346002)(199004)(189003)(6506007)(99286004)(386003)(14454004)(76176011)(52116002)(5660300002)(54906003)(4326008)(478600001)(316002)(102836004)(66066001)(6116002)(3846002)(2906002)(68736007)(36756003)(71200400001)(8936002)(53936002)(256004)(64756008)(66556008)(66476007)(73956011)(66446008)(66946007)(486006)(6512007)(7736002)(446003)(8676002)(186003)(11346002)(476003)(2616005)(71190400001)(305945005)(2501003)(25786009)(26005)(86362001)(6436002)(6486002)(110136005)(81156014)(81166006)(50226002)(1076003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2445;H:VI1PR0401MB2237.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: ztUmhjM1CtSH5CL/w+LElH531bkKN+iWk5V50WsejTH2RjvomM1Nhlr2TTspNNiZlqthRyqfLvyjwEqsIGhHef0lCNwlcw0Gy+/vjY1OzgZLn5tjogAPq72U3CkEJNC1/vOsB/ys7H4UlruKY5hz8XeVfinPLyuobjFK7F56JBA2hLFmlxdySNeN3w7ETnio6X8W0iwIKSCE+GwLR2aoj0l3g1IjR+V4C1lMnv7Iec+aDRXH4PjCI8V99UY5rglq9l4IsT/itA/IUYeCPD4fu3ENdVkQM5x+DtCFXV1UZBp+jC83WsYjpoSq/CSpdtc4F/zW/l56FOX64iQx8xKgYQsEiH+zR0KAr8acxV7x/2oIVVM8j4jxAwIKjOcQMthYtJRWtXo+L0J+puiLlHPKH5t8JhCup1QimEXVriZxsIE= 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: 9c0328c9-4c9d-4e75-6b4a-08d6d9e525b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 May 2019 09:59:12.7355 (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: VI1PR0401MB2445 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhpcyBwYXRjaCBpcyB0byBhZGQgZ2V0X3RzX2luZm8gaW50ZXJmYWNlIGZvciBldGh0b29sDQp0 byBzdXBwb3J0IGdldHRpbmcgdGltZXN0YW1waW5nIGNhcGFiaWxpdHkuDQoNClNpZ25lZC1vZmYt Ynk6IFlhbmdibyBMdSA8eWFuZ2JvLmx1QG54cC5jb20+DQotLS0NCiBkcml2ZXJzL25ldC9ldGhl cm5ldC9mcmVlc2NhbGUvZW5ldGMvZW5ldGMuaCAgfCAgMyArKw0KIC4uLi9ldGhlcm5ldC9mcmVl c2NhbGUvZW5ldGMvZW5ldGNfZXRodG9vbC5jICB8IDMxICsrKysrKysrKysrKysrKysrKysNCiAu Li4vbmV0L2V0aGVybmV0L2ZyZWVzY2FsZS9lbmV0Yy9lbmV0Y19wdHAuYyAgfCAgNSArKysNCiAz IGZpbGVzIGNoYW5nZWQsIDM5IGluc2VydGlvbnMoKykNCg0KZGlmZiAtLWdpdCBhL2RyaXZlcnMv bmV0L2V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