Re: [PATCH net-next] net: cpsw: Don't handle SIOC[GS]HWTSTAMP when CPTS is disabled
From: David Miller <davem@davemloft.net>
Date: 2017-08-30 21:47:46
Also in:
linux-omap
From: David Miller <davem@davemloft.net>
Date: 2017-08-30 21:47:46
Also in:
linux-omap
From: Stefan Sørensen <redacted> Date: Wed, 30 Aug 2017 08:50:55 +0200
There is no reason to handle SIOC[GS]HWTSTAMP and return -EOPNOTSUPP when CPTS is disabled, so just pass them on to the phy. This will allow PTP timestamping on a capable phy by disabling CPTS. Signed-off-by: Stefan Sørensen <redacted>
It should not be required to disable a Kconfig option just to get PHY timestamping to work properly. Rather, if the CPTS code returns -EOPNOTSUPP we should try to fallthrough to the PHY library based methods. Thanks.