* [PATCH] OMAP:MUSB: Fixes the TT programming.
@ 2008-08-22 6:13 ajay.gupta-l0cyMroinI0
2008-08-22 6:30 ` David Brownell
0 siblings, 1 reply; 4+ messages in thread
From: ajay.gupta-l0cyMroinI0 @ 2008-08-22 6:13 UTC (permalink / raw)
To: linux-omap-u79uwXL29TY76Z2rM5mHXA
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA,
felipe.balbi-xNZwKgViW5gAvxtiuMwx3w, Ajay Kumar Gupta
From: Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org>
Fixes enumeration failures when a USB device attached to a LS hub is connected to OMAP EVM via HS hub. This is fixed by correctly programming hub address register in enqueue path.
Signed-off-by: Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org>
---
drivers/usb/musb/musb_host.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 52ac02a..90d3733 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1869,7 +1869,11 @@ static int musb_urb_enqueue(
/* set up tt info if needed */
if (urb->dev->tt) {
qh->h_port_reg = (u8) urb->dev->ttport;
- qh->h_addr_reg |= 0x80;
+ if (urb->dev->tt->hub)
+ qh->h_addr_reg =
+ (u8) urb->dev->tt->hub->devnum;
+ if (urb->dev->tt->multi)
+ qh->h_addr_reg |= 0x80;
}
}
}
--
1.5.6
--
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 related [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP:MUSB: Fixes the TT programming.
2008-08-22 6:13 [PATCH] OMAP:MUSB: Fixes the TT programming ajay.gupta-l0cyMroinI0
@ 2008-08-22 6:30 ` David Brownell
[not found] ` <200808212330.06650.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: David Brownell @ 2008-08-22 6:30 UTC (permalink / raw)
To: ajay.gupta; +Cc: linux-omap, linux-usb, felipe.balbi
On Thursday 21 August 2008, ajay.gupta@ti.com wrote:
> From: Ajay Kumar Gupta <ajay.gupta@ti.com>
>
> Fixes enumeration failures when a USB device attached to a LS hub
> is connected to OMAP EVM via HS hub. This is fixed by correctly
> programming hub address register in enqueue path.
>
> Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Looks right to me, other than the lack of line wrapping in that
summary (corrected above). Moreover, there ought to be some way
to make all high speed hosts share TT scheduling code ... ;)
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
> ---
> drivers/usb/musb/musb_host.c | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
> index 52ac02a..90d3733 100644
> --- a/drivers/usb/musb/musb_host.c
> +++ b/drivers/usb/musb/musb_host.c
> @@ -1869,7 +1869,11 @@ static int musb_urb_enqueue(
> /* set up tt info if needed */
> if (urb->dev->tt) {
> qh->h_port_reg = (u8) urb->dev->ttport;
> - qh->h_addr_reg |= 0x80;
> + if (urb->dev->tt->hub)
> + qh->h_addr_reg =
> + (u8) urb->dev->tt->hub->devnum;
> + if (urb->dev->tt->multi)
> + qh->h_addr_reg |= 0x80;
> }
> }
> }
> --
> 1.5.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP:MUSB: Fixes the TT programming.
[not found] ` <200808212330.06650.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
@ 2008-08-25 3:53 ` Greg KH
2008-08-25 7:57 ` Felipe Balbi
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2008-08-25 3:53 UTC (permalink / raw)
To: David Brownell
Cc: ajay.gupta-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-usb-u79uwXL29TY76Z2rM5mHXA,
felipe.balbi-xNZwKgViW5gAvxtiuMwx3w
On Thu, Aug 21, 2008 at 11:30:06PM -0700, David Brownell wrote:
> On Thursday 21 August 2008, ajay.gupta-l0cyMroinI0@public.gmane.org wrote:
> > From: Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org>
> >
> > Fixes enumeration failures when a USB device attached to a LS hub
> > is connected to OMAP EVM via HS hub. This is fixed by correctly
> > programming hub address register in enqueue path.
> >
> > Signed-off-by: Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org>
>
> Looks right to me, other than the lack of line wrapping in that
> summary (corrected above). Moreover, there ought to be some way
> to make all high speed hosts share TT scheduling code ... ;)
>
> Acked-by: David Brownell <dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Ok, for all MUSB patches, I'm going to wait until Felipe tells me to
accept them, as he's the subsystem/driver maintainer.
Felipe, is this ok? Can you just bundle up what you feel is good and
send them to me when they are ready (usually as soon as possible)?
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] OMAP:MUSB: Fixes the TT programming.
2008-08-25 3:53 ` Greg KH
@ 2008-08-25 7:57 ` Felipe Balbi
0 siblings, 0 replies; 4+ messages in thread
From: Felipe Balbi @ 2008-08-25 7:57 UTC (permalink / raw)
To: Greg KH; +Cc: David Brownell, ajay.gupta, linux-omap, linux-usb, felipe.balbi
On Sun, Aug 24, 2008 at 08:53:22PM -0700, Greg KH wrote:
> On Thu, Aug 21, 2008 at 11:30:06PM -0700, David Brownell wrote:
> > On Thursday 21 August 2008, ajay.gupta@ti.com wrote:
> > > From: Ajay Kumar Gupta <ajay.gupta@ti.com>
> > >
> > > Fixes enumeration failures when a USB device attached to a LS hub
> > > is connected to OMAP EVM via HS hub. This is fixed by correctly
> > > programming hub address register in enqueue path.
> > >
> > > Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
> >
> > Looks right to me, other than the lack of line wrapping in that
> > summary (corrected above). Moreover, there ought to be some way
> > to make all high speed hosts share TT scheduling code ... ;)
> >
> > Acked-by: David Brownell <dbrownell@users.sourceforge.net>
>
> Ok, for all MUSB patches, I'm going to wait until Felipe tells me to
> accept them, as he's the subsystem/driver maintainer.
>
> Felipe, is this ok? Can you just bundle up what you feel is good and
> send them to me when they are ready (usually as soon as possible)?
Ok. I'll queue them today and send to you in a few hours.
--
balbi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-25 7:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22 6:13 [PATCH] OMAP:MUSB: Fixes the TT programming ajay.gupta-l0cyMroinI0
2008-08-22 6:30 ` David Brownell
[not found] ` <200808212330.06650.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-08-25 3:53 ` Greg KH
2008-08-25 7:57 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox