mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Merge "scsi: ufs: Clear uic_cmd->cmd_active before calling complete()"
This commit is contained in:
commit
ec92655704
1 changed files with 3 additions and 2 deletions
|
|
@ -5080,15 +5080,16 @@ static irqreturn_t ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status)
|
|||
ufshcd_get_uic_cmd_result(hba);
|
||||
hba->active_uic_cmd->argument3 =
|
||||
ufshcd_get_dme_attr_val(hba);
|
||||
complete(&hba->active_uic_cmd->done);
|
||||
if (!hba->uic_async_done)
|
||||
hba->active_uic_cmd->cmd_active = 0;
|
||||
complete(&hba->active_uic_cmd->done);
|
||||
retval = IRQ_HANDLED;
|
||||
}
|
||||
|
||||
if ((intr_status & UFSHCD_UIC_PWR_MASK) && hba->uic_async_done) {
|
||||
if (hba->active_uic_cmd)
|
||||
hba->active_uic_cmd->cmd_active = 0;
|
||||
complete(hba->uic_async_done);
|
||||
hba->active_uic_cmd->cmd_active = 0;
|
||||
retval = IRQ_HANDLED;
|
||||
}
|
||||
return retval;
|
||||
|
|
|
|||
Loading…
Reference in a new issue