From b78d1b6efba35f00b182d872c1a3d693b3b6a3a6 Mon Sep 17 00:00:00 2001 From: hgchu Date: Fri, 12 Jan 2018 19:30:04 +0900 Subject: [PATCH] [COMMON] ufs: exynos: Add UFS INTR AGGR QUIRK Change-Id: I8817e25280b8095649ab0cfe8ff396cced921e45 Signed-off-by: hgchu --- drivers/scsi/ufs/ufshcd.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 9b80eb1605cb..319539ad8159 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -627,6 +627,7 @@ struct ufs_hba { #define UFSHCD_QUIRK_USE_OF_HCE UFS_BIT(8) #define UFSHCI_QUIRK_SKIP_INTR_AGGR UFS_BIT(10) #define UFSHCD_QUIRK_GET_GENERRCODE_DIRECT UFS_BIT(11) + #define UFSHCD_QUIRK_UNRESET_INTR_AGGR UFS_BIT(12) unsigned int quirks; /* Deviations from standard UFSHCI spec. */ /* Device deviations from standard UFS device spec. */ @@ -757,6 +758,12 @@ static inline bool ufshcd_is_intr_aggr_allowed(struct ufs_hba *hba) return true; #endif } + +static inline bool ufshcd_can_reset_intr_aggr(struct ufs_hba *hba) +{ + return hba->quirks & UFSHCD_QUIRK_UNRESET_INTR_AGGR; +} + static inline bool ufshcd_can_fake_clkgating(struct ufs_hba *hba) { return hba->caps & UFSHCD_CAP_FAKE_CLK_GATING; -- 2.20.1