mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
Merge "defconfig: Enable CONFIG_UFS_DBG for general builds"
This commit is contained in:
commit
461e53e008
4 changed files with 29 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ CONFIG_LIMIT_MOVABLE_ZONE_ALLOC=y
|
|||
CONFIG_MSM_BT_POWER=m
|
||||
CONFIG_I2C_RTC6226_QCA=m
|
||||
CONFIG_SCSI_UFSHCD_QTI=y
|
||||
# CONFIG_UFS_DBG is not set
|
||||
CONFIG_SCSI_UFS_BSG=y
|
||||
CONFIG_MSM_EXT_DISPLAY=y
|
||||
CONFIG_SCSI_UFSHCD=y
|
||||
|
|
|
|||
|
|
@ -58,3 +58,4 @@ CONFIG_QCOM_IRQ_STAT=y
|
|||
CONFIG_QCOM_INITIAL_LOGBUF=y
|
||||
CONFIG_QCOM_DYN_MINIDUMP_STACK=y
|
||||
CONFIG_QCOM_MINIDUMP_PANIC_CPU_CONTEXT=y
|
||||
CONFIG_UFS_DBG=y
|
||||
|
|
|
|||
|
|
@ -68,6 +68,17 @@ config SCSI_UFSHCD_QTI
|
|||
However, do not compile this as a module if your root file system
|
||||
(the one containing the directory /) is located on a UFS device.
|
||||
|
||||
config UFS_DBG
|
||||
bool "Universal Flash Storage Debug Mode"
|
||||
depends on (SCSI_UFSHCD || SCSI_UFSHCD_QTI)
|
||||
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 SCSI_UFSHCD && PCI
|
||||
|
|
|
|||
|
|
@ -3595,12 +3595,28 @@ static ssize_t err_count_show(struct device *dev,
|
|||
|
||||
static DEVICE_ATTR_RO(err_count);
|
||||
|
||||
static ssize_t dbg_state_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
int dbg_en = 0;
|
||||
|
||||
#if defined(CONFIG_UFS_DBG)
|
||||
dbg_en = 1;
|
||||
#endif
|
||||
|
||||
return scnprintf(buf, PAGE_SIZE, "%d\n", dbg_en);
|
||||
}
|
||||
|
||||
|
||||
static DEVICE_ATTR_RO(dbg_state);
|
||||
|
||||
static struct attribute *ufs_qcom_sysfs_attrs[] = {
|
||||
&dev_attr_err_state.attr,
|
||||
&dev_attr_power_mode.attr,
|
||||
&dev_attr_bus_speed_mode.attr,
|
||||
&dev_attr_clk_status.attr,
|
||||
&dev_attr_err_count.attr,
|
||||
&dev_attr_dbg_state.attr,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue