Re: [PATCH] greybus: gb-beagleplay: Select CRC32

From: Ayush Singh

Date: Tue Dec 01 2026 - 04:40:59 EST


Tomasz Unger <tomasz.unger@xxxxxxxx> writes:

> The firmware upload support calls crc32() in cc1352_prepare(), but
> GREYBUS_BEAGLEPLAY does not select CRC32. When nothing else selects it,
> the kernel fails to link:
>
> ld: drivers/greybus/gb-beagleplay.o: in function `cc1352_prepare':
> gb-beagleplay.c:(.text.unlikely+0x34b): undefined reference to `crc32_le'
>
> This was reproduced with an x86 allnoconfig with BLOCK disabled and
> GPIOLIB, SERIAL_DEV_BUS and the driver enabled. In most configurations
> CRC32 is selected elsewhere (OF_FLATTREE on arm64, EFI_PARTITION with
> BLOCK), which hides the problem.
>
> Select CRC32, as the driver already does for CRC_CCITT.
>
> Fixes: 0cf7befa3ea2 ("greybus: gb-beagleplay: Add firmware upload API")
> Signed-off-by: Tomasz Unger <tomasz.unger@xxxxxxxx>
> ---
> An AI coding assistant (Claude) helped find the bug and draft the fix.
> ---
> drivers/greybus/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/greybus/Kconfig b/drivers/greybus/Kconfig
> index c3f056d28b01..9c08964dd8be 100644
> --- a/drivers/greybus/Kconfig
> +++ b/drivers/greybus/Kconfig
> @@ -20,6 +20,7 @@ if GREYBUS
> config GREYBUS_BEAGLEPLAY
> tristate "Greybus BeaglePlay driver"
> depends on SERIAL_DEV_BUS
> + select CRC32
> select CRC_CCITT
> select FW_LOADER
> select FW_UPLOAD
>
> ---
> base-commit: 4f618bb81ea5403c0922bda75411c4669b8a4641
> change-id: 20261130-gb-beagleplay-select-crc32-f668391304f6
>
> Best regards,
> --
> Tomasz Unger <tomasz.unger@xxxxxxxx>
>

Reviewed-by: Ayush Singh <ayush@xxxxxxxxxxxxxxx>

Best Regards,
Ayush Singh

--
BeagleBoard.org Foundation
https://www.beagleboard.org