scsi: ufs: host: mediatek: Fix unbalanced IRQ enable issue

Resolve the issue of unbalanced IRQ enablement by setting the
'is_mcq_intr_enabled' flag after the first successful IRQ enablement.
Ensure proper tracking of the IRQ state and prevent potential mismatches
in IRQ handling.

Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Peter Wang 2025-09-03 10:44:45 +08:00 committed by Martin K. Petersen
parent d73836cb85
commit 91cad911ed

View File

@ -2190,6 +2190,7 @@ static int ufs_mtk_config_mcq_irq(struct ufs_hba *hba)
return ret;
}
}
host->is_mcq_intr_enabled = true;
return 0;
}