Skip to contentSkip to conversation

greybus: beagleplay: select CONFIG_CRC_CCITT

PATCH In review Arnd Bergmann 3 participants 3 messages Nov 8, 2023 Greybus

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 greybus: beagleplay: select CONFIG_CRC_CCITT

From: Arnd Bergmann <[email protected]>

Without the CRC_CCITT code, the new greybus driver fails to link:

aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `hdlc_append_tx_u8':
gb-beagleplay.c:(.text+0x158): undefined reference to `crc_ccitt'
aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `gb_tty_receive':
gb-beagleplay.c:(.text+0x5c4): undefined reference to `crc_ccitt'

---
 drivers/greybus/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/greybus/Kconfig +1 -0
index 033d31dbf3b8..ab81ceceb337 100644
@@ -20,6 +20,7 @@ if GREYBUS
 config GREYBUS_BEAGLEPLAY
 	tristate "Greybus BeaglePlay driver"
 	depends on SERIAL_DEV_BUS
+	select CRC_CCITT
 	help
 	  Select this option if you have a BeaglePlay where CC1352
 	  co-processor acts as Greybus SVC.
Signature · 1 line
2.39.2
#1 lore raw
Quoted 19 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

Without the CRC_CCITT code, the new greybus driver fails to link:

aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `hdlc_append_tx_u8':
gb-beagleplay.c:(.text+0x158): undefined reference to `crc_ccitt'
aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `gb_tty_receive':
gb-beagleplay.c:(.text+0x5c4): undefined reference to `crc_ccitt'

---
 drivers/greybus/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/greybus/Kconfig +0 -0
index 033d31dbf3b8..ab81ceceb337 100644

drivers/greybus/Kconfig if GREYBUS · line 26

Quoted 7 lines
drivers/greybus/Kconfig +1 -0
@@ -20,6 +20,7 @@ if GREYBUS
 config GREYBUS_BEAGLEPLAY
 	tristate "Greybus BeaglePlay driver"
 	depends on SERIAL_DEV_BUS
+	select CRC_CCITT
 	help
 	  Select this option if you have a BeaglePlay where CC1352
 	  co-processor acts as Greybus SVC.

Yes, same as my patch:
https://lore.kernel.org/lkml/[email protected]/

I expect that Greg just hasn't gotten around to applying new patches/fixes yet.

Signature · 1 line
~Randy
#2 lore raw
Quoted 33 lines · Randy Dunlap
Quoted 19 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

Without the CRC_CCITT code, the new greybus driver fails to link:

aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `hdlc_append_tx_u8':
gb-beagleplay.c:(.text+0x158): undefined reference to `crc_ccitt'
aarch64-linux-ld: drivers/greybus/gb-beagleplay.o: in function `gb_tty_receive':
gb-beagleplay.c:(.text+0x5c4): undefined reference to `crc_ccitt'

---
 drivers/greybus/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/greybus/Kconfig +0 -0
index 033d31dbf3b8..ab81ceceb337 100644

drivers/greybus/Kconfig if GREYBUS · line 26

Quoted 7 lines
drivers/greybus/Kconfig +1 -0
@@ -20,6 +20,7 @@ if GREYBUS
 config GREYBUS_BEAGLEPLAY
 	tristate "Greybus BeaglePlay driver"
 	depends on SERIAL_DEV_BUS
+	select CRC_CCITT
 	help
 	  Select this option if you have a BeaglePlay where CC1352
 	  co-processor acts as Greybus SVC.

Yes, same as my patch:
https://lore.kernel.org/lkml/[email protected]/

Quoted 1 line

I expect that Greg just hasn't gotten around to applying new patches/fixes yet.

Nope, waiting until -rc1 is out, sorry.

greg k-h