]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: core: Simplify temperature exception event handling
authorAvri Altman <avri.altman@wdc.com>
Tue, 14 Jan 2025 18:12:05 +0000 (20:12 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 21 Jan 2025 17:20:45 +0000 (12:20 -0500)
commit8c09f612b2937da109ed0df583ace3a29fc95a93
treea115820e833cd59db194233a6f48fce8bc7bb601
parentc9d2782988df354b5a2db00be93920b4ecdde7a2
scsi: ufs: core: Simplify temperature exception event handling

This commit simplifies the temperature exception event handling by removing
the ufshcd_temp_exception_event_handler() function and directly calling
ufs_hwmon_notify_event() in ufshcd_exception_event_handler().

The ufshcd_temp_exception_event_handler() function contained a placeholder
comment for platform vendors to add additional steps if required. However,
since its introduction a few years ago, no vendor has added any additional
steps. Therefore, the placeholder function is removed to streamline the
code.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20250114181205.153760-1-avri.altman@wdc.com
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c