public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@mvista.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH] ARM: OMAP: MUSB: IRQ reset: babble handling is host only
Date: Fri, 17 Aug 2007 09:47:24 -0700	[thread overview]
Message-ID: <20070817164724.560795636@mvista.com> (raw)

In reset IRQ, move babble handling inside a host-ifdef since it
doesn't apply (or compile) for gadget.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
---
 drivers/usb/musb/plat_uds.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Index: dev/drivers/usb/musb/plat_uds.c
===================================================================
--- dev.orig/drivers/usb/musb/plat_uds.c
+++ dev/drivers/usb/musb/plat_uds.c
@@ -604,6 +604,7 @@ static irqreturn_t musb_stage0_irq(struc
 	 * only host sees babble; only peripheral sees bus reset.
 	 */
 	if (int_usb & MUSB_INTR_RESET) {
+#ifdef CONFIG_USB_MUSB_HDRC_HCD
 		if (devctl & MUSB_DEVCTL_HM) {
 			/*
 			 * Looks like non-HS BABBLE can be ignored, but
@@ -618,7 +619,9 @@ static irqreturn_t musb_stage0_irq(struc
 				ERR("Stopping host session because of babble\n");
 				musb_writeb(mbase, MUSB_DEVCTL, 0);
 			}
-		} else {
+		} else
+#endif	/* CONFIG_USB_MUSB_HDRC_HCD */
+		{
 			DBG(1, "BUS RESET\n");
 
 			musb_g_reset(musb);
--

             reply	other threads:[~2007-08-17 16:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-17 16:47 Kevin Hilman [this message]
2007-08-20  8:37 ` [PATCH] ARM: OMAP: MUSB: IRQ reset: babble handling is host only Tony Lindgren

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=20070817164724.560795636@mvista.com \
    --to=khilman@mvista.com \
    --cc=linux-omap-open-source@linux.omap.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