linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add temperature notification support
@ 2021-09-09  6:34 Avri Altman
  2021-09-09  6:34 ` [PATCH v2 1/2] scsi: ufs: Probe for " Avri Altman
  2021-09-09  6:34 ` [PATCH v2 2/2] scsi: ufs: Add temperature notification exception handling Avri Altman
  0 siblings, 2 replies; 9+ messages in thread
From: Avri Altman @ 2021-09-09  6:34 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

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     |  10 ++
 drivers/scsi/ufs/Makefile    |   1 +
 drivers/scsi/ufs/ufs-hwmon.c | 180 +++++++++++++++++++++++++++++++++++
 drivers/scsi/ufs/ufs.h       |   8 ++
 drivers/scsi/ufs/ufshcd.c    |  46 +++++++++
 drivers/scsi/ufs/ufshcd.h    |  18 ++++
 6 files changed, 263 insertions(+)
 create mode 100644 drivers/scsi/ufs/ufs-hwmon.c

-- 
2.17.1


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

end of thread, other threads:[~2021-09-10 16:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09  6:34 [PATCH v2 0/2] Add temperature notification support Avri Altman
2021-09-09  6:34 ` [PATCH v2 1/2] scsi: ufs: Probe for " Avri Altman
2021-09-09 16:26   ` Bart Van Assche
2021-09-10 15:58     ` Avri Altman
2021-09-09 16:51   ` Guenter Roeck
2021-09-10 16:13     ` Avri Altman
2021-09-09  6:34 ` [PATCH v2 2/2] scsi: ufs: Add temperature notification exception handling Avri Altman
2021-09-09 16:54   ` Guenter Roeck
2021-09-10 16:32     ` Avri Altman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).