From: Viresh Kumar <viresh.kumar@linaro.org>
To: Sergey Shtylyov <s.shtylyov@omp.ru>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
linux-mmc@vger.kernel.org,
Adrian Hunter <adrian.hunter@intel.com>,
Viresh Kumar <vireshk@kernel.org>
Subject: Re: [PATCH RFC 10/13] mmc: sdhci-spear: fix deferred probing
Date: Mon, 27 Dec 2021 09:46:02 +0530 [thread overview]
Message-ID: <20211227041602.3migpqppbehvsgld@vireshk-i7> (raw)
In-Reply-To: <20211223171202.8224-11-s.shtylyov@omp.ru>
On 23-12-21, 20:11, Sergey Shtylyov wrote:
> The driver overrides the error codes and IRQ0 returned by platform_get_irq()
> to -EINVAL, so if it returns -EPROBE_DEFER, the driver will fail the probe
> permanently instead of the deferred probing. Switch to propagating the error
> codes upstream. IRQ0 is no longer returned by platform_get_irq(), so we now
> can safely ignore it...
>
> Fixes: 682798a596a6 ("mmc: sdhci-spear: Handle return value of platform_get_irq")
> Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
> ---
> drivers/mmc/host/sdhci-spear.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c
> index d463e2fd5b1a..c79035727b20 100644
> --- a/drivers/mmc/host/sdhci-spear.c
> +++ b/drivers/mmc/host/sdhci-spear.c
> @@ -65,8 +65,8 @@ static int sdhci_probe(struct platform_device *pdev)
> host->hw_name = "sdhci";
> host->ops = &sdhci_pltfm_ops;
> host->irq = platform_get_irq(pdev, 0);
> - if (host->irq <= 0) {
> - ret = -EINVAL;
> + if (host->irq < 0) {
> + ret = host->irq;
> goto err_host;
> }
> host->quirks = SDHCI_QUIRK_BROKEN_ADMA;
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
viresh
next prev parent reply other threads:[~2021-12-27 4:16 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-23 17:11 [PATCH RFC 0/13] Fix deferred probing in the MMC/SD drivers Sergey Shtylyov
2021-12-23 17:11 ` [PATCH RFC 01/13] mmc: bcm2835: fix deferred probing Sergey Shtylyov
2021-12-24 22:08 ` Florian Fainelli
2021-12-23 17:11 ` [PATCH RFC 02/13] mmc: meson-gx: " Sergey Shtylyov
2021-12-24 17:35 ` Martin Blumenstingl
2021-12-24 17:37 ` Sergey Shtylyov
2023-04-01 6:38 ` Christian Hewitt
2023-04-02 17:58 ` Sergey Shtylyov
2023-06-08 20:07 ` Sergey Shtylyov
2021-12-23 17:11 ` [PATCH RFC 03/13] mmc: mtk-sd: " Sergey Shtylyov
2022-01-04 11:00 ` AngeloGioacchino Del Regno
2021-12-23 17:11 ` [PATCH RFC 04/13] mmc: mvsdio: " Sergey Shtylyov
2021-12-23 18:48 ` Nicolas Pitre
2021-12-23 17:11 ` [PATCH RFC 05/13] mmc: omap: " Sergey Shtylyov
2021-12-23 17:11 ` [PATCH RFC 06/13] mmc: omap_hsmmc: " Sergey Shtylyov
2021-12-23 17:11 ` [PATCH RFC 07/13] mmc: owl: " Sergey Shtylyov
2021-12-23 17:32 ` Manivannan Sadhasivam
2021-12-23 17:11 ` [PATCH RFC 08/13] mmc: s3mci: " Sergey Shtylyov
2021-12-23 17:11 ` [PATCH RFC 09/13] mmc: sdhci-acpi: " Sergey Shtylyov
2022-01-03 8:25 ` Adrian Hunter
2021-12-23 17:11 ` [PATCH RFC 10/13] mmc: sdhci-spear: " Sergey Shtylyov
2021-12-27 4:16 ` Viresh Kumar [this message]
2022-01-03 8:30 ` Adrian Hunter
2021-12-23 17:12 ` [PATCH RFC 11/13] mmc: sh_mmcif: " Sergey Shtylyov
2021-12-23 17:12 ` [PATCH RFC 12/13] mmc: sunxi: " Sergey Shtylyov
2021-12-23 17:12 ` [PATCH RFC 13/13] mmc: usdhi60rol0: " Sergey Shtylyov
2021-12-27 10:45 ` Jesper Nilsson
2021-12-28 16:40 ` [PATCH RFC 0/13] Fix deferred probing in the MMC/SD drivers Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211227041602.3migpqppbehvsgld@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=adrian.hunter@intel.com \
--cc=linux-mmc@vger.kernel.org \
--cc=s.shtylyov@omp.ru \
--cc=ulf.hansson@linaro.org \
--cc=vireshk@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox