]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: No need to send Abort Task if the task in DB was cleared
authorBean Huo <beanhuo@micron.com>
Tue, 11 Aug 2020 14:18:59 +0000 (16:18 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Aug 2020 02:09:14 +0000 (22:09 -0400)
commitaadad641e50cce2f4bb15e3b1dd4b94c05756589
tree0941034b26a9fd10a9bd708db3ff5650cd59a964
parentdcdec39980f5698ab687f449438a11faf9860f76
scsi: ufs: No need to send Abort Task if the task in DB was cleared

If the bit corresponding to a task in the Doorbell register has been
cleared, no need to poll the status of the task on the device side and to
send an Abort Task TM. Instead, let it directly goto cleanup.

In addition, to keep original debug output, move the goto below the debug
print.

Link: https://lore.kernel.org/r/20200811141859.27399-3-huobean@gmail.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c