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

Commit e6b1f120 authored by Sayali Lokhande's avatar Sayali Lokhande
Browse files

scsi: ufshcd: Flush exception event before suspend



Exception event can be raised by the device when system
suspend is in progress. This will result in unclocked
register access in exception event handler as clocks will
be turned off during suspend. This change makes sure to flush
exception event handler work in suspend before disabling
clocks to avoid unclocked register access issue.

Change-Id: I5a089a0387790a12f4cc3213c75e9677467a2a07
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent b95d6673
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8708,6 +8708,7 @@ static int ufshcd_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op)
			goto enable_gating;
	}

	flush_work(&hba->eeh_work);
	ret = ufshcd_link_state_transition(hba, req_link_state, 1);
	if (ret)
		goto set_dev_active;