From c905f4e5f4e83cb96d8c6655a4bb5aa433e490cf Mon Sep 17 00:00:00 2001 From: "Bao D. Nguyen" Date: Wed, 20 Apr 2022 00:02:11 -0700 Subject: [PATCH] scsi: ufs: Add configuration option for UFS debug support Add CONFIG_UFS_DBG option to support UFS debug features. Change-Id: I98fb46223b74da587f265d96abd51526f0b488fd Signed-off-by: Bao D. Nguyen Signed-off-by: Can Guo --- drivers/scsi/ufs/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index 9fe27b01904e..76a694d82bee 100644 --- a/drivers/scsi/ufs/Kconfig +++ b/drivers/scsi/ufs/Kconfig @@ -52,6 +52,17 @@ config SCSI_UFSHCD if SCSI_UFSHCD +config UFS_DBG + bool "Universal Flash Storage Debug Mode" + depends on SCSI_UFSHCD + help + This selects the debug mode for ufs vendor driver. + Enables tracing for QTI ufs driver. + This also enables ftrace for ufs core and SCSI. + Enabling this would have an adverse performance impact on disk IO. + + If unsure, say N. + config SCSI_UFSHCD_PCI tristate "PCI bus based UFS Controller support" depends on PCI