OSDN Git Service

net: atlantic: put ptp code under IS_REACHABLE check
authorIgor Russkikh <irusskikh@marvell.com>
Fri, 26 Jun 2020 18:40:38 +0000 (21:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jun 2020 23:32:51 +0000 (16:32 -0700)
commit4378b882bf03f2e0471b7d92fa97a7227ff3a126
tree57d16b10cc704cb6ad3632962205f810aa1c683d
parent8664240e303827de2d40f38fc397d1912309359c
net: atlantic: put ptp code under IS_REACHABLE check

A1 requires additional processing for both egress and ingress to support
PTP.
And it makes sense to get rid of this processing altogether (via ifdef),
if PTP clock is disabled globally.

This patch puts the PTP code under the corresponding IS_REACHABLE check.

Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
drivers/net/ethernet/aquantia/atlantic/aq_main.c
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
drivers/net/ethernet/aquantia/atlantic/aq_ring.c