Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108973
b: refs/heads/master
c: e8164f6
h: refs/heads/master
i:
  108971: ecc6f3e
v: v3
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Aug 21, 2008
1 parent e530619 commit c56152d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 39 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 746cdd0b2d1254b11382789b6630c4d379bdcf13
refs/heads/master: e8164f64caff68d4e878e1719d88d145faa75f1d
13 changes: 6 additions & 7 deletions trunk/drivers/usb/musb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,11 @@ config USB_TUSB_OMAP_DMA
help
Enable DMA transfers on TUSB 6010 when OMAP DMA is available.

config USB_MUSB_LOGLEVEL
config USB_MUSB_DEBUG
depends on USB_MUSB_HDRC
int 'Logging Level (0 - none / 3 - annoying / ... )'
default 0
bool "Enable debugging messages"
default n
help
Set the logging level. 0 disables the debugging altogether,
although when USB_DEBUG is set the value is at least 1.
Starting at level 3, per-transfer (urb, usb_request, packet,
or dma transfer) tracing may kick in.
This enables musb debugging. To set the logging level use the debug
module parameter. Starting at level 3, per-transfer (urb, usb_request,
packet, or dma transfer) tracing may kick in.
16 changes: 2 additions & 14 deletions trunk/drivers/usb/musb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,6 @@ endif

# Debugging

MUSB_DEBUG:=$(CONFIG_USB_MUSB_LOGLEVEL)

ifeq ("$(strip $(MUSB_DEBUG))","")
ifdef CONFIG_USB_DEBUG
MUSB_DEBUG:=1
else
MUSB_DEBUG:=0
endif
ifeq ($(CONFIG_USB_MUSB_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif

ifneq ($(MUSB_DEBUG),0)
EXTRA_CFLAGS += -DDEBUG
endif

EXTRA_CFLAGS += -DMUSB_DEBUG=$(MUSB_DEBUG)
17 changes: 4 additions & 13 deletions trunk/drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,14 @@



#if MUSB_DEBUG > 0
unsigned debug = MUSB_DEBUG;
module_param(debug, uint, 0);
MODULE_PARM_DESC(debug, "initial debug message level");

#define MUSB_VERSION_SUFFIX "/dbg"
#endif
unsigned debug;
module_param(debug, uint, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(debug, "Debug message level. Default = 0");

#define DRIVER_AUTHOR "Mentor Graphics, Texas Instruments, Nokia"
#define DRIVER_DESC "Inventra Dual-Role USB Controller Driver"

#define MUSB_VERSION_BASE "6.0"

#ifndef MUSB_VERSION_SUFFIX
#define MUSB_VERSION_SUFFIX ""
#endif
#define MUSB_VERSION MUSB_VERSION_BASE MUSB_VERSION_SUFFIX
#define MUSB_VERSION "6.0"

#define DRIVER_INFO DRIVER_DESC ", v" MUSB_VERSION

Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/usb/musb/musb_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@
__func__, __LINE__ , ## args); \
} } while (0)

#if MUSB_DEBUG > 0
extern unsigned debug;
#else
#define debug 0
#endif

static inline int _dbg_level(unsigned l)
{
Expand Down

0 comments on commit c56152d

Please sign in to comment.