]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ead67cfbd181cb3a0d297748e80168bf1984318
tree57d16b10cc704cb6ad3632962205f810aa1c683d
parent5ec5c7b252e54b5f7c7fc8edecfa15281ea1dc5a
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