summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBao D. Nguyen <quic_nguyenb@quicinc.com>2025-01-13 21:32:07 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 11:40:20 +0300
commit0176c4af3f712af11e46fb1a487f7ff300b0e4fb (patch)
tree05f5134cfe0f5c635764fa5f9385a33a079f553f /include
parent8da6b450a17fc0e5af5857f8cd5549e9ef75bb39 (diff)
downloadlinux-0176c4af3f712af11e46fb1a487f7ff300b0e4fb.tar.xz
scsi: ufs: core: Fix the HIGH/LOW_TEMP Bit Definitions
commit 1b3e2d4ec0c5848776cc56d2624998aa5b2f0d27 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/ufs/ufs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ufs/ufs.h b/include/ufs/ufs.h
index 0cced88f4531..49c90795a2a6 100644
--- a/include/ufs/ufs.h
+++ b/include/ufs/ufs.h
@@ -384,8 +384,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),