* [PATCH] scsi: ufs: Fix incorrect bit assignment for temperature notifications [not found] <CGME20250214105219epcms2p3a60810a14e6181092cb397924ce36019@epcms2p3> @ 2025-02-14 10:52 ` Keoseong Park 2025-02-14 17:46 ` Avri Altman 0 siblings, 1 reply; 3+ messages in thread From: Keoseong Park @ 2025-02-14 10:52 UTC (permalink / raw) To: martin.petersen@oracle.com, avri.altman@wdc.com, bvanassche@acm.org, beanhuo@micron.com, linux@roeck-us.net, Daejun Park, Keoseong Park Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org According to the UFS specification, the bit positions for `UFS_DEV_HIGH_TEMP_NOTIF` and `UFS_DEV_LOW_TEMP_NOTIF` were incorrectly assigned. This patch corrects the bit assignment to align with the specification. If this issue is not fixed, devices that support both high and low temperature notifications may function correctly, but devices that support only one of them may fail to trigger the corresponding exception event. Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature notification support") Signed-off-by: Keoseong Park <keosung.park@samsung.com> --- include/ufs/ufs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ufs/ufs.h b/include/ufs/ufs.h index d335bff1a310..8a24ed59ec46 100644 --- a/include/ufs/ufs.h +++ b/include/ufs/ufs.h @@ -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), -- 2.25.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] scsi: ufs: Fix incorrect bit assignment for temperature notifications 2025-02-14 10:52 ` [PATCH] scsi: ufs: Fix incorrect bit assignment for temperature notifications Keoseong Park @ 2025-02-14 17:46 ` Avri Altman 2025-02-17 2:39 ` Keoseong Park 0 siblings, 1 reply; 3+ messages in thread From: Avri Altman @ 2025-02-14 17:46 UTC (permalink / raw) To: keosung.park@samsung.com, martin.petersen@oracle.com, avri.altman@wdc.com, bvanassche@acm.org, beanhuo@micron.com, linux@roeck-us.net, Daejun Park Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Bao D . Nguyen + Bao > According to the UFS specification, the bit positions for > `UFS_DEV_HIGH_TEMP_NOTIF` and `UFS_DEV_LOW_TEMP_NOTIF` were > incorrectly assigned. This patch corrects the bit assignment to align with the > specification. > > If this issue is not fixed, devices that support both high and low temperature > notifications may function correctly, but devices that support only one of > them may fail to trigger the corresponding exception event. > > Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature notification > support") > Signed-off-by: Keoseong Park <keosung.park@samsung.com> Already noticed by Bao D. Nguyen - see https://www.spinics.net/lists/linux-scsi/msg202162.html Thanks, Avri > --- > include/ufs/ufs.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/ufs/ufs.h b/include/ufs/ufs.h index > d335bff1a310..8a24ed59ec46 100644 > --- a/include/ufs/ufs.h > +++ b/include/ufs/ufs.h > @@ -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), > -- > 2.25.1 > > ^ permalink raw reply [flat|nested] 3+ messages in thread
* RE:(2) [PATCH] scsi: ufs: Fix incorrect bit assignment for temperature notifications 2025-02-14 17:46 ` Avri Altman @ 2025-02-17 2:39 ` Keoseong Park 0 siblings, 0 replies; 3+ messages in thread From: Keoseong Park @ 2025-02-17 2:39 UTC (permalink / raw) To: Avri Altman, Keoseong Park, martin.petersen@oracle.com, avri.altman@wdc.com, bvanassche@acm.org, beanhuo@micron.com, linux@roeck-us.net, Daejun Park Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Bao D . Nguyen > + Bao > >> According to the UFS specification, the bit positions for >> `UFS_DEV_HIGH_TEMP_NOTIF` and `UFS_DEV_LOW_TEMP_NOTIF` were >> incorrectly assigned. This patch corrects the bit assignment to align with the >> specification. >> >> If this issue is not fixed, devices that support both high and low temperature >> notifications may function correctly, but devices that support only one of >> them may fail to trigger the corresponding exception event. >> >> Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature notification >> support") >> Signed-off-by: Keoseong Park <keosung.park@samsung.com> > Already noticed by Bao D. Nguyen - see https://protect2.fireeye.com/v1/url?k=81dbf2a5-e050e79f-81da79ea-74fe4860008a-0424961c73a03c70&q=1&e=fcfc99c7-cb2b-4f68-8ef4-e2760c685fec&u=https%3A%2F%2Fwww.spinics.net%2Flists%2Flinux-scsi%2Fmsg202162.html > > Thanks, > Avri > Hi Avri, Thank you for the update. I wasn’t aware that Bao D. Nguyen’s patch had already been applied. I appreciate the heads-up, and I’ll make sure to check the latest patches more carefully next time. Best Regards, Keoseong >> --- >> include/ufs/ufs.h | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/include/ufs/ufs.h b/include/ufs/ufs.h index >> d335bff1a310..8a24ed59ec46 100644 >> --- a/include/ufs/ufs.h >> +++ b/include/ufs/ufs.h >> @@ -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), >> -- >> 2.25.1 >> >> > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-17 4:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20250214105219epcms2p3a60810a14e6181092cb397924ce36019@epcms2p3>
2025-02-14 10:52 ` [PATCH] scsi: ufs: Fix incorrect bit assignment for temperature notifications Keoseong Park
2025-02-14 17:46 ` Avri Altman
2025-02-17 2:39 ` Keoseong Park
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox