linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: core: Quieten "could not set regulator OCR" error.
@ 2012-08-27 23:33 Chris Ball
  2012-08-29 12:09 ` Ulf Hansson
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Ball @ 2012-08-27 23:33 UTC (permalink / raw)
  To: linux-mmc

Some distributions build with CONFIG_REGULATOR_DUMMY=y -- this makes
regulator setup succeed harmlessly, but then trying to set the voltage
on the dummy regulator will fail as below:

[ 6.413866] sdhci-pci 0000:03:00.0: SDHCI controller found [1180:e822]
(rev 0)
[ 6.414081] _regulator_get: 0000:03:00.0 supply vmmc not found, using
dummy regulator
[ 6.415252] mmc0: SDHCI controller on PCI [0000:03:00.0] using DMA
[ 6.415294] sdhci-pci 0000:03:00.0: could not set regulator OCR (-22)
[ 6.444241] sdhci-pci 0000:03:00.0: could not set regulator OCR (-22)
[ 6.473648] sdhci-pci 0000:03:00.0: could not set regulator OCR (-22)
[..]

Since this isn't an error in this case, move the error to pr_debug().
Reference: https://bugs.archlinux.org/task/29008

Signed-off-by: Chris Ball <cjb@laptop.org>
---
 drivers/mmc/core/core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 835c9f0..30d9357 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1017,8 +1017,9 @@ int mmc_regulator_set_ocr(struct mmc_host *mmc,
 	}
 
 	if (result)
-		dev_err(mmc_dev(mmc),
-			"could not set regulator OCR (%d)\n", result);
+		pr_debug("%s: could not set regulator OCR (%d)\n",
+			 mmc_hostname(mmc), result);
+
 	return result;
 }
 EXPORT_SYMBOL_GPL(mmc_regulator_set_ocr);
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-30 17:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-27 23:33 [PATCH] mmc: core: Quieten "could not set regulator OCR" error Chris Ball
2012-08-29 12:09 ` Ulf Hansson
2012-08-29 13:08   ` Chris Ball
2012-08-30 17:12     ` Mark Brown
2012-08-30 17:25       ` Chris Ball
2012-08-30 17:30         ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).