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)
commit322c4b29ee1f19ce153f027bfb21d272b029f2d7
treef74222d3b5fadcd89922ae10f0c2233b39d79b6b
parente88e2d32200a1734cb4a2ca292c5c7b338257bb6
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