]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: mmc_spi: Select CRC16 if CRC checking is enabled
authorDaniel Palmer <daniel@thingy.jp>
Sat, 27 Dec 2025 10:59:46 +0000 (19:59 +0900)
committerPeng Fan <peng.fan@nxp.com>
Thu, 8 Jan 2026 14:05:53 +0000 (22:05 +0800)
Currently CRC16 is not selected when CRC checking is enabled and
if it wasn't enabled in the config otherwise the build will fail
because of references to crc16_ccitt() that doesn't exist.

Signed-off-by: Daniel Palmer <daniel@thingy.jp>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/Kconfig

index 4c46df0ffb8798f7571aea516397b1e9d8535fe8..39caf2eff1b723320947e954b6c2659e60074b50 100644 (file)
@@ -91,6 +91,7 @@ config MMC_SPI_CRC_ON
        bool "Support CRC for SPI-based MMC controller"
        depends on MMC_SPI
        default y
+       select CRC16
        help
          This enables CRC for SPI-based MMC controllers.