scsi: ufs: add quirk to handle broken UFS HCI version
authorYaniv Gardi <ygardi@codeaurora.org>
Sun, 17 May 2015 15:55:05 +0000 (18:55 +0300)
committerJames Bottomley <JBottomley@Odin.com>
Tue, 2 Jun 2015 20:20:14 +0000 (13:20 -0700)
commit9949e702e69718965f3c3c6787eb17d420daa7df
tree969e36fdaed3154ace03c9284c7bc5d7c54c270e
parent2c0cc2e2693b3c13cf007cfd25b6ea43a1eceb45
scsi: ufs: add quirk to handle broken UFS HCI version

Some host controller hardware controllers may not advertise correct
version in UFS HCI VER register. To workaround this, add new quirk
and call the host controller hardware vendor specific callback to
get the correct UFS HCI version register value.

Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h
drivers/scsi/ufs/ufshci.h