]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
mmc: mmc_test: Only warn about not waiting for busy if it's supported
authorPawel Moll <pawel.moll@arm.com>
Sun, 6 Feb 2011 20:06:24 +0000 (15:06 -0500)
committerChris Ball <cjb@laptop.org>
Tue, 15 Mar 2011 17:48:28 +0000 (13:48 -0400)
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: Pawel Moll <pawel.moll@arm.com>
Reviewed-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/mmc_test.c

index 21adc27f413281ec5e6d6f0e699a1a12f3b4ce9f..0131c6c0d8f6f0e1851cef08a7266e1888444cff 100644 (file)
@@ -226,9 +226,10 @@ static int mmc_test_wait_busy(struct mmc_test_card *test)
 
                if (!busy && mmc_test_busy(&cmd)) {
                        busy = 1;
-                       printk(KERN_INFO "%s: Warning: Host did not "
-                               "wait for busy state to end.\n",
-                               mmc_hostname(test->card->host));
+                       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));
                }
        } while (mmc_test_busy(&cmd));