On Wed, 2021-10-27 at 16:06 +0300, Adrian Hunter wrote: > If the UFS Device WLUN is runtime suspended and is in the same power > > mode, link state and b_rpm_dev_flush_capable (BKOP or WB buffer flush > etc) > > state, then it can remain runtime suspended instead of being runtime > > resumed and then system suspended. > > > > The following patch has cleared the way for that to happen: > > scsi: core: pm: Only runtime resume if necessary > > > > So amend the logic accordingly. > > > > Note, the ufs-hisi driver uses different RPM and SPM, but it is made > > explicit by a new parameter to suspend prepare. > > > > Signed-off-by: Adrian Hunter <adrian.hunter@xxxxxxxxx> > > Reviewed-by: Asutosh Das <asutoshd@xxxxxxxxxxxxxx> Reviewed-by: Bean Huo <beanhuo@xxxxxxxxxx>