Skip to content

Commit 078e075

Browse files
Niklas Söderlundkuba-moo
authored andcommitted
net: ethernet: renesas: rcar_gen4_ptp: Depend on PTP_1588_CLOCK
When breaking out the Gen4 gPTP support to its own module the dependency on the PTP_1588_CLOCK framework was left as optional and only stated for the driver using the module. This leads to issues when doing COMPILE_TEST of RENESAS_GEN4_PTP separately and PTP_1588_CLOCK is built as a module and the other as a built-in. Add an explicit depend on PTP_1588_CLOCK. While at it remove the optional support for PTP_1588_CLOCK from RENESAS_ETHER_SWITCH as the driver unconditionally calls the Gen4 gPTP module and thus also requires the PTP_1588_CLOCK framework. Reported-by: Arnd Bergmann <[email protected]> Fixes: 8c1c662 ("net: ethernet: renesas: rcar_gen4_ptp: Break out to module") Signed-off-by: Niklas Söderlund <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a108593 commit 078e075

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/renesas

1 file changed

+2
-1
lines changed

drivers/net/ethernet/renesas/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ config RAVB
4040
config RENESAS_ETHER_SWITCH
4141
tristate "Renesas Ethernet Switch support"
4242
depends on ARCH_RENESAS || COMPILE_TEST
43-
depends on PTP_1588_CLOCK_OPTIONAL
43+
depends on PTP_1588_CLOCK
4444
select CRC32
4545
select MII
4646
select PHYLINK
@@ -50,6 +50,7 @@ config RENESAS_ETHER_SWITCH
5050

5151
config RENESAS_GEN4_PTP
5252
tristate "Renesas R-Car Gen4 gPTP support" if COMPILE_TEST
53+
depends on PTP_1588_CLOCK
5354
select CRC32
5455
select MII
5556
select PHYLIB

0 commit comments

Comments
 (0)