scsi: ufs: retry failed query flag requests
authorYaniv Gardi <ygardi@codeaurora.org>
Mon, 1 Feb 2016 13:02:46 +0000 (15:02 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commitdc3c8d3a7d455859c58de8ccfaea5def6b512079
tree7c8d28b0fecbd1ffe507ca0de18601a636b44778
parent53c12d0ef6fcb77aaaa4640f3e17ffe2fd9cffa0
scsi: ufs: retry failed query flag requests

UFS flag query requests may fail sometimes due to timeouts etc.  Add a
wrapper function to retry up to 10 times in case of such failure,
similar to retries being made for attribute queries.

Reviewed-by: Dolev Raviv <draviv@codeaurora.org>
Signed-off-by: Gilad Broner <gbroner@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
drivers/scsi/ufs/ufshcd.h