Re: [PATCH] net: dsa: microchip: ptp: add one more PTP dependency

From: Richard Cochran
Date: Fri Jan 27 2023 - 18:58:29 EST


On Fri, Jan 27, 2023 at 11:13:03PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> When only NET_DSA_MICROCHIP_KSZ8863_SMI is built-in but
> PTP is a loadable module, the ksz_ptp support still causes
> a link failure:
>
> ld.lld-16: error: undefined symbol: ptp_clock_index
> >>> referenced by ksz_ptp.c
> >>> drivers/net/dsa/microchip/ksz_ptp.o:(ksz_get_ts_info) in archive vmlinux.a
>
> Add the same dependency here that exists with the KSZ9477_I2C
> and KSZ_SPI drivers.
>
> Fixes: eac1ea20261e ("net: dsa: microchip: ptp: add the posix clock support")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Acked-by: Richard Cochran <richardcochran@xxxxxxxxx>