All of
 help / color / mirror / Atom feed
From: Sergey Shtylyov <>
To: Avri Altman <>,
	"James E.J. Bottomley" <>,
	"Martin K. Petersen" <>,
Subject: [PATCH] scsi: ufshcd-pltfrm: fix deferred probing
Date: Mon, 29 Mar 2021 23:50:58 +0300	[thread overview]
Message-ID: <> (raw)

The driver overrides the error codes returned by platform_get_irq() to
-ENODEV, so if it returns -EPROBE_DEFER, the driver would fail the probe
permanently instead of the deferred probing.  Propagate the error code
upstream, as it should have been done from the start...

Fixes: 2953f850c3b8 ("[SCSI] ufs: use devres functions for ufshcd")
Signed-off-by: Sergey Shtylyov <>

This patch is against the 'fixes' branch of Martin Petgersen's 'scsi.git' repo.

drivers/scsi/ufs/ufshcd-pltfrm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: scsi/drivers/scsi/ufs/ufshcd-pltfrm.c
--- scsi.orig/drivers/scsi/ufs/ufshcd-pltfrm.c
+++ scsi/drivers/scsi/ufs/ufshcd-pltfrm.c
@@ -377,7 +377,7 @@ int ufshcd_pltfrm_init(struct platform_d
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0) {
-		err = -ENODEV;
+		err = irq;
 		goto out;

             reply	other threads:[~2021-03-29 20:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-29 20:50 Sergey Shtylyov [this message]
2021-03-29 21:06 ` [PATCH] scsi: ufshcd-pltfrm: fix deferred probing Bart Van Assche
2021-03-30 12:25   ` Sergey Shtylyov
2021-04-16  2:51 ` Martin K. Petersen

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \

* 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.