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

Commit 38bbf1a7 authored by Sayali Lokhande's avatar Sayali Lokhande
Browse files

scsi: ufs: Crash the system on unrecoverable state



If we hit fatal errors and are not able to recover using
reset, crash the system instead of proceeding and causing
further system failures.

Change-Id: I7fa3ea9d862f55330eea290a192028c11d5ddbde
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent 34125a10
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -7895,7 +7895,8 @@ static int ufshcd_reset_and_restore(struct ufs_hba *hba)
	 * to recover after multiple retries.
	 */
	if (err && ufshcd_is_embedded_dev(hba))
		WARN_ON(1);
		BUG();

	/*
	 * After reset the door-bell might be cleared, complete
	 * outstanding requests in s/w here.