summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_core.c
diff options
context:
space:
mode:
authorFelipe Balbi2010-03-12 09:29:11 +0100
committerGreg Kroah-Hartman2010-05-20 22:21:32 +0200
commit7f7f9e2a5af9e30c6a0c6743ac874f67e2ef4b72 (patch)
tree3d7fae6e559868e3ac110b3973650198458a815e /drivers/usb/musb/musb_core.c
parentUSB: musb: allow the Blackfin vrsel gpio to be active low (diff)
downloadkernel-qcow2-linux-7f7f9e2a5af9e30c6a0c6743ac874f67e2ef4b72.tar.gz
kernel-qcow2-linux-7f7f9e2a5af9e30c6a0c6743ac874f67e2ef4b72.tar.xz
kernel-qcow2-linux-7f7f9e2a5af9e30c6a0c6743ac874f67e2ef4b72.zip
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_core.c')
-rw-r--r--drivers/usb/musb/musb_core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 28ff0330bcea..3466cd53e9c8 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2054,6 +2054,10 @@ bad_config:
if (status < 0)
goto fail3;
+ status = musb_init_debugfs(musb);
+ if (status < 0)
+ goto fail2;
+
#ifdef CONFIG_SYSFS
status = sysfs_create_group(&musb->controller->kobj, &musb_attr_group);
if (status)
@@ -2150,6 +2154,7 @@ static int __exit musb_remove(struct platform_device *pdev)
* - Peripheral mode: peripheral is deactivated (or never-activated)
* - OTG mode: both roles are deactivated (or never-activated)
*/
+ musb_exit_debugfs(musb);
musb_shutdown(pdev);
#ifdef CONFIG_USB_MUSB_HDRC_HCD
if (musb->board_mode == MUSB_HOST)