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

Commit eb3856f9 authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli Committed by Gerrit - the friendly Code Review server
Browse files

diag: Add snapshot of diag driver



This snapshot of diag driver code is taken as of msm-4.14
'commit 025196c47124 ("diag: Avoid race while closing and
opening mhi channels")'.

The diag driver enables diagnostic communication between apps
and peripherals.

Change-Id: Idf817fbc0d9e2ff377640f6f4e8d888c45ed47a8
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent ade232c6
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -539,6 +539,7 @@ config DEVPORT
source "drivers/s390/char/Kconfig"
source "drivers/s390/char/Kconfig"


source "drivers/char/xillybus/Kconfig"
source "drivers/char/xillybus/Kconfig"
source "drivers/char/diag/Kconfig"


config MSM_ADSPRPC
config MSM_ADSPRPC
        tristate "QTI ADSP RPC driver"
        tristate "QTI ADSP RPC driver"
+1 −0
Original line number Original line Diff line number Diff line
@@ -62,3 +62,4 @@ ifdef CONFIG_COMPAT
  obj-$(CONFIG_MSM_ADSPRPC)	+= adsprpc_compat.o
  obj-$(CONFIG_MSM_ADSPRPC)	+= adsprpc_compat.o
endif
endif
obj-$(CONFIG_ADI)		+= adi.o
obj-$(CONFIG_ADI)		+= adi.o
obj-$(CONFIG_DIAG_CHAR)		+= diag/
+39 −0
Original line number Original line Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
menu "Diag Support"

config DIAG_CHAR
	tristate "DIAG CHAR Interface Core"
	default n
	depends on USB_CONFIGFS_F_DIAG || USB_FUNCTION_DIAG || USB_QCOM_MAEMO
	depends on ARCH_QCOM
	depends on POWER_RESET_QCOM
	select CRC_CCITT
	help
	  Char driver interface for SoC Diagnostic information. The DIAG Char
	  driver provides diag forwarding to user space and SoC Peripherals.
	  This enables diagchar for maemo usb gadget or android usb gadget
	  based on config selected.

config DIAG_OVER_USB
	bool "Enable DIAG traffic to go over USB"
	depends on DIAG_CHAR
	depends on ARCH_QCOM
	default y
	help
	  Diag over USB enables sending DIAG traffic over a USB transport. When
	  the USB endpoints become available, the DIAG driver will enable Diag
	  traffic over USB. This allows for host side tools to parse and display
	  Diag traffic from the USB endpoint.

config DIAGFWD_BRIDGE_CODE
	bool "Enable QSC/9K DIAG traffic over SMUX/HSIC"
	depends on DIAG_CHAR
	depends on USB_QCOM_DIAG_BRIDGE || MHI_BUS
	default y
	help
	  SMUX/HSIC/MHI Transport Layer for DIAG Router. When the MHI/SMUX
	  endpoints become available, this bridge driver enables DIAG
	  over MHI or SMUX to communicate with the remote processors and
	  receive/send diag traffic to remote processors.

endmenu
+7 −0
Original line number Original line Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_DIAG_CHAR) := diagchar.o
obj-$(CONFIG_DIAGFWD_BRIDGE_CODE) += diagfwd_bridge.o
obj-$(CONFIG_USB_QCOM_DIAG_BRIDGE) += diagfwd_hsic.o
obj-$(CONFIG_USB_QCOM_DIAG_BRIDGE) += diagfwd_smux.o
obj-$(CONFIG_MHI_BUS) += diagfwd_mhi.o
diagchar-objs := diagchar_core.o diagchar_hdlc.o diagfwd.o diagfwd_peripheral.o diagfwd_socket.o diagfwd_rpmsg.o diag_mux.o diag_memorydevice.o diag_usb.o diagmem.o diagfwd_cntl.o diag_dci.o diag_masks.o diag_debugfs.o
+3306 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading