]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs-bsg: Wake the device before sending raw upiu commands
authorAvri Altman <avri.altman@wdc.com>
Thu, 10 Oct 2019 08:31:07 +0000 (11:31 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 Oct 2019 22:02:16 +0000 (18:02 -0400)
commit1915ab711b91c01af9527332abf022b9e391a72f
tree3d2f43edc540a002cec8f261136e71a0357d34f2
parenta9f4d32d4d96bdc7a54bf5a95d1a153527af92c4
scsi: ufs-bsg: Wake the device before sending raw upiu commands

The scsi async probe process is calling blk_pm_runtime_init for each lun,
and then those request queues are monitored by the block layer pm
engine (blk-pm.c).  This is however, not the case for scsi-passthrough
queues, created by bsg_setup_queue().

So the ufs-bsg driver might send various commands, disregarding the pm
status of the device. This is wrong, regardless if its request queue is
pm-aware or not.

Fixes: 715c6770f9ff (scsi: ufs: Add a bsg endpoint that supports UPIUs)
Link: https://lore.kernel.org/r/1570696267-8487-1-git-send-email-avri.altman@wdc.com
Reported-by: Yuliy Izrailov <yuliy.izrailov@wdc.com>
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs_bsg.c