summaryrefslogtreecommitdiff
path: root/lib/chromeos/os_storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chromeos/os_storage.c')
-rw-r--r--lib/chromeos/os_storage.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/chromeos/os_storage.c b/lib/chromeos/os_storage.c
index 1bbd1cf8ac8..c410cd05949 100644
--- a/lib/chromeos/os_storage.c
+++ b/lib/chromeos/os_storage.c
@@ -203,7 +203,13 @@ int initialize_mmc_device(int dev)
int is_mmc_storage_present(int mmc_device_number)
{
- return find_mmc_device(mmc_device_number) != NULL;
+ /*
+ * mmc_init tests the SD card's version and tries its operating
+ * condition. It should be the minimally required code for probing
+ * an SD card.
+ */
+ struct mmc *mmc = find_mmc_device(mmc_device_number);
+ return mmc != NULL && mmc_init(mmc) == 0;
}
int is_usb_storage_present(void)