Skip to content

Commit

Permalink
USB: EHCI: Move definition of EHCI_STATS to ehci.h
Browse files Browse the repository at this point in the history
Without this, platform drivers e.g. ehci-omap.c will see a
different version of struct ehci_hcd than ehci-hcd.c and
break reference to 'debug_dir' and 'priv' members when
CONFIG_USB_DEBUG is enabled.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Roger Quadros authored and Greg Kroah-Hartman committed Jan 22, 2013
1 parent 0f815a0 commit 9ec6e9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/usb/host/ehci-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ static const char hcd_name [] = "ehci_hcd";
#undef VERBOSE_DEBUG
#undef EHCI_URB_TRACE

#ifdef DEBUG
#define EHCI_STATS
#endif

/* magic numbers that can affect system performance */
#define EHCI_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */
#define EHCI_TUNE_RL_HS 4 /* nak throttle; see 4.9 */
Expand Down
4 changes: 4 additions & 0 deletions drivers/usb/host/ehci.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ typedef __u16 __bitwise __hc16;
#endif

/* statistics can be kept for tuning/monitoring */
#ifdef DEBUG
#define EHCI_STATS
#endif

struct ehci_stats {
/* irq usage */
unsigned long normal;
Expand Down

0 comments on commit 9ec6e9d

Please sign in to comment.