public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: ajay.gupta@ti.com
Cc: linux-omap@vger.kernel.org, linux-usb@vger.kernel.org,
	felipe.balbi@nokia.com
Subject: Re: [PATCH] OMAP:MUSB: Fixes the TT programming.
Date: Thu, 21 Aug 2008 23:30:06 -0700	[thread overview]
Message-ID: <200808212330.06650.david-b@pacbell.net> (raw)
In-Reply-To: <1219385613-20108-1-git-send-email-ajay.gupta@ti.com>

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
> 



  reply	other threads:[~2008-08-22  6:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-22  6:13 [PATCH] OMAP:MUSB: Fixes the TT programming ajay.gupta-l0cyMroinI0
2008-08-22  6:30 ` David Brownell [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200808212330.06650.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=ajay.gupta@ti.com \
    --cc=felipe.balbi@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox