Skip to content

Commit 1b3e2d4

Browse files
Bao D. Nguyenmartinkpetersen
authored andcommitted
scsi: ufs: core: Fix the HIGH/LOW_TEMP Bit Definitions
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: e88e2d3 ("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>
1 parent b893d7f commit 1b3e2d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/ufs/ufs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ enum {
385385

386386
/* Possible values for dExtendedUFSFeaturesSupport */
387387
enum {
388-
UFS_DEV_LOW_TEMP_NOTIF = BIT(4),
389-
UFS_DEV_HIGH_TEMP_NOTIF = BIT(5),
388+
UFS_DEV_HIGH_TEMP_NOTIF = BIT(4),
389+
UFS_DEV_LOW_TEMP_NOTIF = BIT(5),
390390
UFS_DEV_EXT_TEMP_NOTIF = BIT(6),
391391
UFS_DEV_HPB_SUPPORT = BIT(7),
392392
UFS_DEV_WRITE_BOOSTER_SUP = BIT(8),

0 commit comments

Comments
 (0)