Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54d6b44a authored by Pawel Moll's avatar Pawel Moll Committed by Chris Ball
Browse files

mmc: mmc_test: Only warn about not waiting for busy if it's supported



If the MMC host controller does not support waiting for card signaling
busy state (MMC_CAP_WAIT_WHILE_BUSY cap), there is no point in prining
the relevant warning message.

Signed-off-by: default avatarPawel Moll <pawel.moll@arm.com>
Reviewed-by: default avatarMatt Fleming <matt@console-pimps.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 732f0e31
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -226,6 +226,7 @@ static int mmc_test_wait_busy(struct mmc_test_card *test)

		if (!busy && mmc_test_busy(&cmd)) {
			busy = 1;
			if (test->card->host->caps & MMC_CAP_WAIT_WHILE_BUSY)
				printk(KERN_INFO "%s: Warning: Host did not "
					"wait for busy state to end.\n",
					mmc_hostname(test->card->host));