Re: [PATCH v1] scsi: ufs: Avoid runtime suspend possibly being blocked forever

2019-06-12 Thread Stanley Chu
Hi Marc, On Wed, 2019-06-12 at 13:30 +0200, Marc Gonzalez wrote: > On 12/06/2019 13:10, Avri Altman wrote: > > > On 12/06/2019 09:42, Stanley Chu wrote: > > > >> Fixes: e3ce73d (scsi: ufs: fix bugs related to null pointer access and > >> array size) > > > > This code was inserted before platfo

RE: [PATCH v1] scsi: ufs: Avoid runtime suspend possibly being blocked forever

2019-06-12 Thread Stanley Chu
Hi Avri, On Wed, 2019-06-12 at 11:10 +, Avri Altman wrote: > Hi, > > > > > UFS runtime suspend can be triggered after pm_runtime_enable() > > is invoked in ufshcd_pltfrm_init(). However if the first runtime > > suspend is triggered before binding ufs_hba structure to ufs > > device structure

Re: [PATCH v1] scsi: ufs: Avoid runtime suspend possibly being blocked forever

2019-06-12 Thread Marc Gonzalez
On 12/06/2019 13:10, Avri Altman wrote: > On 12/06/2019 09:42, Stanley Chu wrote: > >> Fixes: e3ce73d (scsi: ufs: fix bugs related to null pointer access and array >> size) > > This code was inserted before platform_set_drvdata in > 6269473 [SCSI] ufs: Add runtime PM support for UFS host contr

RE: [PATCH v1] scsi: ufs: Avoid runtime suspend possibly being blocked forever

2019-06-12 Thread Avri Altman
Hi, > > UFS runtime suspend can be triggered after pm_runtime_enable() > is invoked in ufshcd_pltfrm_init(). However if the first runtime > suspend is triggered before binding ufs_hba structure to ufs > device structure via platform_set_drvdata(), then UFS runtime > suspend will be no longer trig