]> 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)
commit7e072bef87242c3756e5de587ec2986142516037
tree0941034b26a9fd10a9bd708db3ff5650cd59a964
parent5d3683fc6be4caa57ecc0e9a4abeee72e6edf7f5
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