]> git.ipfire.org Git - people/ms/linux.git/commit
stmmac: Correctly report PTP capabilities.
authorPhil Reid <preid@electromag.com.au>
Fri, 30 Oct 2015 08:43:55 +0000 (16:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 18:42:53 +0000 (13:42 -0500)
commit6213fd903a25aef4cb5e3d0bddb7ee622ace3b9f
tree638450f453555797d27343fe5c8957c4d4cb0628
parentcf78f124ae2926a8e01935a71a7a1d8830ef6913
stmmac: Correctly report PTP capabilities.

[ Upstream commit e6dbe1eb2db0d7a14991c06278dd3030c45fb825 ]

priv->hwts_*_en indicate if timestamping is enabled/disabled at run
time. But  priv->dma_cap.time_stamp  and priv->dma_cap.atime_stamp
indicates HW is support for PTPv1/PTPv2.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c