ionic: fix ptp support config breakage
authorShannon Nelson <snelson@pensando.io>
Tue, 11 May 2021 18:11:32 +0000 (11:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 May 2021 23:20:27 +0000 (16:20 -0700)
commitbcbda3fc616272686208f9c4d5f6dccb65360bd8
tree79cc8ac9fe29374940107e2f1f333bd5cb8c9f71
parent29249eac5225429b898f278230a6ca2baa1ae154
ionic: fix ptp support config breakage

When IONIC=y and PTP_1588_CLOCK=m were set in the .config file
the driver link failed with undefined references.

We add the dependancy
depends on PTP_1588_CLOCK || !PTP_1588_CLOCK
to clear this up.

If PTP_1588_CLOCK=m, the depends limits IONIC to =m (or disabled).
If PTP_1588_CLOCK is disabled, IONIC can be any of y/m/n.

Fixes: 61db421da31b ("ionic: link in the new hw timestamp code")
Reported-by: kernel test robot <lkp@intel.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Allen Hubbe <allenbh@pensando.io>
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/Kconfig