lkml.org 
[lkml]   [2020]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [EXT] [PATCH v4 1/8] scsi: ufs: Flush exception event before suspend
Date

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

\
 
 \ /
  Last update: 2020-01-24 00:10    [W:0.090 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site