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

Commit cfee1649 authored by Can Guo's avatar Can Guo
Browse files

scsi: ufs: ignore hibern8 enter failure after UFS card is removed



If the removable UFS card is removed during hibern8 enter, error is
expected. Ignore the error for this case.

Change-Id: I55f507c0b66a13ff5b4295a9ee00231dc5b9a96f
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent a7d847f5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5333,7 +5333,8 @@ int ufshcd_uic_hibern8_enter(struct ufs_hba *hba)
		ret = __ufshcd_uic_hibern8_enter(hba);
		if (!ret)
			goto out;
		else if (ret != -EAGAIN)
		else if (ret != -EAGAIN &&
			 !(hba->extcon && ufshcd_is_card_offline(hba)))
			/* Unable to recover the link, so no point proceeding */
			BUG_ON(1);
	}