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

Commit 9feafda5 authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma
Browse files

scsi: ufs: Add broken suspend quirk



Add broken suspend quirk to disallow suspend/resume routines to
keep the device and the link in low power state. The routines,
however, freeze/unfreeze hardware by disabling/enabling clocks
respectively.

Change-Id: I8c77631afeadcccfee8632bca92a4ae1fa9edbee
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent 6e9a4ebd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -375,6 +375,9 @@ struct ufs_hba {
	 */
	#define UFSHCD_QUIRK_BROKEN_PWR_MODE_CHANGE      (1 << 5)

	/* runtime pm or system suspend/resume is broken */
	#define UFSHCD_QUIRK_BROKEN_SUSPEND              (1 << 6)

	wait_queue_head_t tm_wq;
	wait_queue_head_t tm_tag_wq;
	unsigned long tm_condition;