scsi: ufs: add wrapper for retrying sending query attribute
authorYaniv Gardi <ygardi@codeaurora.org>
Mon, 1 Feb 2016 13:02:50 +0000 (15:02 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commit5e86ae441c73839fe4be0d7d9288951518c187ae
tree8d5dc55a7f48479a584af608531d2cb02741b9e9
parente3dfdc532d5c68f343733b5315488763153ede2c
scsi: ufs: add wrapper for retrying sending query attribute

Sometimes queries from the device might return a failure so it is
recommended to retry sending the query, before giving up.  This change
adds a wrapper to retry sending a query attribute, in cases where we
need to wait longer, before we continue, or before reporting a failure.

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