Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a933b986 authored by Sayali Lokhande's avatar Sayali Lokhande Committed by Nitin Rawat
Browse files

scsi: ufs: Enable irq in err_handler



There's a chance that error handler is invoked with
IRQ's disabled. For instance, in case the resume fails
the state is changed to old state - meaning, the state
of the controller is reverted back to suspend.
This entails disabling the IRQ.

Thus, commands timeout during error-handling as well.
Hence, enable IRQs in error-handler before issuing
commands.

CRs-fixed: 2398584
Change-Id: Ia38987ba6791bb74e44b506fda9dc49fd8a32831
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent 12c0afc9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -8114,6 +8114,8 @@ static int ufshcd_reset_and_restore(struct ufs_hba *hba)
	unsigned long flags;
	int retries = MAX_HOST_RESET_RETRIES;

	ufshcd_enable_irq(hba);

	do {
		err = ufshcd_detect_device(hba);
	} while (err && --retries);