Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Bryan Wu <bryan.wu@analog.com>
To: David Brownell <david-b@pacbell.net>,
	Tony Lindgren <tony@atomide.com>,
	linux-omap-open-source <linux-omap-open-source@linux.omap.com>
Subject: [PATCH] [MUSB] musb_hdrc: disable sending PING packet in host mode.
Date: Thu, 20 Dec 2007 22:10:45 +0800	[thread overview]
Message-ID: <1198159845.6319.1.camel@roc-laptop> (raw)

From: Bryan Wu <bryan.wu@analog.com>
Date: Thu, 20 Dec 2007 15:25:34 +0800
Subject: [PATCH] [MUSB] musb_hdrc: disable sending PING packet in host
mode.

Some High Speed USB stick does not answer PING pakcet correctly, so
the USB enumeration will fail in MUSB host mode.

Disable using PING packet in host mode, almost all the USB stick
enumeration is OK on Blackfin BF54x/BF52x platform. I hope this is
a common problem in other MUSB platform.

This bug is tracked here:
https://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_id=141&tracker_item_id=3778

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
---
 drivers/usb/musb/musb_host.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 2ad2ed9..34a2991 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -1112,6 +1112,8 @@ irqreturn_t musb_h_ep0_irq(struct musb *musb)
                                csr = MUSB_CSR0_H_STATUSPKT
                                        | MUSB_CSR0_TXPKTRDY;
 
+                       csr |= MUSB_CSR0_H_DIS_PING;
+
                        /* flag status stage */
                        musb->ep0_stage = MUSB_EP0_STATUS;
 
-- 
1.5.3

             reply	other threads:[~2007-12-20 14:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-20 14:10 Bryan Wu [this message]
     [not found] ` <200712201457.34851.david-b@pacbell.net>
2007-12-21  3:01   ` [PATCH] [MUSB] musb_hdrc: disable sending PING packet in host mode Bryan Wu

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=1198159845.6319.1.camel@roc-laptop \
    --to=bryan.wu@analog.com \
    --cc=david-b@pacbell.net \
    --cc=linux-omap-open-source@linux.omap.com \
    --cc=tony@atomide.com \
    /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