RE: [EXT] [PATCH v4 1/8] scsi: ufs: Flush exception event before suspend

From: Bean Huo (beanhuo)
Date: Thu Jan 23 2020 - 18:09:38 EST



Hi, Can

> /* TODO: handle Reject UPIU Response */ @@ -5215,7
> +5222,14 @@ static void ufshcd_exception_event_handler(struct work_struct
> *work)
>
> out:
> scsi_unblock_requests(hba->host);
> - pm_runtime_put_sync(hba->dev);
> + /*
> + * pm_runtime_get_noresume is called while scheduling
> + * eeh_work to avoid suspend racing with exception work.
> + * Hence decrement usage counter using pm_runtime_put_noidle
> + * to allow suspend on completion of exception event handler.
> + */
> + pm_runtime_put_noidle(hba->dev);
> + pm_runtime_put(hba->dev);
> return;
> }
>
Rebased this patch.
Thanks,
//Bean