[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110530125822.GD3409@pengutronix.de>
Date: Mon, 30 May 2011 14:58:22 +0200
From: Wolfram Sang <w.sang@...gutronix.de>
To: Daniel J Blueman <daniel.blueman@...il.com>
Cc: Chris Ball <cjb@...top.org>, linux-mmc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sdhci: fix undue iomem warning
Hi Daniel,
> diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
> index 936bbca..ae948b0 100644
> --- a/drivers/mmc/host/sdhci-pci.c
> +++ b/drivers/mmc/host/sdhci-pci.c
> @@ -918,8 +918,9 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(
> return ERR_PTR(-ENODEV);
> }
>
> - if (pci_resource_len(pdev, bar) != 0x100) {
> - dev_err(&pdev->dev, "Invalid iomem size. You may "
> + int len = pci_resource_len(pdev, bar);
> + if (len != 0x100 && len != 0x200) {
Hmmm,
a) SDHC Specs (even v3) only mention 0x100, so this _is_ the standard.
Do the new cards (which ones?) have anything located in the extra
area?
b) your approach won't scale very well
so, I'd say it is better to keep the old way.
> + dev_warn(&pdev->dev, "Invalid iomem size. You may "
> "experience problems.\n");
I second turning the message into a warning, though.
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Download attachment "signature.asc" of type "application/pgp-signature" (199 bytes)
Powered by blists - more mailing lists