File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -4362,28 +4362,17 @@ int ufshcd_send_bsg_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd)
4362
4362
{
4363
4363
int ret ;
4364
4364
4365
+ if (uic_cmd -> argument1 != UIC_ARG_MIB (PA_PWRMODE ) ||
4366
+ uic_cmd -> command != UIC_CMD_DME_SET )
4367
+ return ufshcd_send_uic_cmd (hba , uic_cmd );
4368
+
4365
4369
if (hba -> quirks & UFSHCD_QUIRK_BROKEN_UIC_CMD )
4366
4370
return 0 ;
4367
4371
4368
4372
ufshcd_hold (hba );
4369
-
4370
- if (uic_cmd -> argument1 == UIC_ARG_MIB (PA_PWRMODE ) &&
4371
- uic_cmd -> command == UIC_CMD_DME_SET ) {
4372
- ret = ufshcd_uic_pwr_ctrl (hba , uic_cmd );
4373
- goto out ;
4374
- }
4375
-
4376
- mutex_lock (& hba -> uic_cmd_mutex );
4377
- ufshcd_add_delay_before_dme_cmd (hba );
4378
-
4379
- ret = __ufshcd_send_uic_cmd (hba , uic_cmd );
4380
- if (!ret )
4381
- ret = ufshcd_wait_for_uic_cmd (hba , uic_cmd );
4382
-
4383
- mutex_unlock (& hba -> uic_cmd_mutex );
4384
-
4385
- out :
4373
+ ret = ufshcd_uic_pwr_ctrl (hba , uic_cmd );
4386
4374
ufshcd_release (hba );
4375
+
4387
4376
return ret ;
4388
4377
}
4389
4378
You can’t perform that action at this time.
0 commit comments