linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Sergey Shtylyov <s.shtylyov@omp.ru>
To: Ulf Hansson <ulf.hansson@linaro.org>, <linux-mmc@vger.kernel.org>
Cc: "Andreas Färber" <afaerber@suse.de>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	linux-actions@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH RFC 07/13] mmc: owl: fix deferred probing
Date: Thu, 23 Dec 2021 20:11:56 +0300	[thread overview]
Message-ID: <20211223171202.8224-8-s.shtylyov@omp.ru> (raw)
In-Reply-To: <20211223171202.8224-1-s.shtylyov@omp.ru>

The driver overrides the error codes 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.

Fixes: ff65ffe46d28 ("mmc: Add Actions Semi Owl SoCs SD/MMC driver")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
---
 drivers/mmc/host/owl-mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/owl-mmc.c b/drivers/mmc/host/owl-mmc.c
index 3dc143b03939..679b8b0b310e 100644
--- a/drivers/mmc/host/owl-mmc.c
+++ b/drivers/mmc/host/owl-mmc.c
@@ -638,7 +638,7 @@ static int owl_mmc_probe(struct platform_device *pdev)
 
 	owl_host->irq = platform_get_irq(pdev, 0);
 	if (owl_host->irq < 0) {
-		ret = -EINVAL;
+		ret = owl_host->irq;
 		goto err_release_channel;
 	}
 
-- 
2.26.3


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2021-12-23 17:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20211223171202.8224-1-s.shtylyov@omp.ru>
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 ` Sergey Shtylyov [this message]
2021-12-23 17:32   ` [PATCH RFC 07/13] mmc: owl: " Manivannan Sadhasivam
2021-12-23 17:11 ` [PATCH RFC 08/13] mmc: s3mci: " Sergey Shtylyov
2021-12-23 17:12 ` [PATCH RFC 12/13] mmc: sunxi: " Sergey Shtylyov

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=20211223171202.8224-8-s.shtylyov@omp.ru \
    --to=s.shtylyov@omp.ru \
    --cc=afaerber@suse.de \
    --cc=linux-actions@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=ulf.hansson@linaro.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;
as well as URLs for NNTP newsgroup(s).