Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
* [PATCH] USB: musb: move musb debugfs entry under usb debugfs root dir
@ 2010-08-27 15:45 tom.leiming
       [not found] ` <1282923939-14872-1-git-send-email-tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: tom.leiming @ 2010-08-27 15:45 UTC (permalink / raw)
  To: greg, dbrownell, felipe.balbi; +Cc: linux-usb, linux-omap, Ming Lei

From: Ming Lei <tom.leiming@gmail.com>

All hcd's debugfs entries are under usb debugfs root dir already,
so musb should not be a exception.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 drivers/usb/musb/musb_debugfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c
index c79a5e3..b19c31c 100644
--- a/drivers/usb/musb/musb_debugfs.c
+++ b/drivers/usb/musb/musb_debugfs.c
@@ -257,7 +257,7 @@ int __init musb_init_debugfs(struct musb *musb)
 	struct dentry		*file;
 	int			ret;
 
-	root = debugfs_create_dir("musb", NULL);
+	root = debugfs_create_dir("musb", usb_debug_root);
 	if (IS_ERR(root)) {
 		ret = PTR_ERR(root);
 		goto err0;
-- 
1.6.2.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH] USB: musb: move musb debugfs entry under usb debugfs root dir
       [not found] ` <1282923939-14872-1-git-send-email-tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2010-08-27 17:04   ` Gadiyar, Anand
       [not found]     ` <5A47E75E594F054BAF48C5E4FC4B92AB0328C1CBD0-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Gadiyar, Anand @ 2010-08-27 17:04 UTC (permalink / raw)
  To: tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org,
	dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	"felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org" <feli>
  Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> 
> From: Ming Lei <tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 
> All hcd's debugfs entries are under usb debugfs root dir already,
> so musb should not be a exception.
> 
> Signed-off-by: Ming Lei <tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
>  drivers/usb/musb/musb_debugfs.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c
> index c79a5e3..b19c31c 100644
> --- a/drivers/usb/musb/musb_debugfs.c
> +++ b/drivers/usb/musb/musb_debugfs.c
> @@ -257,7 +257,7 @@ int __init musb_init_debugfs(struct musb *musb)
>  	struct dentry		*file;
>  	int			ret;
>  
> -	root = debugfs_create_dir("musb", NULL);
> +	root = debugfs_create_dir("musb", usb_debug_root);
>  	if (IS_ERR(root)) {
>  		ret = PTR_ERR(root);
>  		goto err0;

Hi,

This will not work when you do not have USB Host support enabled in
your kernel.

- Anand


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] USB: musb: move musb debugfs entry under usb debugfs root dir
       [not found]     ` <5A47E75E594F054BAF48C5E4FC4B92AB0328C1CBD0-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
@ 2010-08-27 17:16       ` Greg KH
       [not found]         ` <20100827171642.GB19775-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2010-08-27 17:16 UTC (permalink / raw)
  To: Gadiyar, Anand
  Cc: tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org,
	linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Fri, Aug 27, 2010 at 10:34:45PM +0530, Gadiyar, Anand wrote:
> tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> > 
> > From: Ming Lei <tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > 
> > All hcd's debugfs entries are under usb debugfs root dir already,
> > so musb should not be a exception.
> > 
> > Signed-off-by: Ming Lei <tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > ---
> >  drivers/usb/musb/musb_debugfs.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c
> > index c79a5e3..b19c31c 100644
> > --- a/drivers/usb/musb/musb_debugfs.c
> > +++ b/drivers/usb/musb/musb_debugfs.c
> > @@ -257,7 +257,7 @@ int __init musb_init_debugfs(struct musb *musb)
> >  	struct dentry		*file;
> >  	int			ret;
> >  
> > -	root = debugfs_create_dir("musb", NULL);
> > +	root = debugfs_create_dir("musb", usb_debug_root);
> >  	if (IS_ERR(root)) {
> >  		ret = PTR_ERR(root);
> >  		goto err0;
> 
> Hi,
> 
> This will not work when you do not have USB Host support enabled in
> your kernel.

Then we should move the creation of usb_debug_root out into somewhere
that will work for both types of systems, right?  Now where that might
be, I can't tell at the moment...

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] USB: musb: move musb debugfs entry under usb debugfs root dir
       [not found]         ` <20100827171642.GB19775-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
@ 2010-08-28  2:56           ` Ming Lei
  0 siblings, 0 replies; 4+ messages in thread
From: Ming Lei @ 2010-08-28  2:56 UTC (permalink / raw)
  To: Greg KH
  Cc: Gadiyar, Anand,
	dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org,
	linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

2010/8/28 Greg KH <greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>:
> On Fri, Aug 27, 2010 at 10:34:45PM +0530, Gadiyar, Anand wrote:
>> tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
>> >
>> > From: Ming Lei <tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>> >
>> > All hcd's debugfs entries are under usb debugfs root dir already,
>> > so musb should not be a exception.
>> >
>> > Signed-off-by: Ming Lei <tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>> > ---
>> >  drivers/usb/musb/musb_debugfs.c |    2 +-
>> >  1 files changed, 1 insertions(+), 1 deletions(-)
>> >
>> > diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c
>> > index c79a5e3..b19c31c 100644
>> > --- a/drivers/usb/musb/musb_debugfs.c
>> > +++ b/drivers/usb/musb/musb_debugfs.c
>> > @@ -257,7 +257,7 @@ int __init musb_init_debugfs(struct musb *musb)
>> >     struct dentry           *file;
>> >     int                     ret;
>> >
>> > -   root = debugfs_create_dir("musb", NULL);
>> > +   root = debugfs_create_dir("musb", usb_debug_root);
>> >     if (IS_ERR(root)) {
>> >             ret = PTR_ERR(root);
>> >             goto err0;
>>
>> Hi,
>>
>> This will not work when you do not have USB Host support enabled in
>> your kernel.
>
> Then we should move the creation of usb_debug_root out into somewhere
> that will work for both types of systems, right?  Now where that might
> be, I can't tell at the moment...

Seems a little difficult to find a place to create usb_debug_root which may
support both usb host and device.

USB gadget framework doesn't depend on usbcore.

So please ignore the patch now, thanks.

-- 
Lei Ming
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-28  2:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-27 15:45 [PATCH] USB: musb: move musb debugfs entry under usb debugfs root dir tom.leiming
     [not found] ` <1282923939-14872-1-git-send-email-tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-08-27 17:04   ` Gadiyar, Anand
     [not found]     ` <5A47E75E594F054BAF48C5E4FC4B92AB0328C1CBD0-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-08-27 17:16       ` Greg KH
     [not found]         ` <20100827171642.GB19775-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2010-08-28  2:56           ` Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox