scsi: ufs: add retry for query descriptors
authorYaniv Gardi <ygardi@codeaurora.org>
Thu, 10 Mar 2016 15:37:14 +0000 (17:37 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Mar 2016 01:04:45 +0000 (21:04 -0400)
commita70e91b8bbaa3924d6598f9b4d1d468d2c88e6d3
tree914eb7cf0c893c6ee4fb2242868a0992112f899b
parent583fa62d082483412715af9ab4f528fcf00e4c38
scsi: ufs: add retry for query descriptors

Query commands have 100ms timeout and it may timeout if they are
issued in parallel to ongoing read/write SCSI commands, this change
adds the retry (max: 10) in case command timeouts.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Subhash Jadavani <subhashj@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