Commit cd108691 authored by Andreas Larsson's avatar Andreas Larsson Committed by Felipe Balbi

usb: gadget: Make VERBOSE_DEBUG enableable via Kconfig

Create a way for VERBOSE_DEBUG to be enabled during
drivers/usb/gadget/ build.
Signed-off-by: default avatarAndreas Larsson <andreas@gaisler.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 7eb581d5
...@@ -58,6 +58,20 @@ config USB_GADGET_DEBUG ...@@ -58,6 +58,20 @@ config USB_GADGET_DEBUG
trying to track down. Never enable these messages for a trying to track down. Never enable these messages for a
production build. production build.
config USB_GADGET_VERBOSE
bool "Verbose debugging Messages (DEVELOPMENT)"
depends on USB_GADGET_DEBUG
help
Many controller and gadget drivers will print verbose debugging
messages if you use this option to ask for those messages.
Avoid enabling these messages, even if you're actively
debugging such a driver. Many drivers will emit so many
messages that the driver timings are affected, which will
either create new failure modes or remove the one you're
trying to track down. Never enable these messages for a
production build.
config USB_GADGET_DEBUG_FILES config USB_GADGET_DEBUG_FILES
boolean "Debugging information files (DEVELOPMENT)" boolean "Debugging information files (DEVELOPMENT)"
depends on PROC_FS depends on PROC_FS
......
# #
# USB peripheral controller drivers # USB peripheral controller drivers
# #
ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG
ccflags-$(CONFIG_USB_GADGET_VERBOSE) += -DVERBOSE_DEBUG
obj-$(CONFIG_USB_GADGET) += udc-core.o obj-$(CONFIG_USB_GADGET) += udc-core.o
obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment