2021-01-19 23:12:17

by Adrian Hunter

[permalink] [raw]
Subject: [PATCH 2/4] scsi: ufs: Add exception event definitions

For readability and completeness, add exception event definitions.

Signed-off-by: Adrian Hunter <[email protected]>
---
drivers/scsi/ufs/ufs.h | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h
index 09c7cc8a678d..5d4a2740a159 100644
--- a/drivers/scsi/ufs/ufs.h
+++ b/drivers/scsi/ufs/ufs.h
@@ -348,8 +348,14 @@ enum power_desc_param_offset {

/* Exception event mask values */
enum {
- MASK_EE_STATUS = 0xFFFF,
- MASK_EE_URGENT_BKOPS = (1 << 2),
+ MASK_EE_STATUS = 0xFFFF,
+ MASK_EE_DYNCAP_EVENT = BIT(0),
+ MASK_EE_SYSPOOL_EVENT = BIT(1),
+ MASK_EE_URGENT_BKOPS = BIT(2),
+ MASK_EE_TOO_HIGH_TEMP = BIT(3),
+ MASK_EE_TOO_LOW_TEMP = BIT(4),
+ MASK_EE_WRITEBOOSTER_EVENT = BIT(5),
+ MASK_EE_PERFORMANCE_THROTTLING = BIT(6),
};

/* Background operation status */
--
2.17.1


2021-02-03 08:27:56

by Bean Huo

[permalink] [raw]
Subject: Re: [PATCH 2/4] scsi: ufs: Add exception event definitions

On Tue, 2021-01-19 at 16:15 +0200, Adrian Hunter wrote:
> For readability and completeness, add exception event definitions.
>
> Signed-off-by: Adrian Hunter <[email protected]>
Reviewed-by: Bean Huo <[email protected]>