]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: core: Add temperature notification exception handling
authorAvri Altman <avri.altman@wdc.com>
Wed, 15 Sep 2021 06:04:07 +0000 (09:04 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Sep 2021 04:07:42 +0000 (00:07 -0400)
commit09d7c70cb2937803bc08496fabf474c63635b7a7
treef74222d3b5fadcd89922ae10f0c2233b39d79b6b
parentb81ebf1a7eb44e3d21ff390203ea47226ee9439e
scsi: ufs: core: Add temperature notification exception handling

The device may notify the host of an extreme temperature by using the
exception event mechanism. The exception can be raised when the device’s
Tcase temperature is either too high or too low.

It is essentially up to the platform to decide what further actions need to
be taken. leave a placeholder for a designated vop for that.

Link: https://lore.kernel.org/r/20210915060407.40-3-avri.altman@wdc.com
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Daejun Park <daejun7.park@samsung.com>
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-hwmon.c
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h