diff options
author | Pawel Moll <pawel.moll@arm.com> | 2011-02-06 20:06:24 (GMT) |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-03-15 17:48:28 (GMT) |
commit | 54d6b44a5f0da708e8a9e496df304e05e8748ef9 (patch) | |
tree | 204c598ca8e9cf494276aa59f28100a41a4c1a8a /drivers/mmc/card | |
parent | 732f0e31db03c84005578927ed9d4e996c3c0020 (diff) | |
download | linux-fsl-qoriq-54d6b44a5f0da708e8a9e496df304e05e8748ef9.tar.xz |
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: Pawel Moll <pawel.moll@arm.com>
Reviewed-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r-- | drivers/mmc/card/mmc_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index 21adc27..0131c6c 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c @@ -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)); |