[{"id":1760521,"web_url":"http://patchwork.ozlabs.org/comment/1760521/","msgid":"<20170830.144745.947488279115809130.davem@davemloft.net>","list_archive_url":null,"date":"2017-08-30T21:47:45","subject":"Re: [PATCH net-next] net: cpsw: Don't handle SIOC[GS]HWTSTAMP when\n\tCPTS is disabled","submitter":{"id":15,"url":"http://patchwork.ozlabs.org/api/people/15/","name":"David Miller","email":"davem@davemloft.net"},"content":"From: Stefan Sørensen <stefan.sorensen@spectralink.com>\nDate: Wed, 30 Aug 2017 08:50:55 +0200\n\n> There is no reason to handle SIOC[GS]HWTSTAMP and return -EOPNOTSUPP when\n> CPTS is disabled, so just pass them on to the phy. This will allow PTP\n> timestamping on a capable phy by disabling CPTS.\n> \n> Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>\n\nIt should not be required to disable a Kconfig option just to get PHY\ntimestamping to work properly.\n\nRather, if the CPTS code returns -EOPNOTSUPP we should try to\nfallthrough to the PHY library based methods.\n\nThanks.","headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xjJyd2BRVz9s8P\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 07:47:53 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751323AbdH3Vrr convert rfc822-to-8bit (ORCPT\n\t<rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 30 Aug 2017 17:47:47 -0400","from shards.monkeyblade.net ([184.105.139.130]:34532 \"EHLO\n\tshards.monkeyblade.net\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751291AbdH3Vrq (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 30 Aug 2017 17:47:46 -0400","from localhost (74-93-104-98-Washington.hfc.comcastbusiness.net\n\t[74.93.104.98]) (using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(Client did not present a certificate)\n\t(Authenticated sender: davem-davemloft)\n\tby shards.monkeyblade.net (Postfix) with ESMTPSA id D1080133FA41F;\n\tWed, 30 Aug 2017 14:47:45 -0700 (PDT)"],"Date":"Wed, 30 Aug 2017 14:47:45 -0700 (PDT)","Message-Id":"<20170830.144745.947488279115809130.davem@davemloft.net>","To":"stefan.sorensen@spectralink.com","Cc":"grygorii.strashko@ti.com, netdev@vger.kernel.org,\n\tlinux-omap@vger.kernel.org","Subject":"Re: [PATCH net-next] net: cpsw: Don't handle SIOC[GS]HWTSTAMP when\n\tCPTS is disabled","From":"David Miller <davem@davemloft.net>","In-Reply-To":"<20170830065055.419-1-stefan.sorensen@spectralink.com>","References":"<20170830065055.419-1-stefan.sorensen@spectralink.com>","X-Mailer":"Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO)","Mime-Version":"1.0","Content-Type":"Text/Plain; charset=iso-8859-1","Content-Transfer-Encoding":"8BIT","X-Greylist":"Sender succeeded SMTP AUTH, not delayed by\n\tmilter-greylist-4.5.12 (shards.monkeyblade.net\n\t[149.20.54.216]); Wed, 30 Aug 2017 14:47:46 -0700 (PDT)","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"}},{"id":1760719,"web_url":"http://patchwork.ozlabs.org/comment/1760719/","msgid":"<20170831074807.3dbbt6qhqxdquipa@localhost>","list_archive_url":null,"date":"2017-08-31T07:48:07","subject":"Re: [PATCH net-next] net: cpsw: Don't handle SIOC[GS]HWTSTAMP when\n\tCPTS is disabled","submitter":{"id":4009,"url":"http://patchwork.ozlabs.org/api/people/4009/","name":"Richard Cochran","email":"richardcochran@gmail.com"},"content":"On Wed, Aug 30, 2017 at 02:47:45PM -0700, David Miller wrote:\n> It should not be required to disable a Kconfig option just to get PHY\n> timestamping to work properly.\n\nWell, if the MAC driver handles the ioctl and enables time stamping,\nthen the PHY driver's time stamping remains disabled.  We don't have a\nway to choose PHY time stamping at run time.\n \n> Rather, if the CPTS code returns -EOPNOTSUPP we should try to\n> fallthrough to the PHY library based methods.\n\nI agree that it would be better for the core (rather than the\nindividual drivers) to handle this case.\n\nThere are a few callers of .ndo_do_ioctl to consider.  Besides\ndev_ifsioc() there is at least vlan_dev_ioctl() that needs to handle\nthe EOPNOTSUPP.\n\nThanks,\nRichard","headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"t3Sea9dC\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xjZHN4wZNz9sQl\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 17:48:16 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1750848AbdHaHsO (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 31 Aug 2017 03:48:14 -0400","from mail-wm0-f65.google.com ([74.125.82.65]:35068 \"EHLO\n\tmail-wm0-f65.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750732AbdHaHsM (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 31 Aug 2017 03:48:12 -0400","by mail-wm0-f65.google.com with SMTP id e204so4055803wma.2;\n\tThu, 31 Aug 2017 00:48:11 -0700 (PDT)","from localhost (213-225-35-115.nat.highway.a1.net.\n\t[213.225.35.115]) by smtp.gmail.com with ESMTPSA id\n\tx67sm3376348wma.7.2017.08.31.00.48.09\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 31 Aug 2017 00:48:10 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=7ql85AO4AEoWxj5HH5/Gegw7xjnZDlo8zi7aEFs4jxs=;\n\tb=t3Sea9dCxBYUoNlHKSOvlPlh4bHbt+ZCz03tgNM2Gh4GVyzXf/MXL/78J2/PCtfVBL\n\tKM3Xo/qqQYwGmSBFHWqsOhcv+urJcUb/M1vqNndpv+76QzyXOaIYvXTLuCgW0CgYf9kg\n\tzcaRTKUbdEb6LDvaywiNgGpHLswzoHeVRo2tqZzn4zG+ZVs//RlWNhUMf06e3gShftRR\n\t/7TstlpWlTQtWeEdrRjQAdif14hqrfp2KpvOyO+tNzuijb7U9+JcFMq7HpWaaBlW9JbC\n\twLgYKkJRT1cIb5pBYco/fFY6c+RRr2aSFocpG8ib5eIrZxW+Oqt21CW0r3QtUQ+er1Mh\n\tap1g==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=7ql85AO4AEoWxj5HH5/Gegw7xjnZDlo8zi7aEFs4jxs=;\n\tb=ok5IO/eyzDguM5ZNhGA0/MUc1kfCs7uWg4+fAvGWdEpD6I7C/wYNUYuYPMwGxRO7ml\n\tNIYkCzbCpV1RxX0NnK8SXk07LFSbWJ6/8YSylB87Uo996XCDL/mkAqwxMwfMxte/DMJY\n\t/lm85Pd1r6fBs6psz6vuVfl0zG8J9k8NiwyEOBzgg1mWi009RZp1MFMkIepF94SUoK1/\n\taeE3PBOKbJzEPIbNedD3Iu9HXqsDGSWfZdsoq/ZmnnfY+a5DrL2bAazVE9e1cwFQCblu\n\tGmQYKr8qqo0WijoGyb2G51+HJm/iLT/szxSeSN31ipBcIxi7mRKaFpbeqgWYlUwd31bU\n\t5kJg==","X-Gm-Message-State":"AHYfb5iPbqHaoyIr2fhRhHqFTPxVepO5U3RuKeiIOS+zYdDQ4ISigSzt\n\t5LC4cSO14RlKig==","X-Received":"by 10.28.132.3 with SMTP id g3mr2669967wmd.29.1504165691256;\n\tThu, 31 Aug 2017 00:48:11 -0700 (PDT)","Date":"Thu, 31 Aug 2017 09:48:07 +0200","From":"Richard Cochran <richardcochran@gmail.com>","To":"David Miller <davem@davemloft.net>","Cc":"stefan.sorensen@spectralink.com, grygorii.strashko@ti.com,\n\tnetdev@vger.kernel.org, linux-omap@vger.kernel.org","Subject":"Re: [PATCH net-next] net: cpsw: Don't handle SIOC[GS]HWTSTAMP when\n\tCPTS is disabled","Message-ID":"<20170831074807.3dbbt6qhqxdquipa@localhost>","References":"<20170830065055.419-1-stefan.sorensen@spectralink.com>\n\t<20170830.144745.947488279115809130.davem@davemloft.net>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20170830.144745.947488279115809130.davem@davemloft.net>","User-Agent":"NeoMutt/20170113 (1.7.2)","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"}},{"id":1763656,"web_url":"http://patchwork.ozlabs.org/comment/1763656/","msgid":"<c470bbf2-fadf-88ba-f944-f0b373d211ad@ti.com>","list_archive_url":null,"date":"2017-09-05T21:25:22","subject":"Re: [PATCH net-next] net: cpsw: Don't handle SIOC[GS]HWTSTAMP when\n\tCPTS is disabled","submitter":{"id":25084,"url":"http://patchwork.ozlabs.org/api/people/25084/","name":"Grygorii Strashko","email":"grygorii.strashko@ti.com"},"content":"Hi\n\nOn 08/31/2017 02:48 AM, Richard Cochran wrote:\n> On Wed, Aug 30, 2017 at 02:47:45PM -0700, David Miller wrote:\n>> It should not be required to disable a Kconfig option just to get PHY\n>> timestamping to work properly.\n> \n> Well, if the MAC driver handles the ioctl and enables time stamping,\n> then the PHY driver's time stamping remains disabled.  We don't have a\n> way to choose PHY time stamping at run time.\n>   \n>> Rather, if the CPTS code returns -EOPNOTSUPP we should try to\n>> fallthrough to the PHY library based methods.\n> \n> I agree that it would be better for the core (rather than the\n> individual drivers) to handle this case.\n\nI'd like to clarify one thing here - what is the preferable time-stamping\ndevice: PHY over MAC, or MAC over PHY? \nmy understanding it's PHY and ethtool_get_ts_info() seems already implemented this way.\n\n> \n> There are a few callers of .ndo_do_ioctl to consider.  Besides\n> dev_ifsioc() there is at least vlan_dev_ioctl() that needs to handle\n> the EOPNOTSUPP.\n\nSry, I've not tried to do solution in Net core, but below patch updates CPSW\ndriver to selected PHY time-stamping over MAC if supported without disabling CPTS in Kconfig\n(at least it's expected to fix it) - not tested as I do not have HW with dp83640 phy.\n\n-----------------------------------------------------------------------\nFrom 51347692087732320f2f5615030f5f36ed3c7724 Mon Sep 17 00:00:00 2001\nFrom: Grygorii Strashko <grygorii.strashko@ti.com>\nDate: Tue, 5 Sep 2017 15:24:44 -0500\nSubject: [PATCH] net: ethernet: cpsw: allow phy timestamping over mac\n\nAllow phy timestamping to be used over mac timestamping if supported.\n\nSigned-off-by: Grygorii Strashko <grygorii.strashko@ti.com>\n---\n drivers/net/ethernet/ti/cpsw.c | 21 +++++++++++++++++----\n drivers/net/ethernet/ti/cpts.c |  2 ++\n 2 files changed, 19 insertions(+), 4 deletions(-)\n\ndiff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c\nindex 95ac926..8831cb9 100644\n--- a/drivers/net/ethernet/ti/cpsw.c\n+++ b/drivers/net/ethernet/ti/cpsw.c\n@@ -291,6 +291,10 @@ struct cpsw_ss_regs {\n #define CPSW_MAX_BLKS_TX_SHIFT\t\t4\n #define CPSW_MAX_BLKS_RX\t\t5\n \n+#define HAS_PHY_TXTSTAMP(p) ((p) && (p)->drv && (p)->drv->txtstamp)\n+#define HAS_PHY_TSTAMP(p) ((p) && (p)->drv && \\\n+\t((p)->drv->rxtstamp || (p)->drv->rxtstamp))\n+\n struct cpsw_host_regs {\n \tu32\tmax_blks;\n \tu32\tblk_cnt;\n@@ -1600,6 +1604,8 @@ static netdev_tx_t cpsw_ndo_start_xmit(struct sk_buff *skb,\n {\n \tstruct cpsw_priv *priv = netdev_priv(ndev);\n \tstruct cpsw_common *cpsw = priv->cpsw;\n+\tint slave_no = cpsw_slave_index(cpsw, priv);\n+\tstruct phy_device *phy = cpsw->slaves[slave_no].phy;\n \tstruct cpts *cpts = cpsw->cpts;\n \tstruct netdev_queue *txq;\n \tstruct cpdma_chan *txch;\n@@ -1611,8 +1617,9 @@ static netdev_tx_t cpsw_ndo_start_xmit(struct sk_buff *skb,\n \t\treturn NET_XMIT_DROP;\n \t}\n \n-\tif (skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP &&\n-\t    cpts_is_tx_enabled(cpts) && cpts_can_timestamp(cpts, skb))\n+\tif ((skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP) &&\n+\t    cpts_can_timestamp(cpts, skb) &&\n+\t    (cpts_is_tx_enabled(cpts) || HAS_PHY_TXTSTAMP(phy)))\n \t\tskb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;\n \n \tq_idx = skb_get_queue_mapping(skb);\n@@ -1810,20 +1817,26 @@ static int cpsw_ndo_ioctl(struct net_device *dev, struct ifreq *req, int cmd)\n \tstruct cpsw_priv *priv = netdev_priv(dev);\n \tstruct cpsw_common *cpsw = priv->cpsw;\n \tint slave_no = cpsw_slave_index(cpsw, priv);\n+\tstruct phy_device *phy = cpsw->slaves[slave_no].phy;\n+\n \n \tif (!netif_running(dev))\n \t\treturn -EINVAL;\n \n \tswitch (cmd) {\n \tcase SIOCSHWTSTAMP:\n+\t\tif (HAS_PHY_TSTAMP(phy))\n+\t\t\tbreak;\n \t\treturn cpsw_hwtstamp_set(dev, req);\n \tcase SIOCGHWTSTAMP:\n+\t\tif (HAS_PHY_TSTAMP(phy))\n+\t\t\tbreak;\n \t\treturn cpsw_hwtstamp_get(dev, req);\n \t}\n \n-\tif (!cpsw->slaves[slave_no].phy)\n+\tif (!phy)\n \t\treturn -EOPNOTSUPP;\n-\treturn phy_mii_ioctl(cpsw->slaves[slave_no].phy, req, cmd);\n+\treturn phy_mii_ioctl(phy, req, cmd);\n }\n \n static void cpsw_ndo_tx_timeout(struct net_device *ndev)\ndiff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c\nindex c2121d2..f257f54 100644\n--- a/drivers/net/ethernet/ti/cpts.c\n+++ b/drivers/net/ethernet/ti/cpts.c\n@@ -421,6 +421,8 @@ void cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb)\n \tu64 ns;\n \tstruct skb_shared_hwtstamps ssh;\n \n+\tif (!cpts->rx_enable)\n+\t\treturn;\n \tif (!(skb_shinfo(skb)->tx_flags & SKBTX_IN_PROGRESS))\n \t\treturn;\n \tns = cpts_find_ts(cpts, skb, CPTS_EV_TX);","headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=ti.com header.i=@ti.com header.b=\"ObH4gS0W\";\n\tdkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xn0B4082Mz9s7c\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed,  6 Sep 2017 07:25:32 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752824AbdIEVZa (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 5 Sep 2017 17:25:30 -0400","from fllnx210.ext.ti.com ([198.47.19.17]:21146 \"EHLO\n\tfllnx210.ext.ti.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752625AbdIEVZ2 (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 5 Sep 2017 17:25:28 -0400","from dlelxv90.itg.ti.com ([172.17.2.17])\n\tby fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v85LPMLE028647; \n\tTue, 5 Sep 2017 16:25:22 -0500","from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113])\n\tby dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v85LPMeS011051; \n\tTue, 5 Sep 2017 16:25:22 -0500","from [128.247.59.147] (128.247.59.147) by DLEE70.ent.ti.com\n\t(157.170.170.113) with Microsoft SMTP Server id 14.3.294.0;\n\tTue, 5 Sep 2017 16:25:22 -0500"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com;\n\ts=ti-com-17Q1; t=1504646722;\n\tbh=fXZFU/Ru/iqPr6E7SCgMraL2rACSl4nkdgQvt51Hh6M=;\n\th=Subject:To:CC:References:From:Date:In-Reply-To;\n\tb=ObH4gS0WEGqHKTgJTnlPpwmUxKiQ1Sr1RzW1EyMeHar/Jj/cqeUBySqUd6FZ1FJ/J\n\t56JJ0iIC5JhZJAjzHVW+vK/jVdD6RHo4hE8S7Ng57RCLLs26NVcHwRPmCx2WMh6pqa\n\twI2J6VDOhoZa/hMsY3lMzeE/1ThL/U4GeDs8cBG4=","Subject":"Re: [PATCH net-next] net: cpsw: Don't handle SIOC[GS]HWTSTAMP when\n\tCPTS is disabled","To":"Richard Cochran <richardcochran@gmail.com>,\n\tDavid Miller <davem@davemloft.net>","CC":"<stefan.sorensen@spectralink.com>, <netdev@vger.kernel.org>,\n\t<linux-omap@vger.kernel.org>","References":"<20170830065055.419-1-stefan.sorensen@spectralink.com>\n\t<20170830.144745.947488279115809130.davem@davemloft.net>\n\t<20170831074807.3dbbt6qhqxdquipa@localhost>","From":"Grygorii Strashko <grygorii.strashko@ti.com>","Message-ID":"<c470bbf2-fadf-88ba-f944-f0b373d211ad@ti.com>","Date":"Tue, 5 Sep 2017 16:25:22 -0500","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<20170831074807.3dbbt6qhqxdquipa@localhost>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","X-Originating-IP":"[128.247.59.147]","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"}},{"id":1763933,"web_url":"http://patchwork.ozlabs.org/comment/1763933/","msgid":"<20170906085901.qauya3ogfewjcyv3@localhost>","list_archive_url":null,"date":"2017-09-06T08:59:01","subject":"Re: [PATCH net-next] net: cpsw: Don't handle SIOC[GS]HWTSTAMP when\n\tCPTS is disabled","submitter":{"id":4009,"url":"http://patchwork.ozlabs.org/api/people/4009/","name":"Richard Cochran","email":"richardcochran@gmail.com"},"content":"On Tue, Sep 05, 2017 at 04:25:22PM -0500, Grygorii Strashko wrote:\n> I'd like to clarify one thing here - what is the preferable time-stamping\n> device: PHY over MAC, or MAC over PHY? \n> my understanding it's PHY and ethtool_get_ts_info() seems already implemented this way.\n\nWe simply do not have a way to support MAC and PHY time stamping and\nPTP Hardware Clocks at the same time.  Sure, it must be somehow\npossible, but that would involve extending SO_TIMESTAMPING yet again,\nand this is not worth the effort, IMHO.\n\nThere is exactly one PHY on the market that supports time stamping,\nand yes, people who design their boards with it generally want to use\nit.  They have to enable CONFIG_NETWORK_PHY_TIMESTAMPING and disable\nMAC time stamping.\n\nThanks,\nRichard","headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"icC7x1ZI\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xnHZR3PGHz9sBZ\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed,  6 Sep 2017 18:59:11 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752289AbdIFI7J (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 6 Sep 2017 04:59:09 -0400","from mail-wr0-f194.google.com ([209.85.128.194]:35530 \"EHLO\n\tmail-wr0-f194.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752066AbdIFI7G (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 6 Sep 2017 04:59:06 -0400","by mail-wr0-f194.google.com with SMTP id a47so2782962wra.2;\n\tWed, 06 Sep 2017 01:59:05 -0700 (PDT)","from localhost (213-225-35-115.nat.highway.a1.net.\n\t[213.225.35.115]) by smtp.gmail.com with ESMTPSA id\n\tj15sm1629441wre.87.2017.09.06.01.59.03\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 06 Sep 2017 01:59:04 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to:user-agent;\n\tbh=kKmfF11fL2c6x9V7Ll3C+bcdk2NhLKZ1ScJZDC/DW4c=;\n\tb=icC7x1ZIlvnNrZFEA2guyqHlemeTkQxM0CLuI0JKxS6mkLY2KruEkwwKUSYiXvHRE4\n\tTGe+WEpyUnO1F4r4Qqa5Oz1pMYrLG2kxRGPFpI/djyhtpWw88uTKBZhRjjZdiQ0m+qjL\n\twWRxxOok+z35ZvcBAzRImHh0K9Opq1E07Mmx0PWYb+Je394Rq34jn0fThHoI9YPup8wk\n\tFRCYst824wUtwukYHsK9C949EEETlGcbTR3xX5NbRkoi6hPLRBkOZR8ueG2XIrO/FR/Q\n\tBf4Y4SVJxDjL3VO2tUlC3Bq1LLTfdhXEqzjAyOvaXD6U6zmgpaM0NcabuN2m39xaVyRC\n\t+crw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=kKmfF11fL2c6x9V7Ll3C+bcdk2NhLKZ1ScJZDC/DW4c=;\n\tb=qRV58/Ff0xox/HHeJWAv5aVdSIVlhX1xFPapc5IEyVOGYc+QGlRAwbZ1XrHXwoxynZ\n\t77dWoplXai+Gn59+jXdLNjvEA9frzHeUXtwQ73pIvUX5KijtwXvlv48FldXSwJq9mCPb\n\tCf2FN8vGf5xmpTdrJzeGCDjK4zqvnNBeBLqhVXvzEHQ0OpG1e1BPBD2YPD+JI5O+fIJv\n\tavvvr+n9mR6AFEoSYjRcmfhtcYqqKcMFBzcBBfO1rwnfVTnIbdsPPdct4fDkzDEzRYWz\n\tgQWMLleyAOWpwU1PqD178ZqLi2QEZMUmygbtoOHe8Xnk4TOCrx6RPWfFvwSIiwfQm4z7\n\tFOCA==","X-Gm-Message-State":"AHPjjUh3SaL9bUQyGJ5FpffG4HpnuMhLOGbyuuoK5796BYy7olwdOj+6\n\tjTvo/LhAbsq3Zw==","X-Google-Smtp-Source":"ADKCNb6JS/9qaaoj6n5+G8IATepeJMk1V9djLN5F6h0GVK1f3vXlsIan2lz6y0yiJyKjtoKFuu2DGg==","X-Received":"by 10.223.195.108 with SMTP id e41mr1260404wrg.51.1504688345133; \n\tWed, 06 Sep 2017 01:59:05 -0700 (PDT)","Date":"Wed, 6 Sep 2017 10:59:01 +0200","From":"Richard Cochran <richardcochran@gmail.com>","To":"Grygorii Strashko <grygorii.strashko@ti.com>","Cc":"David Miller <davem@davemloft.net>,\n\tstefan.sorensen@spectralink.com, netdev@vger.kernel.org,\n\tlinux-omap@vger.kernel.org","Subject":"Re: [PATCH net-next] net: cpsw: Don't handle SIOC[GS]HWTSTAMP when\n\tCPTS is disabled","Message-ID":"<20170906085901.qauya3ogfewjcyv3@localhost>","References":"<20170830065055.419-1-stefan.sorensen@spectralink.com>\n\t<20170830.144745.947488279115809130.davem@davemloft.net>\n\t<20170831074807.3dbbt6qhqxdquipa@localhost>\n\t<c470bbf2-fadf-88ba-f944-f0b373d211ad@ti.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<c470bbf2-fadf-88ba-f944-f0b373d211ad@ti.com>","User-Agent":"NeoMutt/20170113 (1.7.2)","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"}}]