From e4f72d8ab1ccd500d35fa3a607d799c27719a44e Mon Sep 17 00:00:00 2001 From: CTCaer Date: Tue, 16 Jun 2026 14:58:35 +0300 Subject: [PATCH] sdmmc: CMD12 is not needed for single blocks --- bdk/storage/sdmmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bdk/storage/sdmmc.c b/bdk/storage/sdmmc.c index 6650286b..4e6b79ff 100644 --- a/bdk/storage/sdmmc.c +++ b/bdk/storage/sdmmc.c @@ -214,13 +214,12 @@ int sdmmc_storage_vendor_sandisk_report(sdmmc_storage_t *storage, void *buf) if (!sdmmc_execute_cmd(storage->sdmmc, &cmdbuf, &reqbuf, NULL)) { - sdmmc_stop_transmission(storage->sdmmc, &tmp); _sdmmc_storage_get_status(storage, &tmp, 0); return 0; } - return 1; + return _sdmmc_storage_check_cached_card_status(storage->sdmmc); } static int _sdmmc_storage_readwrite_ex(sdmmc_storage_t *storage, u32 *blkcnt_out, u32 sector, u32 num_sectors, void *buf, u32 is_write)