Received: by 10.192.165.148 with SMTP id m20csp1862106imm; Thu, 26 Apr 2018 03:26:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo8ml6N+TvVT8bmg3sTStL0/rsqZNaic1nSye1tYI781z/sgtxwDwym3pje3/XNGFutuZ+M X-Received: by 10.101.99.152 with SMTP id h24mr7373549pgv.170.1524738382153; Thu, 26 Apr 2018 03:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524738382; cv=none; d=google.com; s=arc-20160816; b=KcuQq8jzYaWOw65cMN3kkxNiW1Uu42bv7zs45Et88T+YsSW8qkEfmd8TtRnasNk20O 7EY51JkwwMbRymFSlhrQrbFWKh8+cDEVXOMKeIsBvElIZfANRozFLJGS5PD0zr6QcZS2 2m5E9lFa2JD17ZBY2Rwl7Af6rSQuNijy+I58tzlTOISWHlkDVuijpOUz7earT11BEbCu RIrmZLsfhQbDSmINga4B0nn46l6Z9qdMBt751/4BqNr59jyaB/VX08Z2w1hkf5z7+STj ILC2YbtVEd8aw2XGrYcmz/czwncMb/OP5iiadSwKAawZi8frb1pbE6m8htd5KZKyUN0S OskA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=S8YmpCqecEvftzud+GNZ4YZZUxOo7lINRELwiCYAaeM=; b=E2ZWN4aXHhyuoCqg3lkL5TFzamgY2/L5A+eRcnJZa0+xD1MJb8NR1zbIuMshQXP+hY ygtNzCX2AOAguud0SCNH3nD68tcNHRFA5VoXK+sXsZCBxuqinamSAbt60Nu3OBWKqhx7 kJdTqJTF+Ti8kuHHdWPoExfXT7hFSLsgdfA2HeTsN2v7giQdIyAA1dYpnR9IXIEtYbu9 ytlVEeNqD6kvpvVdIXKdoQAur5rizQNK04ooWhGdk/lDUm58YQ9U+meFCzZd2WHvOa/d onQo2LGj1m17bcI3O3D0nxFHjdikD7mCDASHCV8fGdjt5ObR7uof7aTYQdmhy/BIrwZt pPxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@freescale.onmicrosoft.com header.s=selector1-freescale-onmicrosoft-com header.b=QI4HiiDY; 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=fail (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 i14si15456182pgp.619.2018.04.26.03.26.08; Thu, 26 Apr 2018 03:26:22 -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=@freescale.onmicrosoft.com header.s=selector1-freescale-onmicrosoft-com header.b=QI4HiiDY; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754646AbeDZKYw (ORCPT + 99 others); Thu, 26 Apr 2018 06:24:52 -0400 Received: from mail-by2nam01on0118.outbound.protection.outlook.com ([104.47.34.118]:16358 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754277AbeDZKYo (ORCPT ); Thu, 26 Apr 2018 06:24:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freescale.onmicrosoft.com; s=selector1-freescale-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=S8YmpCqecEvftzud+GNZ4YZZUxOo7lINRELwiCYAaeM=; b=QI4HiiDY1MK8EUJ+X2e552XdvXKm/BiBmYzY0q93mt+dAnXrTYpqR5115yI3bVIn12cYTxXPTPa/u4D40Z5ZROKuGR+zPCy494tAAjGubcnHz22yYtmgRBINK+u3dqXVOyc4Z2GQuX10jbrQd/djBhnFpRO4330TIMKtv3UJtrc= Received: from CY1PR03CA0037.namprd03.prod.outlook.com (2603:10b6:600::47) by BLUPR03MB389.namprd03.prod.outlook.com (2a01:111:e400:884::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Thu, 26 Apr 2018 10:24:42 +0000 Received: from BL2FFO11FD007.protection.gbl (2a01:111:f400:7c09::197) by CY1PR03CA0037.outlook.office365.com (2603:10b6:600::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.696.13 via Frontend Transport; Thu, 26 Apr 2018 10:24:41 +0000 Authentication-Results: spf=fail (sender IP is 64.157.242.222) smtp.mailfrom=nxp.com; driverdev.osuosl.org; dkim=none (message not signed) header.d=none;driverdev.osuosl.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 64.157.242.222 as permitted sender) receiver=protection.outlook.com; client-ip=64.157.242.222; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (64.157.242.222) by BL2FFO11FD007.mail.protection.outlook.com (10.173.161.3) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.653.14 via Frontend Transport; Thu, 26 Apr 2018 10:24:40 +0000 Received: from az84smr01.freescale.net (az84smr01.freescale.net [10.64.34.197]) by tx30smr01.am.freescale.net (8.14.3/8.14.3) with ESMTP id w3QAOdwT005634; Thu, 26 Apr 2018 03:24:39 -0700 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w3QAOWir019640; Thu, 26 Apr 2018 03:24:37 -0700 From: Yangbo Lu To: , , Greg Kroah-Hartman , Richard Cochran , , Ioana Radulescu CC: Yangbo Lu Subject: [v2, 3/3] staging: fsl-dpaa2/rtc: support phc_index of ethtool_ts_info Date: Thu, 26 Apr 2018 18:23:49 +0800 Message-ID: <20180426102349.45222-3-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180426102349.45222-1-yangbo.lu@nxp.com> References: <20180426102349.45222-1-yangbo.lu@nxp.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:64.157.242.222;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10019020)(376002)(39860400002)(39380400002)(346002)(396003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(486006)(86362001)(77096007)(336012)(2616005)(126002)(6666003)(446003)(11346002)(498600001)(39060400002)(85426001)(2906002)(6636002)(53936002)(50226002)(5660300001)(48376002)(50466002)(44832011)(106466001)(305945005)(316002)(8656006)(110136005)(8936002)(76176011)(4326008)(476003)(36756003)(47776003)(1076002)(59450400001)(81166006)(8676002)(16586007)(51416003)(26005)(97736004)(105606002)(356003)(81156014);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB389;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;LANG:en;PTR:ErrorRetry;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD007;1:R2VN0EYAtL950+h5DzQffrt1eYdU/mQiueY54JfXFbHpStBhPWrzbbzXAacgpwJx3TepC7QwwLDVnmVuX+iUios6wVxXbFhhX7DJIN6s9+rHi+d9T7EvUCSTGlzWfHWf MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(8559017)(2017052603328);SRVR:BLUPR03MB389; X-Microsoft-Exchange-Diagnostics: 1;BLU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HKEowrN90yDwrQEK/dky4BFNzKXrYuxp/czv1LX72CCZ1NF29uPqOtWiKNicC2Tp7Vo+3mQdGtnoNJLb62jxLDHwYv83Rpg8hh82zda/Gh0C0wUB/7+TrFDfPUxWt8E1bFfLzFh3G7o7C5XjmW1Feexx0lkyDRr1S2FbVqklbgDmrRBoknhvfmaKsDa316gFxEVFfkOWhXAMkU9/MXZDBJje2XT5l0E/VYbyuzzPkKNVkKzlhfJBTTj/8tP46D+We5Sjc/YAeRiYjjK8lnKzbPSirCDrZH5ekuulYg8pTBS3ouzzATJ/y8iNDY3ZI6fonLzlNUwLkskWomjP8VqGgG7lmgtCo5Qx9Ghv3mjG7dgJhC+JV0e0j+1/U5HDQdMzY05o3m1yCvtoiNJLyG5h9nnqBPLNxFWRM6VNGDn20ZXXdCWvdZoDLCLjVYBDZSMowLmBeZc4fxw5JhLa74WVuSif1Znw6PYOb7bnNmS11PbXGX+HfrLz6lMMlRoxb51ipu28mfZs4pHfgKLqe8U7WCb+EU+F9l8VTFQ4M4nDpnygmzNeYU58GC1mqjs7Tgv6og= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93003095)(3231232)(944501410)(52105095)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:BLUPR03MB389;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB389; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB389;4:035kl5rZ0yNr4fhqo+rN9caw38UBxS8DhwMz0l2srCXPkn4rtsPBEzmYIULrU/eP9d6HrjWJqzFu+0hZPTsstMjuvMYe5al1WdAlqoD1QxZNGakqiUdnbI+MbJAREuIy69GXaG1oM4PiImr6mXrDoVcLec8z9pJHrHOFO+of1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qfrQ?= =?us-ascii?Q?p0FdfhYm9lxE8J1ldGAErs4uK2bKNopGsDT084xC9liZFCad39bKPMEBtdMU?= =?us-ascii?Q?WYlMTWKHX9pSwKGpYEPoMAjS4EFRYNs9/2o2GwnRKcQbX2p3U/GpFcLX71Z6?= =?us-ascii?Q?yOfGD77F+f55Nit9wLM8tfEv0DiORvYoY0rh0DSBrWAkpVysinr0pS/APi58?= =?us-ascii?Q?+9pL97E+DJpZEwdDeopm2+KaaMmmxHSpl9kdSdPzqNw1ZDKvHQLghKFxw4Ob?= =?us-ascii?Q?gj5I54X1sQLbqpmq0hwmrgm+nPPHspkOxLGva8rizTtMA2m4Jg+Vwg4MTHg5?= =?us-ascii?Q?sAMyn5ohwNIvxinB3vdwbyxsc+IR2jh8w5Eb05mNfUxloW0nb95Kc/d/vXHF?= =?us-ascii?Q?0xwhGlznoiDLyRJYgjeclpkaZ8dxT5hvfWxTb/ULqHGgPJzoIPM05c6wqvto?= =?us-ascii?Q?7KV3jFWutytqfmplAgt3K84zWRYl/LMeFbqX1CEN0pd8HniA8NNHr7QB6zlC?= =?us-ascii?Q?3COL038lLipPztU8VSvg2KgQOROTviKNCs?= X-Microsoft-Antispam-Message-Info: 03Im2Xds5fnDyWaArhRXrXi+WqnfqxvgBBKJsJ8+5C/527YcJV5zaqsSB2Snp8XfmOvY8ZFzWp7ymIWK7j0bGC/zaWjusH68OrvbL6c3A5DkbGjA/vH2ALYUoUCHVSWNoW9aSkeDAlNlRg5jmYYtlh4R0sck5gRWvlvHwwRXND67StaILXTbWStukT0EkeEj X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB389;6:6SHz6GKBQSb/bBHUI0uSW3eSn1Uw0tsmMZ9JiSGWTdo50UOdIRz/bFFvyZ3ycddf2cXETk58BoFB6yDxVL9tSRSeyvbH+1GSNKLKdzJeQByHT/jF3ctBtzu7mCz6L4buZDgCF8xyCcXeZ7IQ/LVbJlWklKVGhXy2MWYHTbjqOhPZSpdxvNZ3+ihyZ9XZwhcqkh+XsL+N0Xe5Hidi2m8jYmVxzCGpf4x8S0CAa3zNJKm62Qnd9r5xYZfPfertvxvK1M7qylJuKnEFMpJVJrtyjUZ8tCBTtPHKg7+vCmNSXLD78tmj1WroHm8R+jnxGRQmlAdDlwEVE79emVsyTZ1AgLA3P6M7Xr9ogSSvriHtnBdhMYxxAynCK/FzeeSchmqhF2RXuIqFaaPzm5eZ8LZbzcohmjaoU8PKkJb8n89babIApDTaKKwMPd3jpKJli7010P6W/RoMM4X/UbyZyjV1Bw==;5:mdFmHH8uGAznhIlXSd/R1xnqJdZeF1qe5YjA1qbdOqbtAbo3PbOPp8/wirwktmRJG3vxJSh5zGaYyrcyjWqVETmD40oyWKCChscH7ZGlmKPwL+1VlFxlwwEAk1Y8HA45Z8tPeifQZHzRsduBiBLoM7AmBw+x+m3bdPPLnhoMoZQ=;24:Up0s4L4/ad1SBguTScwnlSJWru6pVkY89hZD9h94NlcUwx6tmhV7ostq7bEWXYb9WkbMYyn3W9J+V7jl4gjgj2zCTtgSWSGCMoDdDtFeObY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB389;7:GNksIccB8qvZouwRwCgRoU4wgqzFGAbUBqgFgr2IC+gRFwg4g1sEo8qWAVtf8aYjP5XAqaz54PqfbWiIiG2BhltwzAR8ibgplkrIwtT+VdDB+pnNxBZNwpUPRU25k5jFRNgSEilND4Y7J7lIg6jE351Ia9EBD7cs/Xky3WN9FxXVcX/H6JM0pTTKCZOntxYF8x4qX+OQcm8SPNVUAXs7g30Ce1hhI4Fxmkj5HEprBJgY/IFvU7yiOfeGAZ+mT5Lz X-MS-Office365-Filtering-Correlation-Id: d87a5fda-e74f-47d3-d737-08d5ab5feb74 X-OriginatorOrg: freescale.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 10:24:40.1623 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d87a5fda-e74f-47d3-d737-08d5ab5feb74 X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[64.157.242.222];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB389 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is to support phc_index of ethtool_ts_info. Also make the rtc drvier depend on FSL_DPAA2_ETH because this driver is only useful when PTP programs are getting hardware time stamps on the PTP Ethernet packets using the SO_TIMESTAMPING API. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. --- drivers/staging/fsl-dpaa2/Kconfig | 2 +- drivers/staging/fsl-dpaa2/rtc/rtc.c | 6 ++---- drivers/staging/fsl-dpaa2/rtc/rtc.h | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 drivers/staging/fsl-dpaa2/rtc/rtc.h diff --git a/drivers/staging/fsl-dpaa2/Kconfig b/drivers/staging/fsl-dpaa2/Kconfig index ea2d4aa..cad016a 100644 --- a/drivers/staging/fsl-dpaa2/Kconfig +++ b/drivers/staging/fsl-dpaa2/Kconfig @@ -27,7 +27,7 @@ config FSL_DPAA2_ETHSW config FSL_DPAA2_PTP_CLOCK tristate "Freescale DPAA2 PTP Clock" - depends on FSL_DPAA2 + depends on FSL_DPAA2_ETH select PTP_1588_CLOCK help This driver adds support for using the DPAA2 1588 timer module diff --git a/drivers/staging/fsl-dpaa2/rtc/rtc.c b/drivers/staging/fsl-dpaa2/rtc/rtc.c index 1d6405b..0d52cb8 100644 --- a/drivers/staging/fsl-dpaa2/rtc/rtc.c +++ b/drivers/staging/fsl-dpaa2/rtc/rtc.c @@ -9,14 +9,12 @@ #include #include -#include "dprtc.h" -#include "dprtc-cmd.h" +#include "rtc.h" struct ptp_dpaa2_priv { struct fsl_mc_device *rtc_mc_dev; struct ptp_clock *clock; struct ptp_clock_info caps; - int phc_index; u32 freq_comp; }; @@ -173,7 +171,7 @@ static int rtc_probe(struct fsl_mc_device *mc_dev) goto err_close; } - ptp_dpaa2->phc_index = ptp_clock_index(ptp_dpaa2->clock); + dpaa2_phc_index = ptp_clock_index(ptp_dpaa2->clock); dev_set_drvdata(dev, ptp_dpaa2); diff --git a/drivers/staging/fsl-dpaa2/rtc/rtc.h b/drivers/staging/fsl-dpaa2/rtc/rtc.h new file mode 100644 index 0000000..ff2e177 --- /dev/null +++ b/drivers/staging/fsl-dpaa2/rtc/rtc.h @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2018 NXP + */ + +#ifndef __RTC_H +#define __RTC_H + +#include "dprtc.h" +#include "dprtc-cmd.h" + +extern int dpaa2_phc_index; + +#endif -- 1.7.1