]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Kconfig: micrel_phy: fix dependency issue
authorAnders Roxell <anders.roxell@linaro.org>
Mon, 14 Mar 2022 11:02:54 +0000 (12:02 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 15 Mar 2022 11:28:56 +0000 (12:28 +0100)
commita9eeb2ad185065daecf05fc881940b06d2501012
treeae132aaf3c14ee34235efdafaf9e899fd4095bd4
parent126738d778e9782e55a456e471ef1067789b7fde
net: phy: Kconfig: micrel_phy: fix dependency issue

When building driver CONFIG_MICREL_PHY the follow error shows up:

aarch64-linux-gnu-ld: drivers/net/phy/micrel.o: in function `lan8814_ts_info':
micrel.c:(.text+0x1764): undefined reference to `ptp_clock_index'
micrel.c:(.text+0x1764): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ptp_clock_index'
aarch64-linux-gnu-ld: drivers/net/phy/micrel.o: in function `lan8814_probe':
micrel.c:(.text+0x4720): undefined reference to `ptp_clock_register'
micrel.c:(.text+0x4720): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ptp_clock_register'

Rework Kconfig for MICREL_PHY to depend on 'PTP_1588_CLOCK_OPTIONAL'.
Arnd describes in a good way why its needed to add this depends in patch
f4266b35d358 ("ethernet: fix PTP_1588_CLOCK dependencies").

Reported-by: kernel test robot <lkp@intel.com>
Fixes: db523972fb2e ("net: phy: micrel: 1588 support for LAN8814 phy")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220314110254.12498-1-anders.roxell@linaro.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/Kconfig