ufs-qcom: save controller revision info in internal structure
commitbfdbe8ba21291c024afcec95b7bd515b5bf69689
authorYaniv Gardi <ygardi@codeaurora.org>
Tue, 31 Mar 2015 14:37:13 +0000 (31 17:37 +0300)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 10 Apr 2015 15:52:58 +0000 (10 08:52 -0700)
tree6193eececc213269af26b7f66135f95e4ac8375b
parenta776e39416cc4580b5a1688c3e44258888955996
ufs-qcom: save controller revision info in internal structure

Sometimes, specific information about the UFS controller revision is
required in order to determine certain operations or execute
controller dependent quirks.
In order to avoid reading the controller revision multiple times,
we simply read it once and save this information in internal structure.

Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Reviewed-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/ufs/ufs-qcom.c
drivers/scsi/ufs/ufs-qcom.h