The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Ayush Singh <ayush@beagleboard.org>
To: Tomasz Unger <tomasz.unger@yahoo.pl>
Cc: Ayush Singh <ayushdevel1325@gmail.com>,
	 Johan Hovold <johan@kernel.org>,  Alex Elder <elder@kernel.org>,
	 Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 Ayush Singh <ayush@beagleboard.org>,
	greybus-dev@lists.linaro.org,  linux-kernel@vger.kernel.org
Subject: Re: [PATCH] greybus: gb-beagleplay: Select CRC32
Date: Tue, 01 Dec 2026 15:10:50 +0530	[thread overview]
Message-ID: <87se0hgwyl.fsf@beagleboard.org> (raw)
In-Reply-To: <20261130-gb-beagleplay-select-crc32-v1-1-20c378cab331@yahoo.pl>

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

      parent reply	other threads:[~2026-12-01  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20261130-gb-beagleplay-select-crc32-v1-1-20c378cab331.ref@yahoo.pl>
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87se0hgwyl.fsf@beagleboard.org \
    --to=ayush@beagleboard.org \
    --cc=ayushdevel1325@gmail.com \
    --cc=elder@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=greybus-dev@lists.linaro.org \
    --cc=johan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tomasz.unger@yahoo.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox