]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite38f3793e5724aee98b1ffbb78a1ab4df151cec5
tree4ffd08cf1f701eb08fab9c4c01d9d8a84386dae4
parent06335736b68666a68dad1067ad98a18ac9141895
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