* [PATCH v2 0/2] scsi: ufs: convert probe to use dev_err_probe()
@ 2023-08-09 19:10 Brian Masney
2023-08-09 19:10 ` [PATCH v2 1/2] scsi: ufs: core: convert to dev_err_probe() in hba_init Brian Masney
2023-08-09 19:10 ` [PATCH v2 2/2] scsi: ufs: host: convert to dev_err_probe() in pltfrm_init Brian Masney
0 siblings, 2 replies; 4+ messages in thread
From: Brian Masney @ 2023-08-09 19:10 UTC (permalink / raw)
To: jejb, martin.petersen
Cc: alim.akhtar, avri.altman, bvanassche, linux-scsi, linux-kernel,
hugo
The following two log messages are shown on bootup due to an
-EPROBE_DEFER when booting on a Qualcomm sa8775p development board:
ufshcd-qcom 1d84000.ufs: ufshcd_variant_hba_init: variant qcom init
failed err -517
ufshcd-qcom 1d84000.ufs: Initialization failed
This patch series converts the relevant two probe functions over to use
dev_err_probe() so that these messages are not shown on bootup.
Changes since v1
https://lore.kernel.org/lkml/20230808142650.1713432-1-bmasney@redhat.com/
- Dropped code cleanup
Brian Masney (2):
scsi: ufs: core: convert to dev_err_probe() in hba_init
scsi: ufs: host: convert to dev_err_probe() in pltfrm_init
drivers/ufs/core/ufshcd.c | 5 +++--
drivers/ufs/host/ufshcd-pltfrm.c | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
--
2.41.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] scsi: ufs: core: convert to dev_err_probe() in hba_init
2023-08-09 19:10 [PATCH v2 0/2] scsi: ufs: convert probe to use dev_err_probe() Brian Masney
@ 2023-08-09 19:10 ` Brian Masney
2023-08-09 19:10 ` [PATCH v2 2/2] scsi: ufs: host: convert to dev_err_probe() in pltfrm_init Brian Masney
1 sibling, 0 replies; 4+ messages in thread
From: Brian Masney @ 2023-08-09 19:10 UTC (permalink / raw)
To: jejb, martin.petersen
Cc: alim.akhtar, avri.altman, bvanassche, linux-scsi, linux-kernel,
hugo
Convert ufshcd_variant_hba_init() over to use dev_err_probe() to avoid
log messages like the following on bootup:
ufshcd-qcom 1d84000.ufs: ufshcd_variant_hba_init: variant qcom init
failed err -517
Signed-off-by: Brian Masney <bmasney@redhat.com>
---
Changes since v1
- Dropped code cleanup
drivers/ufs/core/ufshcd.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index 129446775796..409d176542e1 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -9235,8 +9235,9 @@ static int ufshcd_variant_hba_init(struct ufs_hba *hba)
err = ufshcd_vops_init(hba);
if (err)
- dev_err(hba->dev, "%s: variant %s init failed err %d\n",
- __func__, ufshcd_get_var_name(hba), err);
+ dev_err_probe(hba->dev, err,
+ "%s: variant %s init failed err %d\n",
+ __func__, ufshcd_get_var_name(hba), err);
out:
return err;
}
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] scsi: ufs: host: convert to dev_err_probe() in pltfrm_init
2023-08-09 19:10 [PATCH v2 0/2] scsi: ufs: convert probe to use dev_err_probe() Brian Masney
2023-08-09 19:10 ` [PATCH v2 1/2] scsi: ufs: core: convert to dev_err_probe() in hba_init Brian Masney
@ 2023-08-09 19:10 ` Brian Masney
2023-08-09 22:11 ` Bao D. Nguyen
1 sibling, 1 reply; 4+ messages in thread
From: Brian Masney @ 2023-08-09 19:10 UTC (permalink / raw)
To: jejb, martin.petersen
Cc: alim.akhtar, avri.altman, bvanassche, linux-scsi, linux-kernel,
hugo
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
Signed-off-by: Brian Masney <bmasney@redhat.com>
---
No changes since v1
drivers/ufs/host/ufshcd-pltfrm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ufs/host/ufshcd-pltfrm.c b/drivers/ufs/host/ufshcd-pltfrm.c
index 0b7430033047..f2c50b78efbf 100644
--- a/drivers/ufs/host/ufshcd-pltfrm.c
+++ b/drivers/ufs/host/ufshcd-pltfrm.c
@@ -373,7 +373,7 @@ 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\n");
goto dealloc_host;
}
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 2/2] scsi: ufs: host: convert to dev_err_probe() in pltfrm_init
2023-08-09 19:10 ` [PATCH v2 2/2] scsi: ufs: host: convert to dev_err_probe() in pltfrm_init Brian Masney
@ 2023-08-09 22:11 ` Bao D. Nguyen
0 siblings, 0 replies; 4+ messages in thread
From: Bao D. Nguyen @ 2023-08-09 22:11 UTC (permalink / raw)
To: Brian Masney, jejb, martin.petersen
Cc: alim.akhtar, avri.altman, bvanassche, linux-scsi, linux-kernel,
hugo
On 8/9/2023 12:10 PM, Brian Masney wrote:
> 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
>
> Signed-off-by: Brian Masney <bmasney@redhat.com>
> ---
> No changes since v1
>
> drivers/ufs/host/ufshcd-pltfrm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/ufs/host/ufshcd-pltfrm.c b/drivers/ufs/host/ufshcd-pltfrm.c
> index 0b7430033047..f2c50b78efbf 100644
> --- a/drivers/ufs/host/ufshcd-pltfrm.c
> +++ b/drivers/ufs/host/ufshcd-pltfrm.c
> @@ -373,7 +373,7 @@ 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\n");
Hi Brian,
Can you pls add the error code to the print?
> goto dealloc_host;
> }
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-09 22:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 19:10 [PATCH v2 0/2] scsi: ufs: convert probe to use dev_err_probe() Brian Masney
2023-08-09 19:10 ` [PATCH v2 1/2] scsi: ufs: core: convert to dev_err_probe() in hba_init Brian Masney
2023-08-09 19:10 ` [PATCH v2 2/2] scsi: ufs: host: convert to dev_err_probe() in pltfrm_init Brian Masney
2023-08-09 22:11 ` Bao D. Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox