Loading drivers/scsi/ufs/ufs-debugfs.c +1 −1 Original line number Diff line number Diff line Loading @@ -1212,8 +1212,8 @@ static int ufsdbg_config_pwr_mode(struct ufs_hba *hba, /* let's not get into low power until clock scaling is completed */ hba->ufs_stats.clk_hold.ctx = DBGFS_CFG_PWR_MODE; ufshcd_hold(hba, false); ufshcd_scsi_block_requests(hba); down_write(&hba->lock); ufshcd_scsi_block_requests(hba); if (ufshcd_wait_for_doorbell_clr(hba, DOORBELL_CLR_TOUT_US)) { ret = -EBUSY; goto out; Loading drivers/scsi/ufs/ufshcd.c +5 −3 Original line number Diff line number Diff line Loading @@ -1746,8 +1746,8 @@ static int ufshcd_clock_scaling_prepare(struct ufs_hba *hba) * make sure that there are no outstanding requests when * clock scaling is in progress */ ufshcd_scsi_block_requests(hba); down_write(&hba->lock); ufshcd_scsi_block_requests(hba); if (ufshcd_wait_for_doorbell_clr(hba, DOORBELL_CLR_TOUT_US)) { ret = -EBUSY; up_write(&hba->lock); Loading Loading @@ -2766,8 +2766,8 @@ static void __ufshcd_set_auto_hibern8_timer(struct ufs_hba *hba, { pm_runtime_get_sync(hba->dev); ufshcd_hold_all(hba); ufshcd_scsi_block_requests(hba); down_write(&hba->lock); ufshcd_scsi_block_requests(hba); /* wait for all the outstanding requests to finish */ ufshcd_wait_for_doorbell_clr(hba, U64_MAX); ufshcd_set_auto_hibern8_timer(hba, delay_ms); Loading Loading @@ -7157,8 +7157,10 @@ static void ufshcd_rls_handler(struct work_struct *work) hba = container_of(work, struct ufs_hba, rls_work); pm_runtime_get_sync(hba->dev); ufshcd_scsi_block_requests(hba); down_write(&hba->lock); ufshcd_scsi_block_requests(hba); if (ufshcd_is_shutdown_ongoing(hba)) goto out; ret = ufshcd_wait_for_doorbell_clr(hba, U64_MAX); if (ret) { dev_err(hba->dev, Loading Loading
drivers/scsi/ufs/ufs-debugfs.c +1 −1 Original line number Diff line number Diff line Loading @@ -1212,8 +1212,8 @@ static int ufsdbg_config_pwr_mode(struct ufs_hba *hba, /* let's not get into low power until clock scaling is completed */ hba->ufs_stats.clk_hold.ctx = DBGFS_CFG_PWR_MODE; ufshcd_hold(hba, false); ufshcd_scsi_block_requests(hba); down_write(&hba->lock); ufshcd_scsi_block_requests(hba); if (ufshcd_wait_for_doorbell_clr(hba, DOORBELL_CLR_TOUT_US)) { ret = -EBUSY; goto out; Loading
drivers/scsi/ufs/ufshcd.c +5 −3 Original line number Diff line number Diff line Loading @@ -1746,8 +1746,8 @@ static int ufshcd_clock_scaling_prepare(struct ufs_hba *hba) * make sure that there are no outstanding requests when * clock scaling is in progress */ ufshcd_scsi_block_requests(hba); down_write(&hba->lock); ufshcd_scsi_block_requests(hba); if (ufshcd_wait_for_doorbell_clr(hba, DOORBELL_CLR_TOUT_US)) { ret = -EBUSY; up_write(&hba->lock); Loading Loading @@ -2766,8 +2766,8 @@ static void __ufshcd_set_auto_hibern8_timer(struct ufs_hba *hba, { pm_runtime_get_sync(hba->dev); ufshcd_hold_all(hba); ufshcd_scsi_block_requests(hba); down_write(&hba->lock); ufshcd_scsi_block_requests(hba); /* wait for all the outstanding requests to finish */ ufshcd_wait_for_doorbell_clr(hba, U64_MAX); ufshcd_set_auto_hibern8_timer(hba, delay_ms); Loading Loading @@ -7157,8 +7157,10 @@ static void ufshcd_rls_handler(struct work_struct *work) hba = container_of(work, struct ufs_hba, rls_work); pm_runtime_get_sync(hba->dev); ufshcd_scsi_block_requests(hba); down_write(&hba->lock); ufshcd_scsi_block_requests(hba); if (ufshcd_is_shutdown_ongoing(hba)) goto out; ret = ufshcd_wait_for_doorbell_clr(hba, U64_MAX); if (ret) { dev_err(hba->dev, Loading