ufs: Porting UFS driver's changes from kernel msm-4.14 to msm-kona

This is a snapshot of the UFS driver taken as of msm-4.14 commit
<3d758ed5e344> ("scsi: squash of multiple fixes for msm-4.4 kernel"). This
change contains the UFS driver's changes for merging from kernel version
msm-4.14 to msm-kona.

Change-Id: Iece7757565b2fe683956c419cf98a110c4de07f9
Signed-off-by: Can Guo <cang@codeaurora.org>
This commit is contained in:
Can Guo
2018-06-25 01:05:49 -07:00
parent 2c1e3aeea5
commit 2d8e79c2ee
57 changed files with 11914 additions and 2137 deletions

View File

@@ -1608,6 +1608,20 @@ config FAIL_MMC_REQUEST
and to test how the mmc host driver handles retries from
the block device.
config UFS_FAULT_INJECTION
bool "Fault-injection capability for UFS IO"
select DEBUG_FS
depends on FAULT_INJECTION && SCSI_UFSHCD
help
Provide fault-injection capability for UFS IO.
This will make the UFS host controller driver to randomly
abort ongoing commands in the host controller, update OCS
field according to the injected fatal error and can also
forcefully hang the command indefinitely till upper layer
timeout occurs. This is useful to test error handling in
the UFS controller driver and test how the driver handles
the retries from block/SCSI mid layer.
config FAULT_INJECTION_STACKTRACE_FILTER
bool "stacktrace filter for fault-injection capabilities"
depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT