Skip to content

Commit 91b2a09

Browse files
corubbapopcornmix
authored andcommitted
spi: rp2040-gpio-bridge: Add CRYPTO_HASH2 dependency
The driver uses a couple of crypto_shash_* functions, which are not always available, potentially leading to build errors: arm-linux-ld: drivers/spi/spi-rp2040-gpio-bridge.o: in function `rp2040_gbdg_block_hash': spi-rp2040-gpio-bridge.c:(.text+0x274): undefined reference to `crypto_shash_update' spi-rp2040-gpio-bridge.c:(.text+0x2c4): undefined reference to `crypto_shash_update' spi-rp2040-gpio-bridge.c:(.text+0x2e4): undefined reference to `crypto_shash_final' spi-rp2040-gpio-bridge.c:(.text+0x2ec): undefined reference to `crypto_shash_digest' spi-rp2040-gpio-bridge.c:(.text+0x2fc): undefined reference to `crypto_shash_update' arm-linux-ld: drivers/spi/spi-rp2040-gpio-bridge.o: in function `rp2040_gbdg_probe': spi-rp2040-gpio-bridge.c:(.text+0x510): undefined reference to `crypto_alloc_shash' Fixes: fe24eda ("spi: Add a driver for the RPI RP2040 GPIO bridge") Signed-off-by: Corubba Smith <corubba@gmx.de>
1 parent 06bf427 commit 91b2a09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ config SPI_RB4XX
944944

945945
config SPI_RP2040_GPIO_BRIDGE
946946
tristate "Raspberry Pi RP2040 GPIO Bridge"
947-
depends on I2C && SPI && GPIOLIB
947+
depends on I2C && SPI && GPIOLIB && CRYPTO_HASH2
948948
help
949949
Support for the Raspberry Pi RP2040 GPIO bridge.
950950

0 commit comments

Comments
 (0)