]> 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)
commite717b9243971983d7c041c77952d56907f8d1ba9
tree4ffd08cf1f701eb08fab9c4c01d9d8a84386dae4
parent3f1c7c61a586bd17b4adda0f515ca2dc2ea3d7b0
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