Skip to contentSkip to conversation

Input: Apple SPI keyboard needs CRC16

PATCH Applied Arnd Bergmann 2 participants 2 messages Jul 23, 2019

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

PATCH 1/1 Input: Apple SPI keyboard needs CRC16

In some rare randconfig builds, CRC16 is disabled, which leads to a link error:

drivers/input/keyboard/applespi.o: In function `applespi_send_cmd_msg':
applespi.c:(.text+0x449f): undefined reference to crc16' drivers/input/keyboard/applespi.o: In function applespi_verify_crc':
applespi.c:(.text+0x7538): undefined reference to `crc16'

This symbol is meant to be selected for each user in Kconfig, so do that here as well.

Fixes 038b1a05eae6 ("Input: add Apple SPI keyboard and trackpad driver")
---
 drivers/input/keyboard/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/input/keyboard/Kconfig +1 -0
index 8e9c3ea9d5e7..ebb19e21473e 100644
@@ -76,6 +76,7 @@ config KEYBOARD_APPLESPI
 	depends on ACPI && EFI
 	depends on SPI
 	depends on X86 || COMPILE_TEST
+	select CRC16
 	help
 	  Say Y here if you are running Linux on any Apple MacBook8,1 or later,
 	  or any MacBookPro13,* or MacBookPro14,*.
Signature · 1 line
2.20.0
maintainer Applied
#1 lore raw
Quoted 8 lines · Arnd Bergmann

In some rare randconfig builds, CRC16 is disabled, which leads to a link error:

drivers/input/keyboard/applespi.o: In function `applespi_send_cmd_msg':
applespi.c:(.text+0x449f): undefined reference to crc16' drivers/input/keyboard/applespi.o: In function applespi_verify_crc':
applespi.c:(.text+0x7538): undefined reference to `crc16'

Quoted 5 lines

This symbol is meant to be selected for each user in Kconfig, so do that here as well.

Fixes 038b1a05eae6 ("Input: add Apple SPI keyboard and trackpad driver")

Applied, thank you.

Quoted 19 lines
---
 drivers/input/keyboard/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/input/keyboard/Kconfig +1 -0
index 8e9c3ea9d5e7..ebb19e21473e 100644
@@ -76,6 +76,7 @@ config KEYBOARD_APPLESPI
 	depends on ACPI && EFI
 	depends on SPI
 	depends on X86 || COMPILE_TEST
+	select CRC16
 	help
 	  Say Y here if you are running Linux on any Apple MacBook8,1 or later,
 	  or any MacBookPro13,* or MacBookPro14,*.
Signature · 1 line
2.20.0
Signature · 1 line
Dmitry