]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: ufshcd-pltfrm: Fix deferred probing
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Mon, 29 Mar 2021 20:50:58 +0000 (23:50 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Apr 2021 04:14:34 +0000 (00:14 -0400)
commit3fe639734f20f114830a6c6b589d7f14b7d484c7
tree5f7d72851c84bca74facd695e2335ecee9d768bc
parent241060fa193f2b42027422efcac4a0fe0c360959
scsi: ufs: ufshcd-pltfrm: Fix deferred probing

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: 231c9ad1b8bb ("[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>
drivers/scsi/ufs/ufshcd-pltfrm.c