public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci-pci: shut up BAR size warning
@ 2011-11-09 20:21 Manuel Lauss
  2011-11-12  3:20 ` Chris Ball
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Lauss @ 2011-11-09 20:21 UTC (permalink / raw)
  To: linux-mmc; +Cc: Manuel Lauss

kernel complains about invalid SDHCI iomem size on boot.  The BAR on my
O2-Micro controller is 512 bytes large, twice the size SDHCI-PCI needs.
This patch changes the warning to only appear when the BAR is smaller
than expected.

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
---
 drivers/mmc/host/sdhci-pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index d833d9c..0ee5c07 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -1199,7 +1199,7 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(
 		return ERR_PTR(-ENODEV);
 	}
 
-	if (pci_resource_len(pdev, bar) != 0x100) {
+	if (pci_resource_len(pdev, bar) < 0x100) {
 		dev_err(&pdev->dev, "Invalid iomem size. You may "
 			"experience problems.\n");
 	}
-- 
1.7.7.2


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

end of thread, other threads:[~2011-11-12  3:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09 20:21 [PATCH] mmc: sdhci-pci: shut up BAR size warning Manuel Lauss
2011-11-12  3:20 ` Chris Ball

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox