[PATCH 2/4] scsi: ufs: Add UIC DEBUGSAVECONFIGTIME attribute and its field masks
From: Kartik Rajput
Date: Wed Sep 09 2026 - 06:50:32 EST
Add the UniPro vendor-specific save-config-time attribute and masks for
the two fields within it:
VS_DEBUGSAVECONFIGTIME Save-config-time attribute (0xD0A0)
VS_DEBUGSAVECONFIGTIME_TREF Field masks within that attribute, for
VS_DEBUGSAVECONFIGTIME_SCT use with FIELD_PREP()
ufs-hisi already writes this attribute by its literal address, so name
it in the shared header rather than in the driver. Add it here in
preparation for the Tegra264 UFS host controller driver, which also
programs the two fields.
Signed-off-by: Kartik Rajput <kkartik@xxxxxxxxxx>
---
include/ufs/unipro.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/ufs/unipro.h b/include/ufs/unipro.h
index 9c168703b104..f6d83878f2a6 100644
--- a/include/ufs/unipro.h
+++ b/include/ufs/unipro.h
@@ -6,6 +6,8 @@
#ifndef _UNIPRO_H_
#define _UNIPRO_H_
+#include <linux/bits.h>
+
/*
* M-TX Configuration Attributes
*/
@@ -232,8 +234,12 @@
#define VS_POWERSTATE 0xD083
#define VS_MPHYCFGUPDT 0xD085
#define VS_DEBUGOMC 0xD09E
+#define VS_DEBUGSAVECONFIGTIME 0xD0A0
#define VS_MPHYDISABLE 0xD0C1
+#define VS_DEBUGSAVECONFIGTIME_TREF GENMASK(4, 2)
+#define VS_DEBUGSAVECONFIGTIME_SCT GENMASK(1, 0)
+
#define PA_GRANULARITY_MIN_VAL 1
#define PA_GRANULARITY_MAX_VAL 6
--
2.43.0