Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb03ec54 authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

lib/Kconfig.debug: add UFS_FAULT_INJECTION config



UFS_FAULT_INJECTION config definition was present on msm-4.4 kernel but
was missed on msm-4.9 while taking snapshot from msm-4.4. Add this config
now so it can be enabled later for debug purposes.

Change-Id: Ia62e30f2f123c0a8c79affb205d1fb956f8f6d57
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent 2d097a73
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1724,6 +1724,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 contoller driver and test how the driver handles
	 the retries from block/SCSI mid layer.

config FAIL_FUTEX
	bool "Fault-injection capability for futexes"
	select DEBUG_FS