Messages in this thread | | | From | "Bean Huo (beanhuo)" <> | Subject | RE: [EXT] [PATCH v4 1/8] scsi: ufs: Flush exception event before suspend | Date | Thu, 23 Jan 2020 23:09:32 +0000 |
| |
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
| |