ufs: add support to allow non standard behaviours (quirks)
authorYaniv Gardi <ygardi@codeaurora.org>
Tue, 31 Mar 2015 14:37:14 +0000 (17:37 +0300)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 10 Apr 2015 15:53:56 +0000 (08:53 -0700)
commitcad2e03d8607793fd71a830b4b41fc8e9e9995ea
tree4ffd08cf1f701eb08fab9c4c01d9d8a84386dae4
parentbfdbe8ba21291c024afcec95b7bd515b5bf69689
ufs: add support to allow non standard behaviours (quirks)

Some implementation of UFS host controller HW might have some non-standard
behaviours (quirks) when compared to behaviour specified by UFSHCI
specification. This patch add support to allow specifying all such quirks
to standard UFS host controller driver so standard driver takes them into
account.

In this change a UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS is introduced,
where a minimum delay of 1ms is required before DME commands for
stability purposes.

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
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h