b6cacaf204
People testing have a need to know how many errors might be occurring over time. Add error counters and expose them via debugfs. A module initcall is used to create a debugfs root directory for ufshcd-related items. In the case that modules are built-in, then initialization is done in link order, so move ufshcd-core to the top of the Makefile. Link: https://lore.kernel.org/r/20210107072538.21782-1-adrian.hunter@intel.com Reviewed-by: Avri Altman <avri.altman@wdc.com> Reviewed-by: Bean Huo <beanhuo@micron.com> Reviewed-by: Can Guo <cang@codeaurora.org> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
24 lines
1017 B
Makefile
24 lines
1017 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# UFSHCD makefile
|
|
|
|
# The link order is important here. ufshcd-core must initialize
|
|
# before vendor drivers.
|
|
obj-$(CONFIG_SCSI_UFSHCD) += ufshcd-core.o
|
|
ufshcd-core-y += ufshcd.o ufs-sysfs.o
|
|
ufshcd-core-$(CONFIG_DEBUG_FS) += ufs-debugfs.o
|
|
ufshcd-core-$(CONFIG_SCSI_UFS_BSG) += ufs_bsg.o
|
|
ufshcd-core-$(CONFIG_SCSI_UFS_CRYPTO) += ufshcd-crypto.o
|
|
|
|
obj-$(CONFIG_SCSI_UFS_DWC_TC_PCI) += tc-dwc-g210-pci.o ufshcd-dwc.o tc-dwc-g210.o
|
|
obj-$(CONFIG_SCSI_UFS_DWC_TC_PLATFORM) += tc-dwc-g210-pltfrm.o ufshcd-dwc.o tc-dwc-g210.o
|
|
obj-$(CONFIG_SCSI_UFS_CDNS_PLATFORM) += cdns-pltfrm.o
|
|
obj-$(CONFIG_SCSI_UFS_QCOM) += ufs_qcom.o
|
|
ufs_qcom-y += ufs-qcom.o
|
|
ufs_qcom-$(CONFIG_SCSI_UFS_CRYPTO) += ufs-qcom-ice.o
|
|
obj-$(CONFIG_SCSI_UFS_EXYNOS) += ufs-exynos.o
|
|
obj-$(CONFIG_SCSI_UFSHCD_PCI) += ufshcd-pci.o
|
|
obj-$(CONFIG_SCSI_UFSHCD_PLATFORM) += ufshcd-pltfrm.o
|
|
obj-$(CONFIG_SCSI_UFS_HISI) += ufs-hisi.o
|
|
obj-$(CONFIG_SCSI_UFS_MEDIATEK) += ufs-mediatek.o
|
|
obj-$(CONFIG_SCSI_UFS_TI_J721E) += ti-j721e-ufs.o
|