All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/2] Add temperature notification support
@ 2021-09-15  6:04 Avri Altman
  2021-09-15  6:04 ` [PATCH v7 1/2] scsi: ufs: Probe for " Avri Altman
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Avri Altman @ 2021-09-15  6:04 UTC (permalink / raw)
  To: James E . J . Bottomley, Martin K . Petersen
  Cc: linux-scsi, linux-kernel, Bart Van Assche, Adrian Hunter,
	Bean Huo, Guenter Roeck, Avri Altman

v6 -> v7:
 - some more useless initializations
 
v5 -> v6:
 - remove useless initializations
 
v4 - > v5:
 - Fix improper return error values
 
v3 -> v4:
 - Attend Guenter's comments

v2 -> v3:
 - Attend Bart's & Guenter's comments

v1 -> v2:
 - Add a hw monitor device if both the platform & the device support it
 - Remove the sysfs patch: no need to duplicate /sys/class/hwmon

UFS3.0 allows using the ufs device as a temperature sensor. The purpose
of this optional feature is to provide notification to the host of the
UFS device case temperature. It allows reading of a rough estimate
(+-10 degrees centigrade) of the current case temperature, and setting a
lower and upper temperature bounds, in which the device will trigger an
applicable exception event.

A previous attempt [1] tried a comprehensive approach.  Still, it was
unsuccessful. Here is a more modest approach that introduces just the
bare minimum to support temperature notification.

Thanks,
Avri

[1] https://lore.kernel.org/lkml/1582450522-13256-1-git-send-email-avi.shchislowski@wdc.com/


Avri Altman (2):
  scsi: ufs: Probe for temperature notification support
  scsi: ufs: Add temperature notification exception handling

 drivers/scsi/ufs/Kconfig     |   9 ++
 drivers/scsi/ufs/Makefile    |   1 +
 drivers/scsi/ufs/ufs-hwmon.c | 210 +++++++++++++++++++++++++++++++++++
 drivers/scsi/ufs/ufs.h       |   7 ++
 drivers/scsi/ufs/ufshcd.c    |  47 ++++++++
 drivers/scsi/ufs/ufshcd.h    |  20 ++++
 6 files changed, 294 insertions(+)
 create mode 100644 drivers/scsi/ufs/ufs-hwmon.c

-- 
2.17.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-09-29  4:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15  6:04 [PATCH v7 0/2] Add temperature notification support Avri Altman
2021-09-15  6:04 ` [PATCH v7 1/2] scsi: ufs: Probe for " Avri Altman
2021-09-15  7:05   ` Guenter Roeck
2021-09-15  8:34   ` Bean Huo
2021-09-15  6:04 ` [PATCH v7 2/2] scsi: ufs: Add temperature notification exception handling Avri Altman
2021-09-15  7:06   ` Guenter Roeck
2021-09-15  9:05   ` Bean Huo
     [not found] ` <CGME20210915060437epcas2p1f8bcdda5911050391b82be6c9831e4c2@epcms2p3>
2021-09-16  2:30   ` [PATCH v7 1/2] scsi: ufs: Probe for temperature notification support Daejun Park
     [not found] ` <CGME20210915060436epcas2p326d8663ed23430529a5b4f9407eca8c9@epcms2p3>
2021-09-16  2:31   ` [PATCH v7 2/2] scsi: ufs: Add temperature notification exception handling Daejun Park
2021-09-22  4:08 ` [PATCH v7 0/2] Add temperature notification support Martin K. Petersen
2021-09-29  4:20 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.