[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8f980d14-64bd-5fcf-b6ac-231b3172c9a9@quicinc.com>
Date: Mon, 14 Aug 2023 20:25:27 -0700
From: "Bao D. Nguyen" <quic_nguyenb@...cinc.com>
To: Brian Masney <bmasney@...hat.com>, <jejb@...ux.ibm.com>,
<martin.petersen@...cle.com>
CC: <alim.akhtar@...sung.com>, <avri.altman@....com>,
<bvanassche@....org>, <linux-scsi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <hugo@...ovil.com>
Subject: Re: [PATCH v3 2/2] scsi: ufs: host: convert to dev_err_probe() in
pltfrm_init
> diff --git a/drivers/ufs/host/ufshcd-pltfrm.c b/drivers/ufs/host/ufshcd-pltfrm.c
> index 0b7430033047..c81a14f9eaf5 100644
> --- a/drivers/ufs/host/ufshcd-pltfrm.c
> +++ b/drivers/ufs/host/ufshcd-pltfrm.c
> @@ -373,7 +373,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;
> }
>
Reviewed-by: Bao D. Nguyen <quic_nguyenb@...cinc.com>
Powered by blists - more mailing lists