From patchwork Mon Jan 17 17:00:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Moll X-Patchwork-Id: 484111 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0HH0Uof025038 for ; Mon, 17 Jan 2011 17:00:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753332Ab1AQRAl (ORCPT ); Mon, 17 Jan 2011 12:00:41 -0500 Received: from service87.mimecast.com ([94.185.240.25]:51270 "HELO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751955Ab1AQRAk (ORCPT ); Mon, 17 Jan 2011 12:00:40 -0500 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Mon, 17 Jan 2011 17:00:36 +0000 Received: from localhost.localdomain ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 17 Jan 2011 17:00:35 +0000 From: Pawel Moll To: linux-mmc@vger.kernel.org Subject: [PATCH] mmc_test: Don't warn about not waiting for busy if controller can't do this Date: Mon, 17 Jan 2011 17:00:31 +0000 Message-Id: <1295283631-7965-1-git-send-email-pawel.moll@arm.com> X-Mailer: git-send-email 1.6.3.3 X-OriginalArrivalTime: 17 Jan 2011 17:00:35.0403 (UTC) FILETIME=[0EF5B9B0:01CBB668] X-MC-Unique: 111011717003601801 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 17 Jan 2011 17:00:41 +0000 (UTC) X-MIME-Autoconverted: from quoted-printable to 8bit by demeter1.kernel.org id p0HH0Uof025038 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));