diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 1e41712fc981..eea5af5fa166 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -582,12 +582,7 @@ static void ufshcd_print_pwr_info(struct ufs_hba *hba) "INVALID MODE", }; - /* - * Using dev_dbg to avoid messages during runtime PM to avoid - * never-ending cycles of messages written back to storage by user space - * causing runtime resume, causing more messages and so on. - */ - dev_dbg(hba->dev, "%s:[RX, TX]: gear=[%d, %d], lane[%d, %d], pwr[%s, %s], rate = %d\n", + dev_err(hba->dev, "%s:[RX, TX]: gear=[%d, %d], lane[%d, %d], pwr[%s, %s], rate = %d\n", __func__, hba->pwr_info.gear_rx, hba->pwr_info.gear_tx, hba->pwr_info.lane_rx, hba->pwr_info.lane_tx, @@ -5001,12 +4996,6 @@ static int ufshcd_slave_configure(struct scsi_device *sdev) pm_runtime_get_noresume(&sdev->sdev_gendev); else if (ufshcd_is_rpm_autosuspend_allowed(hba)) sdev->rpm_autosuspend = 1; - /* - * Do not print messages during runtime PM to avoid never-ending cycles - * of messages written back to storage by user space causing runtime - * resume, causing more messages and so on. - */ - sdev->silence_suspend = 1; ufshcd_crypto_setup_rq_keyslot_manager(hba, q); @@ -7245,13 +7234,7 @@ static u32 ufshcd_find_max_sup_active_icc_level(struct ufs_hba *hba, if (!hba->vreg_info.vcc || !hba->vreg_info.vccq || !hba->vreg_info.vccq2) { - /* - * Using dev_dbg to avoid messages during runtime PM to avoid - * never-ending cycles of messages written back to storage by - * user space causing runtime resume, causing more messages and - * so on. - */ - dev_dbg(hba->dev, + dev_err(hba->dev, "%s: Regulator capability was not set, actvIccLevel=%d", __func__, icc_level); goto out;