[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1577754469.13164.5.camel@mtkswgap22>
Date: Tue, 31 Dec 2019 09:07:49 +0800
From: Stanley Chu <stanley.chu@...iatek.com>
To: <asutoshd@...eaurora.org>
CC: <linux-scsi@...r.kernel.org>, <martin.petersen@...cle.com>,
<avri.altman@....com>, <alim.akhtar@...sung.com>,
<pedrom.sousa@...opsys.com>, <jejb@...ux.ibm.com>,
<matthias.bgg@...il.com>, <bvanassche@....org>,
<subhashj@...eaurora.org>, <beanhuo@...ron.com>,
<cang@...eaurora.org>, <linux-mediatek@...ts.infradead.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <kuohong.wang@...iatek.com>,
<peter.wang@...iatek.com>, <chun-hung.wu@...iatek.com>,
<andy.teng@...iatek.com>, <stable@...r.kernel.org>,
<linux-scsi-owner@...r.kernel.org>
Subject: Re: [PATCH v1 1/2] scsi: ufs: set device as default active power
mode during initialization only
Hi Asutosh,
> I see that there's a get_sync done before.
> So, how would the suspend be triggered in that case?
>
Would you mean pm_runtime_get_sync() in ufshcd_init()?
If yes, it will only happen during initialization.
The runtime resume path may go through ufshcd_probe_hba() without
ufshcd_init() invoked before, for example,
ufshcd_probe_hba+0xe10/0x1874
ufshcd_host_reset_and_restore+0x114/0x1a4
ufshcd_resume+0x1d0/0x480
ufshcd_runtime_resume+0x40/0x188
ufshcd_pltfrm_runtime_resume+0x10/0x18
pm_generic_runtime_resume+0x24/0x44
__rpm_callback+0x100/0x250
rpm_resume+0x548/0x7c8
rpm_resume+0x2b4/0x7c8
rpm_resume+0x2b4/0x7c8
rpm_resume+0x2b4/0x7c8
pm_runtime_work+0x9c/0xa0
process_one_work+0x210/0x4e0
worker_thread+0x390/0x520
kthread+0x154/0x18c
ret_from_fork+0x10/0x18
This case happens if link is in "off" state while resume.
Thanks,
Stanley
Powered by blists - more mailing lists