diff options
author | Nitin Rawat <nitirawa@codeaurora.org> | 2020-03-25 00:48:21 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-03-27 05:11:01 +0300 |
commit | 0c2039dc1591bb9a3b887753b37946f09f4bf208 (patch) | |
tree | de29c344c77e6b9f8d9a461112e68b94a999e7de /drivers/scsi/constants.c | |
parent | 73e990b4244d13599f093eab00f48d8172bbf9af (diff) | |
download | linux-0c2039dc1591bb9a3b887753b37946f09f4bf208.tar.xz |
scsi: ufs: Resume ufs host before accessing ufs device
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.
Link: https://lore.kernel.org/r/f712a4f7bdb0ae32e0d83634731e7aaa1b3a6cdd.1585009663.git.asutoshd@codeaurora.org
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/constants.c')
0 files changed, 0 insertions, 0 deletions