Re: [PATCH] net: ti: icssg-prueth: add PTP dependency

From: Jiri Pirko
Date: Wed Sep 13 2023 - 03:59:03 EST


Tue, Sep 12, 2023 at 08:54:51PM CEST, arnd@xxxxxxxxxx wrote:
>From: Arnd Bergmann <arnd@xxxxxxxx>
>
>The driver can now use PTP if enabled but fails to link built-in
>if PTP is a loadable module:
>
>aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx':
>icss_iep.c:(.text+0x200): undefined reference to `ptp_clock_index'
>
>Add the usual dependency to avoid this.
>
>Fixes: 186734c158865 ("net: ti: icssg-prueth: add packet timestamping and ptp support")
>Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>