scsi: Retry inquiry 3 times to overcome Unit Attention condition
authorFaiz Abbas <faiz_abbas@ti.com>
Tue, 15 Oct 2019 12:54:34 +0000 (18:24 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 24 Oct 2019 00:47:12 +0000 (20:47 -0400)
commitd48f00ed11d04eb76d4510b3db1d7f36f758d4e9
tree95b6c6860d7c74934c14c2a1a0d1976ed413b144
parent4ff572830eb1ae95fa85f8ab585521ccc1d86845
scsi: Retry inquiry 3 times to overcome Unit Attention condition

The UFS SCSI device LUNs are observed to return failure the first time a
unit ready inquiry is sent and pass on the second try. Send this
inquiry 3 times to make sure device is ready.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
drivers/scsi/scsi.c