Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: ufs: host: Convert to dev_err_probe() in ufshcd_pltfrm_init()

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>

authored by

Brian Masney and committed by
Martin K. Petersen
517f8eb3 13752323

+2 -1
+2 -1
drivers/ufs/host/ufshcd-pltfrm.c
··· 375 375 376 376 err = ufshcd_init(hba, mmio_base, irq); 377 377 if (err) { 378 - dev_err(dev, "Initialization failed\n"); 378 + dev_err_probe(dev, err, "Initialization failed with error %d\n", 379 + err); 379 380 goto dealloc_host; 380 381 } 381 382