Message ID | 4da432a8-8f6f-3544-192b-640f8c4eb0b7@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
[...] >> I'm guessing that the above means the eMMC does have an interrupt, >> IRQ0? > > Yes. > > Ulf, here is the fix: > > From: Adrian Hunter <adrian.hunter@intel.com> > Date: Wed, 21 Mar 2018 11:34:44 +0200 > Subject: [PATCH] mmc: sdhci-acpi: Fix IRQ 0 > > Zero is a valid IRQ number and is being used on some CHT tablets. Stop > treating it as an error. > > Reported-by: Luke Ross <luke@lukeross.name> > Fixes: 1b7ba57ecc86 ("mmc: sdhci-acpi: Handle return value of platform_get_irq") > Cc: Arvind Yadav <arvind.yadav.cs@gmail.com> > Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> > Cc: stable@vger.kernel.org Thanks, applied for fixes! Kind regards Uffe > --- > drivers/mmc/host/sdhci-acpi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c > index 4065da58789d..32321bd596d8 100644 > --- a/drivers/mmc/host/sdhci-acpi.c > +++ b/drivers/mmc/host/sdhci-acpi.c > @@ -680,7 +680,7 @@ static int sdhci_acpi_probe(struct platform_device *pdev) > host->hw_name = "ACPI"; > host->ops = &sdhci_acpi_ops_dflt; > host->irq = platform_get_irq(pdev, 0); > - if (host->irq <= 0) { > + if (host->irq < 0) { > err = -EINVAL; > goto err_free; > } > -- > 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, On Wed, 2018-03-21 at 11:49 +0200, Adrian Hunter wrote: > > Ulf, here is the fix: > > From: Adrian Hunter <adrian.hunter@intel.com> > Date: Wed, 21 Mar 2018 11:34:44 +0200 > Subject: [PATCH] mmc: sdhci-acpi: Fix IRQ 0 > > Zero is a valid IRQ number and is being used on some CHT tablets. > Stop > treating it as an error. Thank you for getting this sorted! It looks good; I'll give it a try out on the tablet in the next day or two to be fully sure. With regards, Luke -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c index 4065da58789d..32321bd596d8 100644 --- a/drivers/mmc/host/sdhci-acpi.c +++ b/drivers/mmc/host/sdhci-acpi.c @@ -680,7 +680,7 @@ static int sdhci_acpi_probe(struct platform_device *pdev) host->hw_name = "ACPI"; host->ops = &sdhci_acpi_ops_dflt; host->irq = platform_get_irq(pdev, 0); - if (host->irq <= 0) { + if (host->irq < 0) { err = -EINVAL; goto err_free; }