diff options
author | David Vrabel <david.vrabel@csr.com> | 2008-11-26 08:36:59 -0500 |
---|---|---|
committer | David Vrabel <david.vrabel@csr.com> | 2008-11-26 08:36:59 -0500 |
commit | dcc7461eef7341e84e2f7274f904ce01a43b2506 (patch) | |
tree | 25afd640b7ed7fc1efc29fd0075f0d399af93e84 /drivers/uwb/uwb-debug.c | |
parent | e4b49580f70380a4216ff8220c8f48a95e21c238 (diff) |
wusb: add debug files for ASL, PZL and DI to the whci-hcd driver
Add asl, pzl and di debugfs files to uwb/uwbN/wusbhc for WHCI host
controller. These dump the current ASL, PZL and DI buffer.
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/uwb/uwb-debug.c')
-rw-r--r-- | drivers/uwb/uwb-debug.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/uwb/uwb-debug.c b/drivers/uwb/uwb-debug.c index ec1b7a403ff3..a6debb9baf38 100644 --- a/drivers/uwb/uwb-debug.c +++ b/drivers/uwb/uwb-debug.c | |||
@@ -407,3 +407,16 @@ void uwb_dbg_exit(void) | |||
407 | { | 407 | { |
408 | debugfs_remove(root_dir); | 408 | debugfs_remove(root_dir); |
409 | } | 409 | } |
410 | |||
411 | /** | ||
412 | * uwb_dbg_create_pal_dir - create a debugfs directory for a PAL | ||
413 | * @pal: The PAL. | ||
414 | */ | ||
415 | struct dentry *uwb_dbg_create_pal_dir(struct uwb_pal *pal) | ||
416 | { | ||
417 | struct uwb_rc *rc = pal->rc; | ||
418 | |||
419 | if (root_dir && rc->dbg && rc->dbg->root_d && pal->name) | ||
420 | return debugfs_create_dir(pal->name, rc->dbg->root_d); | ||
421 | return NULL; | ||
422 | } | ||