* Re: [PATCH] greybus: gb-beagleplay: Select CRC32
2026-11-29 23:28 ` [PATCH] greybus: gb-beagleplay: Select CRC32 Tomasz Unger
@ 2026-12-01 9:17 ` Johan Hovold
2026-12-01 9:40 ` Ayush Singh
1 sibling, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2026-12-01 9:17 UTC (permalink / raw)
To: Tomasz Unger
Cc: Ayush Singh, Alex Elder, Greg Kroah-Hartman, Ayush Singh,
greybus-dev, linux-kernel
On Mon, Nov 30, 2026 at 12:28:58AM +0100, Tomasz Unger wrote:
> 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@yahoo.pl>
Acked-by: Johan Hovold <johan@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] greybus: gb-beagleplay: Select CRC32
2026-11-29 23:28 ` [PATCH] greybus: gb-beagleplay: Select CRC32 Tomasz Unger
2026-12-01 9:17 ` Johan Hovold
@ 2026-12-01 9:40 ` Ayush Singh
1 sibling, 0 replies; 3+ messages in thread
From: Ayush Singh @ 2026-12-01 9:40 UTC (permalink / raw)
To: Tomasz Unger
Cc: Ayush Singh, Johan Hovold, Alex Elder, Greg Kroah-Hartman,
Ayush Singh, greybus-dev, linux-kernel
Tomasz Unger <tomasz.unger@yahoo.pl> 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@yahoo.pl>
> ---
> 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@yahoo.pl>
>
Reviewed-by: Ayush Singh <ayush@beagleboard.org>
Best Regards,
Ayush Singh
--
BeagleBoard.org Foundation
https://www.beagleboard.org
^ permalink raw reply [flat|nested] 3+ messages in thread