Re: [PATCH v2 05/17] scsi: ufs: qcom: Remove the warning message when core_reset is not available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 12/8/2023 12:28 PM, Manivannan Sadhasivam wrote:
core_reset is optional, so there is no need to warn the user if it is not
available.

Reviewed-by: Andrew Halaney <ahalaney@xxxxxxxxxx>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>
---
  drivers/ufs/host/ufs-qcom.c | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
index dc93b1c5ca74..d474de0739e4 100644
--- a/drivers/ufs/host/ufs-qcom.c
+++ b/drivers/ufs/host/ufs-qcom.c
@@ -296,10 +296,8 @@ static int ufs_qcom_host_reset(struct ufs_hba *hba)
  	struct ufs_qcom_host *host = ufshcd_get_variant(hba);
  	bool reenable_intr;
- if (!host->core_reset) {
-		dev_warn(hba->dev, "%s: reset control not set\n", __func__);
+	if (!host->core_reset)
  		return 0;
-	}
reenable_intr = hba->is_irq_enabled;
  	disable_irq(hba->irq);


Hi Mani,

I think core reset is not frequent. It happen during only probe ,error handler.

core reset is needed in kernel to cleanup UFS phy and controller configuration before UFS HLOS operation starts as per HPG.

Having existing warn print can be used to to debug or atleast know core_reset is missed in device tree to give indication complete reset hasn't been done and we could still be operating in bootloader configuration.


Regards,
Nitin





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux