net: mscc: ocelot: fix timestamp info if ptp clock does not work
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 20 Apr 2020 02:46:46 +0000 (10:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:38:33 +0000 (15:38 -0700)
commitd2b09a8e7bcbfa47e7161b20d6387ac968834c21
tree14ee7bfce1fec21e161af940ef1c99d0db83f6d9
parent2b49d128b3f8d8fff8972afcbc603802e5e40c6a
net: mscc: ocelot: fix timestamp info if ptp clock does not work

The timestamp info should be only software timestamp capabilities
if ptp clock does not work.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c