stmmac: Correctly report PTP capabilities.
authorPhil Reid <preid@electromag.com.au>
Fri, 30 Oct 2015 08:43:55 +0000 (16:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Nov 2015 22:05:43 +0000 (17:05 -0500)
commite6dbe1eb2db0d7a14991c06278dd3030c45fb825
tree06a2fcc215a59301eb5840f7df9cf93a5ee1de4e
parentfc2a263bb0604642703cda6cba5ac1ffb1935440
stmmac: Correctly report PTP capabilities.

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>
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c