scsi: ufs: clear outstanding_request bit in case query timeout
authorYaniv Gardi <ygardi@codeaurora.org>
Mon, 1 Feb 2016 13:02:40 +0000 (15:02 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commita48353f6d5054f2d01d62e56a0d87bd606527cc3
tree742ab6f477835019f2cad24a5f3de80885fe21d1
parent14497328b6a628cedafdd2df1bb8d3e9d1d5338f
scsi: ufs: clear outstanding_request bit in case query timeout

When sending a query to the device returns with a timeout error, we
clear the corresponding bit in the DOORBELL register but we don't clear
the outstanding_request field as we should.  This patch fixes this bug.

Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Reviewed-by: Gilad Broner <gbroner@codeaurora.org>
Reviewed-by: Dolev Raviv <draviv@codeaurora.org>
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c