RE: [<PATCH v1> 1/1] scsi: ufs: Resume ufs host before accessing ufs device

From: Avri Altman
Date: Wed Mar 25 2020 - 06:35:30 EST


>
> From: Nitin Rawat <nitirawa@xxxxxxxxxxxxxx>
>
> As a part of sysfs reading of descriptors/attributes/flags,
> query commands should only be executed when hba's
> power runtime status is active.
> To guarantee this, add pm_runtime_get/put_sync()
> to those paths where query commands are sent.
>
> Signed-off-by: Nitin Rawat <nitirawa@xxxxxxxxxxxxxx>
> Signed-off-by: Asutosh Das <asutoshd@xxxxxxxxxxxxxx>
Reviewed-by: Avri Altman <avri.altman@xxxxxxx>