mmc: sdhci-pci: fix 'Invalid iomem size' error message condition
Adrian Hunter
maintainerPATCH 1/1 mmc: sdhci-pci: fix 'Invalid iomem size' error message condition
The SDHCI standard defines a 256 byte register set but a device that specifies a larger iomem region is not an error. Alter the message condition accordingly.
Signed-off-by Adrian Hunter <[email protected]>
--- drivers/mmc/host/sdhci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/sdhci-pci.c +1 -1
@@ -1196,7 +1196,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" ); }
Signature · 1 line
1.7.11.4
Hi,
Quoted 14 lines · Adrian Hunter
The SDHCI standard defines a 256 byte register set but a device that specifies a larger iomem region is not an error. Alter the message condition accordingly.
Signed-off-by Adrian Hunter <[email protected]>--- drivers/mmc/host/sdhci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/sdhci-pci.c +0
-0
drivers/mmc/host/sdhci-pci.c static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot( · line 1202
Quoted 8 lines
drivers/mmc/host/sdhci-pci.c +1
-1@@ -1196,7 +1196,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" ); }
Thanks, pushed to mmc-next for 3.8.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child