* [patch 0/3] musb_hdrc, remove MGC_{Read,Write}Csr{8,16}
@ 2007-01-18 23:35 David Brownell
2007-01-19 0:03 ` Tony Lindgren
0 siblings, 1 reply; 7+ messages in thread
From: David Brownell @ 2007-01-18 23:35 UTC (permalink / raw)
To: Tony Lindgren; +Cc: linux-omap-open-source
Folowing this are three patches removing those annoying CaMeLcAsE
macros cluttering up the sources ... this is the last significant
such fix that's needed IMO, although certainly struct members,
variables, and function/procedure parameters can be cleaned up.
Given that, issues I know about on the musb_hdrc code in GIT right
now, observed on tusb6010 but not tested on DaVinci, include:
- Hmm, host side was not enumerating ... new failure
- DMA wierdness of various types
- Various issues with suspend states and remote wakeup
That list is just so anyone running into them needn't be too
surprised.
- Dave
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [patch 0/3] musb_hdrc, remove MGC_{Read,Write}Csr{8,16}
2007-01-18 23:35 [patch 0/3] musb_hdrc, remove MGC_{Read,Write}Csr{8,16} David Brownell
@ 2007-01-19 0:03 ` Tony Lindgren
2007-01-19 3:31 ` David Brownell
0 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2007-01-19 0:03 UTC (permalink / raw)
To: David Brownell; +Cc: linux-omap-open-source
* David Brownell <david-b@pacbell.net> [070118 15:39]:
> Folowing this are three patches removing those annoying CaMeLcAsE
> macros cluttering up the sources ... this is the last significant
> such fix that's needed IMO, although certainly struct members,
> variables, and function/procedure parameters can be cleaned up.
>
> Given that, issues I know about on the musb_hdrc code in GIT right
> now, observed on tusb6010 but not tested on DaVinci, include:
>
> - Hmm, host side was not enumerating ... new failure
I've noticed that too, I'm getting this after plugging in a powered hub
and a mouse in OTG mode:
tusb_interrupt 525: TUSB IRQ 0000a000
tusb_interrupt 556: wake active 06
tusb_otg_ints 435: vbus change, b_idle, otg 171
tusb_interrupt 525: TUSB IRQ 00004000
tusb_otg_ints 404: Default-A
tusb_set_vbus 384: VBUS a_wait_vrise, devctl 99 otg 171 conf c0010000 prcm 00a800
tusb_interrupt 525: TUSB IRQ 00010000
tusb_otg_ints 467: a_wait_vrise timer, 171
tusb_interrupt 525: TUSB IRQ 00000010
musb_interrupt 1351: ** IRQ host usb0010 tx0000 rx0000
musb_stage0_irq 310: <== Power=e0, DevCtl=5d, bIntrUSB=0x10
musb_stage0_irq 515: CONNECT (a_host) devctl 5d
Are you getting same results on h4?
> - DMA wierdness of various types
> - Various issues with suspend states and remote wakeup
>
> That list is just so anyone running into them needn't be too
> surprised.
Pushed all.
Tony
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [patch 0/3] musb_hdrc, remove MGC_{Read,Write}Csr{8,16}
2007-01-19 0:03 ` Tony Lindgren
@ 2007-01-19 3:31 ` David Brownell
2007-01-19 23:49 ` David Brownell
0 siblings, 1 reply; 7+ messages in thread
From: David Brownell @ 2007-01-19 3:31 UTC (permalink / raw)
To: Tony Lindgren; +Cc: linux-omap-open-source
On Thursday 18 January 2007 4:03 pm, Tony Lindgren wrote:
> * David Brownell <david-b@pacbell.net> [070118 15:39]:
> > - Hmm, host side was not enumerating ... new failure
>
> I've noticed that too, I'm getting this after plugging in a powered hub
> and a mouse in OTG mode:
>
> tusb_interrupt 525: TUSB IRQ 0000a000
> tusb_interrupt 556: wake active 06
> tusb_otg_ints 435: vbus change, b_idle, otg 171
> tusb_interrupt 525: TUSB IRQ 00004000
> tusb_otg_ints 404: Default-A
> tusb_set_vbus 384: VBUS a_wait_vrise, devctl 99 otg 171 conf c0010000 prcm 00a800
> tusb_interrupt 525: TUSB IRQ 00010000
> tusb_otg_ints 467: a_wait_vrise timer, 171
> tusb_interrupt 525: TUSB IRQ 00000010
> musb_interrupt 1351: ** IRQ host usb0010 tx0000 rx0000
> musb_stage0_irq 310: <== Power=e0, DevCtl=5d, bIntrUSB=0x10
> musb_stage0_irq 515: CONNECT (a_host) devctl 5d
>
> Are you getting same results on h4?
Modulo me using a different debug level, yes.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [patch 0/3] musb_hdrc, remove MGC_{Read,Write}Csr{8,16}
2007-01-19 3:31 ` David Brownell
@ 2007-01-19 23:49 ` David Brownell
2007-01-22 21:19 ` Tony Lindgren
0 siblings, 1 reply; 7+ messages in thread
From: David Brownell @ 2007-01-19 23:49 UTC (permalink / raw)
To: Tony Lindgren; +Cc: linux-omap-open-source
On Thursday 18 January 2007 7:31 pm, David Brownell wrote:
> On Thursday 18 January 2007 4:03 pm, Tony Lindgren wrote:
> > * David Brownell <david-b@pacbell.net> [070118 15:39]:
>
> > > - Hmm, host side was not enumerating ... new failure
> >
> > I've noticed that too, ...
> >
> > Are you getting same results on h4?
>
> Modulo me using a different debug level, yes.
I looked a bit at this, it looks like a usbcore change broke
things. The musb_hdrc driver tells usbcore to probe that root
hub, but usbcore does nothing ... seemingly it now expects to be
told to wake up the root hub first, which makes no sense for
this particular hardware.
- Dave
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [patch 0/3] musb_hdrc, remove MGC_{Read,Write}Csr{8,16}
2007-01-19 23:49 ` David Brownell
@ 2007-01-22 21:19 ` Tony Lindgren
2007-01-22 21:59 ` David Brownell
0 siblings, 1 reply; 7+ messages in thread
From: Tony Lindgren @ 2007-01-22 21:19 UTC (permalink / raw)
To: David Brownell; +Cc: linux-omap-open-source
* David Brownell <david-b@pacbell.net> [070119 15:49]:
> On Thursday 18 January 2007 7:31 pm, David Brownell wrote:
> > On Thursday 18 January 2007 4:03 pm, Tony Lindgren wrote:
> > > * David Brownell <david-b@pacbell.net> [070118 15:39]:
> >
> > > > - Hmm, host side was not enumerating ... new failure
> > >
> > > I've noticed that too, ...
> > >
> > > Are you getting same results on h4?
> >
> > Modulo me using a different debug level, yes.
>
> I looked a bit at this, it looks like a usbcore change broke
> things. The musb_hdrc driver tells usbcore to probe that root
> hub, but usbcore does nothing ... seemingly it now expects to be
> told to wake up the root hub first, which makes no sense for
> this particular hardware.
OK, BTW looks like I'm not getting any VBUS on N800.
If I ground ID pin and feed back VBUS from hub to N800, then it
enumerates. (This is with maemo.org 2.6.18 tree)
Regards,
Tony
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [patch 0/3] musb_hdrc, remove MGC_{Read,Write}Csr{8,16}
2007-01-22 21:19 ` Tony Lindgren
@ 2007-01-22 21:59 ` David Brownell
2007-01-22 22:45 ` Tony Lindgren
0 siblings, 1 reply; 7+ messages in thread
From: David Brownell @ 2007-01-22 21:59 UTC (permalink / raw)
To: Tony Lindgren; +Cc: linux-omap-open-source
On Monday 22 January 2007 1:19 pm, Tony Lindgren wrote:
> OK, BTW looks like I'm not getting any VBUS on N800.
> If I ground ID pin and feed back VBUS from hub to N800, then it
> enumerates. (This is with maemo.org 2.6.18 tree)
Hmm, maybe they didn't populate the caps for the chargepump?
If you ground it, VBUS should come automagically.
Here's a patch that addresses one issue I know about. But
another couple issues joined recently ... not quit sure what's
up with those yet.
- Dave
==============
Recent usbcore "autosuspend" changes redefined the interface for root hubs
in an incompatible way. This patch makes CONNECT irqs work again.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
--- h4.orig/drivers/usb/musb/plat_uds.c 2007-01-19 16:43:36.000000000 -0800
+++ h4/drivers/usb/musb/plat_uds.c 2007-01-19 16:43:31.000000000 -0800
@@ -472,9 +472,11 @@ static irqreturn_t musb_stage0_irq(struc
}
if (bIntrUSB & MGC_M_INTR_CONNECT) {
+ struct usb_hcd *hcd = musb_to_hcd(pThis);
+
handled = IRQ_HANDLED;
pThis->is_active = 1;
- set_bit(HCD_FLAG_SAW_IRQ, &musb_to_hcd(pThis)->flags);
+ set_bit(HCD_FLAG_SAW_IRQ, &hcd->flags);
pThis->bEnd0Stage = MGC_END0_START;
@@ -496,7 +498,10 @@ static irqreturn_t musb_stage0_irq(struc
if (devctl & MGC_M_DEVCTL_LSDEV)
pThis->port1_status |= USB_PORT_STAT_LOW_SPEED;
- usb_hcd_poll_rh_status(musb_to_hcd(pThis));
+ if (hcd->status_urb)
+ usb_hcd_poll_rh_status(hcd);
+ else
+ usb_hcd_resume_root_hub(hcd);
MUSB_HST_MODE(pThis);
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [patch 0/3] musb_hdrc, remove MGC_{Read,Write}Csr{8,16}
2007-01-22 21:59 ` David Brownell
@ 2007-01-22 22:45 ` Tony Lindgren
0 siblings, 0 replies; 7+ messages in thread
From: Tony Lindgren @ 2007-01-22 22:45 UTC (permalink / raw)
To: David Brownell; +Cc: linux-omap-open-source
* David Brownell <david-b@pacbell.net> [070122 14:00]:
> On Monday 22 January 2007 1:19 pm, Tony Lindgren wrote:
>
> > OK, BTW looks like I'm not getting any VBUS on N800.
> > If I ground ID pin and feed back VBUS from hub to N800, then it
> > enumerates. (This is with maemo.org 2.6.18 tree)
>
> Hmm, maybe they didn't populate the caps for the chargepump?
> If you ground it, VBUS should come automagically.
Well it seems to work if I force VBUS on once before connecting
the host cable.
Otherwise VBUS does not seem to reach 5V but is somewhere
below 5V, and then "vbus too slow" kills it off.
Plugging the cable in 2 - 3 times fast makes it work too, then
VBUS seems to reach 5V.
> Here's a patch that addresses one issue I know about. But
> another couple issues joined recently ... not quit sure what's
> up with those yet.
Pushed it.
Tony
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-01-22 22:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-18 23:35 [patch 0/3] musb_hdrc, remove MGC_{Read,Write}Csr{8,16} David Brownell
2007-01-19 0:03 ` Tony Lindgren
2007-01-19 3:31 ` David Brownell
2007-01-19 23:49 ` David Brownell
2007-01-22 21:19 ` Tony Lindgren
2007-01-22 21:59 ` David Brownell
2007-01-22 22:45 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox