Re: [RFC v1 1/1] scsi: ufs: core: Add device level exeption support

From: Bao D. Nguyen
Date: Mon Feb 24 2025 - 14:46:21 EST


On 2/22/2025 10:50 PM, Avri Altman wrote:
+static void ufshcd_device_lvl_exception_event_handler(struct ufs_hba
+*hba) {
+ u64 *exception_id;
+ int err;
+
+ hba->dev_lvl_exception_count++;
+ exception_id = &hba->dev_lvl_exception_id;
+ err = ufshcd_read_device_lvl_exception_id(hba, exception_id);
Why is it important to read qDeviceLevelExceptionID immediately?
Why can't it be added as part of the standard attributes sysfs ABI,
To be available for read once the exception occurred.

We can do that Avri.

Thanks, Bao