summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufshpb.h
diff options
context:
space:
mode:
authorAvri Altman <avri.altman@wdc.com>2021-07-12 11:50:28 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-08-01 22:05:14 +0200
commit119ee38c10fa34f37f2880af20b957ce55943ed2 (patch)
treed075cd96ef076351153a082ade162f602ea5bc5f /drivers/scsi/ufs/ufshpb.h
parentscsi: ufs: ufshpb: Add HPB 2.0 support (diff)
downloadlinux-119ee38c10fa34f37f2880af20b957ce55943ed2.tar.xz
linux-119ee38c10fa34f37f2880af20b957ce55943ed2.zip
scsi: ufs: ufshpb: Cache HPB Control mode on init
We will use control_mode later when we need to differentiate between device and host control modes. Link: https://lore.kernel.org/r/20210712095039.8093-2-avri.altman@wdc.com Reviewed-by: Daejun Park <daejun7.park@samsung.com> Signed-off-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/ufs/ufshpb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshpb.h b/drivers/scsi/ufs/ufshpb.h
index 1e8d6e1d909e..dc168ba08a09 100644
--- a/drivers/scsi/ufs/ufshpb.h
+++ b/drivers/scsi/ufs/ufshpb.h
@@ -228,6 +228,8 @@ struct ufshpb_lu {
u32 entries_per_srgn_shift;
u32 pages_per_srgn;
+ bool is_hcm;
+
struct ufshpb_stats stats;
struct ufshpb_params params;