@@ -2392,7 +2392,6 @@ __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd,
2392
2392
bool completion )
2393
2393
{
2394
2394
lockdep_assert_held (& hba -> uic_cmd_mutex );
2395
- lockdep_assert_held (hba -> host -> host_lock );
2396
2395
2397
2396
if (!ufshcd_ready_for_uic_cmd (hba )) {
2398
2397
dev_err (hba -> dev ,
@@ -2419,7 +2418,6 @@ __ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd,
2419
2418
int ufshcd_send_uic_cmd (struct ufs_hba * hba , struct uic_command * uic_cmd )
2420
2419
{
2421
2420
int ret ;
2422
- unsigned long flags ;
2423
2421
2424
2422
if (hba -> quirks & UFSHCD_QUIRK_BROKEN_UIC_CMD )
2425
2423
return 0 ;
@@ -2428,9 +2426,7 @@ int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd)
2428
2426
mutex_lock (& hba -> uic_cmd_mutex );
2429
2427
ufshcd_add_delay_before_dme_cmd (hba );
2430
2428
2431
- spin_lock_irqsave (hba -> host -> host_lock , flags );
2432
2429
ret = __ufshcd_send_uic_cmd (hba , uic_cmd , true);
2433
- spin_unlock_irqrestore (hba -> host -> host_lock , flags );
2434
2430
if (!ret )
2435
2431
ret = ufshcd_wait_for_uic_cmd (hba , uic_cmd );
2436
2432
@@ -4133,8 +4129,8 @@ static int ufshcd_uic_pwr_ctrl(struct ufs_hba *hba, struct uic_command *cmd)
4133
4129
wmb ();
4134
4130
reenable_intr = true;
4135
4131
}
4136
- ret = __ufshcd_send_uic_cmd (hba , cmd , false);
4137
4132
spin_unlock_irqrestore (hba -> host -> host_lock , flags );
4133
+ ret = __ufshcd_send_uic_cmd (hba , cmd , false);
4138
4134
if (ret ) {
4139
4135
dev_err (hba -> dev ,
4140
4136
"pwr ctrl cmd 0x%x with mode 0x%x uic error %d\n" ,
0 commit comments