diff options
author | Felipe Balbi <felipe.balbi@nokia.com> | 2010-03-12 03:29:11 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:32 -0400 |
commit | 7f7f9e2a5af9e30c6a0c6743ac874f67e2ef4b72 (patch) | |
tree | 3d7fae6e559868e3ac110b3973650198458a815e /drivers/usb/musb/musb_debug.h | |
parent | 6ddc6dae4ab559b648bc348e3a48e113e92ab4a2 (diff) |
usb: musb: add debugfs support
for now only a simple register dump entry (which can
be rather useful on debugging) and a way to start
test modes.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_debug.h')
-rw-r--r-- | drivers/usb/musb/musb_debug.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_debug.h b/drivers/usb/musb/musb_debug.h index 9fc1db44c72c..d73afdbde3ee 100644 --- a/drivers/usb/musb/musb_debug.h +++ b/drivers/usb/musb/musb_debug.h | |||
@@ -59,4 +59,17 @@ static inline int _dbg_level(unsigned l) | |||
59 | 59 | ||
60 | extern const char *otg_state_string(struct musb *); | 60 | extern const char *otg_state_string(struct musb *); |
61 | 61 | ||
62 | #ifdef CONFIG_DEBUG_FS | ||
63 | extern int musb_init_debugfs(struct musb *musb); | ||
64 | extern void musb_exit_debugfs(struct musb *musb); | ||
65 | #else | ||
66 | static inline int musb_init_debugfs(struct musb *musb) | ||
67 | { | ||
68 | return 0; | ||
69 | } | ||
70 | static inline void musb_exit_debugfs(struct musb *musb) | ||
71 | { | ||
72 | } | ||
73 | #endif | ||
74 | |||
62 | #endif /* __MUSB_LINUX_DEBUG_H__ */ | 75 | #endif /* __MUSB_LINUX_DEBUG_H__ */ |