Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit aa83f32

Browse files
Sergey Shtylyovgregkh
authored andcommitted
scsi: ufs: ufshcd-pltfrm: Fix deferred probing
[ Upstream commit 339c9b6 ] 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... Link: https://lore.kernel.org/r/420364ca-614a-45e3-4e35-0e0653c7bc53@omprussia.ru Fixes: 2953f85 ("[SCSI] ufs: use devres functions for ufshcd") Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 4e5e089 commit aa83f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/ufs/ufshcd-pltfrm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ int ufshcd_pltfrm_init(struct platform_device *pdev,
377377

378378
irq = platform_get_irq(pdev, 0);
379379
if (irq < 0) {
380-
err = -ENODEV;
380+
err = irq;
381381
goto out;
382382
}
383383

0 commit comments

Comments
 (0)