]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: ufs: core: Fix the HIGH/LOW_TEMP Bit Definitions
authorBao D. Nguyen <quic_nguyenb@quicinc.com>
Mon, 13 Jan 2025 18:32:07 +0000 (10:32 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 21 Jan 2025 17:18:13 +0000 (12:18 -0500)
According to the UFS Device Specification, the dExtendedUFSFeaturesSupport
defines the support for TOO_HIGH_TEMPERATURE as bit[4] and the
TOO_LOW_TEMPERATURE as bit[5]. Correct the code to match with
the UFS device specification definition.

Cc: stable@vger.kernel.org
Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature notification support")
Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
Link: https://lore.kernel.org/r/69992b3e3e3434a5c7643be5a64de48be892ca46.1736793068.git.quic_nguyenb@quicinc.com
Reviewed-by: Avri Altman <Avri.Altman@wdc.com>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/ufs/ufs.h

index 89672ad8c3bb090696d82a80b15f39cfb2cc363a..f151feb0ca8c794801c000a1c2c07a3c0e88b630 100644 (file)
@@ -385,8 +385,8 @@ enum {
 
 /* Possible values for dExtendedUFSFeaturesSupport */
 enum {
-       UFS_DEV_LOW_TEMP_NOTIF          = BIT(4),
-       UFS_DEV_HIGH_TEMP_NOTIF         = BIT(5),
+       UFS_DEV_HIGH_TEMP_NOTIF         = BIT(4),
+       UFS_DEV_LOW_TEMP_NOTIF          = BIT(5),
        UFS_DEV_EXT_TEMP_NOTIF          = BIT(6),
        UFS_DEV_HPB_SUPPORT             = BIT(7),
        UFS_DEV_WRITE_BOOSTER_SUP       = BIT(8),