From: hgchu Date: Fri, 12 Jan 2018 10:30:04 +0000 (+0900) Subject: [COMMON] ufs: exynos: Add UFS INTR AGGR QUIRK X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b78d1b6efba35f00b182d872c1a3d693b3b6a3a6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [COMMON] ufs: exynos: Add UFS INTR AGGR QUIRK Change-Id: I8817e25280b8095649ab0cfe8ff396cced921e45 Signed-off-by: hgchu --- 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;