OSDN Git Service

scsi: ufs: Remove a redundant command completion logic in error handler
authorCan Guo <cang@codeaurora.org>
Mon, 24 May 2021 08:36:56 +0000 (01:36 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Jun 2021 02:18:03 +0000 (22:18 -0400)
commit1cca0c3fdc91db15bbcd58c4dc49b7b97d0891fe
treeae88a944e60b4ddb2861c4842de0d3c47507c149
parent80927822e8b6be46f488524cd7d5fe683de97fc4
scsi: ufs: Remove a redundant command completion logic in error handler

ufshcd_host_reset_and_restore() anyways completes all pending requests
before starts re-probing, so there is no need to complete the command on
the highest bit in tr_doorbell in advance.

Link: https://lore.kernel.org/r/1621845419-14194-2-git-send-email-cang@codeaurora.org
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c