Skip to content

Commit

Permalink
scsi: ufs: host: Convert to dev_err_probe() in ufshcd_pltfrm_init()
Browse files Browse the repository at this point in the history
Convert ufshcd_pltfrm_init() over to use dev_err_probe() to avoid the
following log message on bootup due to an -EPROBE_DEFER return code:

    ufshcd-qcom 1d84000.ufs: Initialization failed

While this line is changed, let's also go ahead and add the error code to
the message as well.

Signed-off-by: Brian Masney <bmasney@redhat.com>
Link: https://lore.kernel.org/r/20230814184352.200531-3-bmasney@redhat.com
Reviewed-by: "Bao D. Nguyen" <quic_nguyenb@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Brian Masney authored and Martin K. Petersen committed Aug 21, 2023
1 parent 1375232 commit 517f8eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/ufs/host/ufshcd-pltfrm.c
Original file line number Diff line number Diff line change
@@ -375,7 +375,8 @@ int ufshcd_pltfrm_init(struct platform_device *pdev,

err = ufshcd_init(hba, mmio_base, irq);
if (err) {
dev_err(dev, "Initialization failed\n");
dev_err_probe(dev, err, "Initialization failed with error %d\n",
err);
goto dealloc_host;
}

0 comments on commit 517f8eb

Please sign in to comment.