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

From: Avri Altman
Date: Sun Feb 23 2025 - 01:51:31 EST


> +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.

Thanks,
Avri