Skip to contentSkip to conversation

ptp: clockmatrix: add I2C dependency

PATCH Applied Arnd Bergmann 3 participants 3 messages Dec 10, 2019 – Dec 13, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ptp: clockmatrix: add I2C dependency

Without I2C, we get a link failure:

drivers/ptp/ptp_clockmatrix.o: In function `idtcm_xfer.isra.3':
ptp_clockmatrix.c:(.text+0xcc): undefined reference to i2c_transfer' drivers/ptp/ptp_clockmatrix.o: In function idtcm_driver_init':
ptp_clockmatrix.c:(.init.text+0x14): undefined reference to i2c_register_driver' drivers/ptp/ptp_clockmatrix.o: In function idtcm_driver_exit':
ptp_clockmatrix.c:(.exit.text+0x10): undefined reference to `i2c_del_driver'

Fixes 3a6ba7dc7799 ("ptp: Add a ptp clock driver for IDT ClockMatrix.")
---
 drivers/ptp/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ptp/Kconfig +1 -1
index dc3d8ecb4231..e37797c0a85c 100644
@@ -107,7 +107,7 @@ config PTP_1588_CLOCK_KVM
 
 config PTP_1588_CLOCK_IDTCM
 	tristate "IDT CLOCKMATRIX as PTP clock"
-	depends on PTP_1588_CLOCK
+	depends on PTP_1588_CLOCK && I2C
 	default n
 	help
 	  This driver adds support for using IDT CLOCKMATRIX(TM) as a PTP
Signature · 1 line
2.20.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 25 lines · Arnd Bergmann

Without I2C, we get a link failure:

drivers/ptp/ptp_clockmatrix.o: In function `idtcm_xfer.isra.3':
ptp_clockmatrix.c:(.text+0xcc): undefined reference to i2c_transfer' drivers/ptp/ptp_clockmatrix.o: In function idtcm_driver_init':
ptp_clockmatrix.c:(.init.text+0x14): undefined reference to i2c_register_driver' drivers/ptp/ptp_clockmatrix.o: In function idtcm_driver_exit':
ptp_clockmatrix.c:(.exit.text+0x10): undefined reference to `i2c_del_driver'

Fixes 3a6ba7dc7799 ("ptp: Add a ptp clock driver for IDT ClockMatrix.")

---
drivers/ptp/Kconfig | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ptp/Kconfig +0 -0
index dc3d8ecb4231..e37797c0a85c 100644
@@ -107,7 +107,7 @@ config PTP_1588_CLOCK_KVM
 

config PTP_1588_CLOCK_IDTCM
tristate "IDT CLOCKMATRIX as PTP clock"

drivers/ptp/Kconfig +1 -1
-	depends on PTP_1588_CLOCK
+	depends on PTP_1588_CLOCK && I2C
Quoted 4 lines

default n
help
This driver adds support for using IDT CLOCKMATRIX(TM) as a PTP

Sorry, that was flagged by "kbuild test robot" Nov 25.

I was in the process of creating a patch series with other updates, but you beat me to the punch. Thank-you.

Regards,
Vincent

#2 lore raw
In reply to Arnd Bergmann
Quoted 11 lines · Arnd Bergmann

Without I2C, we get a link failure:

drivers/ptp/ptp_clockmatrix.o: In function `idtcm_xfer.isra.3':
ptp_clockmatrix.c:(.text+0xcc): undefined reference to i2c_transfer' drivers/ptp/ptp_clockmatrix.o: In function idtcm_driver_init':
ptp_clockmatrix.c:(.init.text+0x14): undefined reference to i2c_register_driver' drivers/ptp/ptp_clockmatrix.o: In function idtcm_driver_exit':
ptp_clockmatrix.c:(.exit.text+0x10): undefined reference to `i2c_del_driver'

Fixes 3a6ba7dc7799 ("ptp: Add a ptp clock driver for IDT ClockMatrix.")

Applied to net, thank you!