From 514d7b5b4f340076a44986865db5e77f65316e66 Mon Sep 17 00:00:00 2001 From: aviralgarg05 Date: Tue, 3 Feb 2026 14:51:05 +0530 Subject: [PATCH] arm64/bcm2711: increase sdio block size mask to 12 bits The previous mask of 0x3ff limited block sizes to 1023 bytes, causing assertions and failures for larger block sizes (e.g., 1024 bytes). The EMMC2 controller on BCM2711 is SDHCI compliant and supports 12-bit block lengths (up to 4095 bytes). This change increases the mask to 0xfff to support the full 12-bit block size range. Signed-off-by: aviralgarg05 --- arch/arm64/src/bcm2711/hardware/bcm2711_sdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/src/bcm2711/hardware/bcm2711_sdio.h b/arch/arm64/src/bcm2711/hardware/bcm2711_sdio.h index 802918e40f9bf..2e0c6e97a2055 100644 --- a/arch/arm64/src/bcm2711/hardware/bcm2711_sdio.h +++ b/arch/arm64/src/bcm2711/hardware/bcm2711_sdio.h @@ -100,7 +100,7 @@ * Controller Simplified Specification. */ -#define BCM_SDIO_BLKSIZECNT_BLKSIZE_MASK (0x3ff) +#define BCM_SDIO_BLKSIZECNT_BLKSIZE_MASK (0xfff) #define BCM_SDIO_BLKSIZECNT_BLKCNT_SHIFTLEN (16) #define BCM_SDIO_BLKSIZECNT_BLKCNT_MASK (0xffff)