RE: [EXT] [PATCH v1 2/3] scsi: ufs: add error handling of auto-hibern8

Bean Huo (beanhuo)
2019-05-13T18:21:23Z

Hi, Stanley

>+
>+static inline bool ufshcd_is_auto_hibern8_error(struct ufs_hba *hba,
>+ u32 intr_mask)
>+{
>+ return (ufshcd_is_auto_hibern8_supported(hba) &&
>+ !hba->uic_async_done &&

Here check if uic_async_done is NULL, no big problem so far, but not safe enough.
How about setting a flag in ufshcd_auto_hibern8_enable(),

I concern about how to compatible with auto_hibern8 disabled condition.

//Bean