Hi Manuel, On Wed, Nov 09 2011, Manuel Lauss wrote: > 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@xxxxxxxxxxxxxx> > --- > 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"); > } We discussed this a few months ago -- the thread is at: http://thread.gmane.org/gmane.linux.kernel.mmc/8314 Thanks, - Chris. -- Chris Ball <cjb@xxxxxxxxxx> <http://printf.net/> One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html