All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* More USB questions (for the MPC8xx)
@ 2001-03-20 19:08 Kári Davíðsson
  2001-03-21  9:15 ` Christian Schroeder
  0 siblings, 1 reply; 5+ messages in thread
From: Kári Davíðsson @ 2001-03-20 19:08 UTC (permalink / raw
  To: Linux Embedded ppc (E-mail)


Hi,

I managed to get the m8xxhci with the TIMER1 patch to sort of work with
my board.
I.e. the SOF seem to be genrated normally and there seem to be some
traffic on
the usb bus when I plug in keyspan_pda USB device. Althoug the
initialization of
the keyspan_pda fails.
I have also tried a MS USBMouse but then the m8xxhci is totally silent
and there
is no traffic on the USB.

What kind of USB devices have you used to plug to a MPC8xx in HIC mode?

Thanks,

K.D.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: More USB questions (for the MPC8xx)
  2001-03-20 19:08 Kári Davíðsson
@ 2001-03-21  9:15 ` Christian Schroeder
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Schroeder @ 2001-03-21  9:15 UTC (permalink / raw
  To: Kári Davíðsson; +Cc: Linux Embedded ppc (E-mail)


Quoting Kári Davíðsson <karid@flaga.is>:

>
> Hi,
>
> I managed to get the m8xxhci with the TIMER1 patch to sort of work with
> my board.
> I.e. the SOF seem to be genrated normally and there seem to be some
> traffic on
> the usb bus when I plug in keyspan_pda USB device. Althoug the
> initialization of
> the keyspan_pda fails.
> I have also tried a MS USBMouse but then the m8xxhci is totally silent
> and there
> is no traffic on the USB.
>
> What kind of USB devices have you used to plug to a MPC8xx in HIC mode?
>

Hi,


I have similar experiences. I use a TQM823L board and applied Roman Weiss-
gaerbers patches. The microcode patch seems to work, because I can see the
SOF packets every 1 ms between D+ and GND. If I disconnect /DREQ1, the
SOFs disappear. So far so good. Now I tried to connect USB devices.

First I connected an USB mouse and got:

rh::int:0 2 1 301 1
m8xxhci_alloc_dev(usb_dev=c0fcca00)
hub.c: USB new device connect on bus1/1, assigned device number 2
usb_control/bulk_msg: timeout
unlink_urb(urb=c04b5f50,qtype=2) status -115
unlink_urb(urb=c04b5f50) done
usb.c: USB device not accepting new address=2 (error=-110)
m8xxhci_free_dev(usb_dev=c0fcca00)
m8xxhci_free_dev(dev=c0fcca00) done
m8xxhci_alloc_dev(usb_dev=c0fcca00)
hub.c: USB new device connect on bus1/1, assigned device number 3
usb_control/bulk_msg: timeout
unlink_urb(urb=c04b5f50,qtype=2) status -115
unlink_urb(urb=c04b5f50) done
usb.c: USB device not accepting new address=3 (error=-110)
m8xxhci_free_dev(usb_dev=c0fcca00)
m8xxhci_free_dev(dev=c0fcca00) done

The SOFs disappear completely and I cannot see any traffic
between D+ and GND. The D+ Line goes up (about 3 V).

If I connct a Thunderbird 4-port USB hub, I get:

rh::int:0 2 2 101 1
m8xxhci_alloc_dev(usb_dev=c0fcca00)
hub.c: USB new device connect on bus1/1, assigned device number 2
rx err sc (status 0x1c54)
complete urb c04b5f50, actual_length 0, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
complete urb c04b5f50, actual_length 0, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
complete urb c04b5f50, actual_length 0, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
complete urb c04b5f50, actual_length 0, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
complete urb c04b5f50, actual_length 0, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
usb.c: USB device not responding, giving up (error=-110)
m8xxhci_free_dev(usb_dev=c0fcca00)
m8xxhci_free_dev(dev=c0fcca00) done
m8xxhci_alloc_dev(usb_dev=c0fcca00)
hub.c: USB new device connect on bus1/1, assigned device number 3
complete urb c04b5f50, actual_length 8, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
complete urb c04b5f50, actual_length 8, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
complete urb c04b5f50, actual_length 8, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
complete urb c04b5f50, actual_length 8, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
rx err sc (status 0x1c44)
complete urb c04b5f50, actual_length 0, status -1
unlink_urb(urb=c04b5f50,qtype=2) status -110
unlink_urb(urb=c04b5f50) done
usb.c: USB device not responding, giving up (error=-110)
m8xxhci_free_dev(usb_dev=c0fcca00)
m8xxhci_free_dev(dev=c0fcca00) done

The SOFs disappear too!

In some rare cases (when I connect a HUB), the SOFs don't
disappear. In this cases the 4-port HUB is recognized
partially.


Christian Schroeder

Dr.-Ing. Christian Schroeder
Institut fuer Mikroelektronik- und Mechatronik-Systeme
Langewiesener Strasse 22
98693 Ilmenau
Telefon: +49 3677 678315
Telefax: +49 3677 678337
Mobil:   +49 173 5789172
e-mail:  christian.schroeder@imms.de
www:     http://www.imms.de/~christi/cs.html
pgp:     finger christi@finger.imms.de


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: More USB questions (for the MPC8xx)
@ 2001-03-21 10:03 Kári Davíðsson
  0 siblings, 0 replies; 5+ messages in thread
From: Kári Davíðsson @ 2001-03-21 10:03 UTC (permalink / raw
  To: Linux Embedded ppc (E-mail)


Hi,

I was also just getting time outs (error -110) if I applied both of
Roman's patches. If I only applie patch one, i.e. the TIMER1 patch
I have more luck, i.e. the keypspan is identified but the firmware
can not be written to the keyspan and therefore (I think) the
identification fails. The MS USB mouse is not identified, the SOF
packets are still there but no other data.....

If you have both of romas patches try to remove the virtual root hub
patch and see if you have more luck.

K.D.

> -----Original Message-----
> From: Christian Schroeder [mailto:christian.schroeder@imms.de]
> Sent: 21. mars 2001 09:15
> To: Kári Davíðsson
> Cc: Linux Embedded ppc (E-mail)
> Subject: Re: More USB questions (for the MPC8xx)
>
>
> Quoting Kári Davíðsson <karid@flaga.is>:
>
> >
> > Hi,
> >
> > I managed to get the m8xxhci with the TIMER1 patch to sort
> of work with
> > my board.
> > I.e. the SOF seem to be genrated normally and there seem to be some
> > traffic on
> > the usb bus when I plug in keyspan_pda USB device. Althoug the
> > initialization of
> > the keyspan_pda fails.
> > I have also tried a MS USBMouse but then the m8xxhci is
> totally silent
> > and there
> > is no traffic on the USB.
> >
> > What kind of USB devices have you used to plug to a MPC8xx
> in HIC mode?
> >
>
> Hi,
>
>
> I have similar experiences. I use a TQM823L board and applied
> Roman Weiss-
> gaerbers patches. The microcode patch seems to work, because
> I can see the
> SOF packets every 1 ms between D+ and GND. If I disconnect /DREQ1, the
> SOFs disappear. So far so good. Now I tried to connect USB devices.
>
> First I connected an USB mouse and got:
>
> rh::int:0 2 1 301 1
> m8xxhci_alloc_dev(usb_dev=c0fcca00)
> hub.c: USB new device connect on bus1/1, assigned device number 2
> usb_control/bulk_msg: timeout
> unlink_urb(urb=c04b5f50,qtype=2) status -115
> unlink_urb(urb=c04b5f50) done
> usb.c: USB device not accepting new address=2 (error=-110)
> m8xxhci_free_dev(usb_dev=c0fcca00)
> m8xxhci_free_dev(dev=c0fcca00) done
> m8xxhci_alloc_dev(usb_dev=c0fcca00)
> hub.c: USB new device connect on bus1/1, assigned device number 3
> usb_control/bulk_msg: timeout
> unlink_urb(urb=c04b5f50,qtype=2) status -115
> unlink_urb(urb=c04b5f50) done
> usb.c: USB device not accepting new address=3 (error=-110)
> m8xxhci_free_dev(usb_dev=c0fcca00)
> m8xxhci_free_dev(dev=c0fcca00) done
>
> The SOFs disappear completely and I cannot see any traffic
> between D+ and GND. The D+ Line goes up (about 3 V).
>
> If I connct a Thunderbird 4-port USB hub, I get:
>
> rh::int:0 2 2 101 1
> m8xxhci_alloc_dev(usb_dev=c0fcca00)
> hub.c: USB new device connect on bus1/1, assigned device number 2
> rx err sc (status 0x1c54)
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> usb.c: USB device not responding, giving up (error=-110)
> m8xxhci_free_dev(usb_dev=c0fcca00)
> m8xxhci_free_dev(dev=c0fcca00) done
> m8xxhci_alloc_dev(usb_dev=c0fcca00)
> hub.c: USB new device connect on bus1/1, assigned device number 3
> complete urb c04b5f50, actual_length 8, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 8, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 8, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 8, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> rx err sc (status 0x1c44)
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> usb.c: USB device not responding, giving up (error=-110)
> m8xxhci_free_dev(usb_dev=c0fcca00)
> m8xxhci_free_dev(dev=c0fcca00) done
>
> The SOFs disappear too!
>
> In some rare cases (when I connect a HUB), the SOFs don't
> disappear. In this cases the 4-port HUB is recognized
> partially.
>
>
> Christian Schroeder
>
> Dr.-Ing. Christian Schroeder
> Institut fuer Mikroelektronik- und Mechatronik-Systeme
> Langewiesener Strasse 22
> 98693 Ilmenau
> Telefon: +49 3677 678315
> Telefax: +49 3677 678337
> Mobil:   +49 173 5789172
> e-mail:  christian.schroeder@imms.de
> www:     http://www.imms.de/~christi/cs.html
> pgp:     finger christi@finger.imms.de
>
>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: More USB questions (for the MPC8xx)
@ 2001-03-21 12:25 Roman Weissgaerber
  0 siblings, 0 replies; 5+ messages in thread
From: Roman Weissgaerber @ 2001-03-21 12:25 UTC (permalink / raw
  To: linuxppc-embedded@lists.linuxppc.org


Hi Christian,

if you use the virtual root hub (Patch 2) the root hub will
be controlled by the built in hub driver of the USB subsystem.
And this driver disables the port if it gets to much errors.
And a disable switches off the SOF.
D+ then goes up because a high speed device is connected to the bus.
D+/D-:
 0/0 if ther is no device or reset.
 1/0 full speed device
 0/1 low speed device
BTW. the HCD should use these signals to recognize a device
on the bus (unpached m8xxhci polls with control messages, patch 2 use
the bus signals)

As there should be no errors I guess you also need a hardware patch.

I would suggest you to use patch 1 only as long there are so much
errors/timeouts.

- Roman

>
> [Date Prev][Date Next] [Chronological] [Thread] [Top]
>
> Re: More USB questions (for the MPC8xx)
>
>
>
>       To: Kári Davíðsson <karid@flaga.is>
>       Subject: Re: More USB questions (for the MPC8xx)
>       From: Christian Schroeder <christian.schroeder@imms.de>
>       Date: Wed, 21 Mar 2001 10:15:23 +0100 (MET)
>       Cc: "Linux Embedded ppc (E-mail)" <linuxppc-embedded@lists.linuxppc.org>
>       In-Reply-To: <EADB10BAC266A14A85ECBF8686A73E3108AFEA@kolkrabbi.flaga.is>
>       References: <EADB10BAC266A14A85ECBF8686A73E3108AFEA@kolkrabbi.flaga.is>
>       User-Agent: IMP/PHP IMAP webmail program 2.2.2
>
>
>
> Quoting Kári Davíðsson <karid@flaga.is>:
>
> >
> > Hi,
> >
> > I managed to get the m8xxhci with the TIMER1 patch to sort of work with
> > my board.
> > I.e. the SOF seem to be genrated normally and there seem to be some
> > traffic on
> > the usb bus when I plug in keyspan_pda USB device. Althoug the
> > initialization of
> > the keyspan_pda fails.
> > I have also tried a MS USBMouse but then the m8xxhci is totally silent
> > and there
> > is no traffic on the USB.
> >
> > What kind of USB devices have you used to plug to a MPC8xx in HIC mode?
> >
>
> Hi,
>
>
> I have similar experiences. I use a TQM823L board and applied Roman Weiss-
> gaerbers patches. The microcode patch seems to work, because I can see the
> SOF packets every 1 ms between D+ and GND. If I disconnect /DREQ1, the
> SOFs disappear. So far so good. Now I tried to connect USB devices.
>
> First I connected an USB mouse and got:
>
> rh::int:0 2 1 301 1
> m8xxhci_alloc_dev(usb_dev=c0fcca00)
> hub.c: USB new device connect on bus1/1, assigned device number 2
> usb_control/bulk_msg: timeout
> unlink_urb(urb=c04b5f50,qtype=2) status -115
> unlink_urb(urb=c04b5f50) done
> usb.c: USB device not accepting new address=2 (error=-110)
> m8xxhci_free_dev(usb_dev=c0fcca00)
> m8xxhci_free_dev(dev=c0fcca00) done
> m8xxhci_alloc_dev(usb_dev=c0fcca00)
> hub.c: USB new device connect on bus1/1, assigned device number 3
> usb_control/bulk_msg: timeout
> unlink_urb(urb=c04b5f50,qtype=2) status -115
> unlink_urb(urb=c04b5f50) done
> usb.c: USB device not accepting new address=3 (error=-110)
> m8xxhci_free_dev(usb_dev=c0fcca00)
> m8xxhci_free_dev(dev=c0fcca00) done
>
> The SOFs disappear completely and I cannot see any traffic
> between D+ and GND. The D+ Line goes up (about 3 V).
>
> If I connct a Thunderbird 4-port USB hub, I get:
>
> rh::int:0 2 2 101 1
> m8xxhci_alloc_dev(usb_dev=c0fcca00)
> hub.c: USB new device connect on bus1/1, assigned device number 2
> rx err sc (status 0x1c54)
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> usb.c: USB device not responding, giving up (error=-110)
> m8xxhci_free_dev(usb_dev=c0fcca00)
> m8xxhci_free_dev(dev=c0fcca00) done
> m8xxhci_alloc_dev(usb_dev=c0fcca00)
> hub.c: USB new device connect on bus1/1, assigned device number 3
> complete urb c04b5f50, actual_length 8, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 8, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 8, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> complete urb c04b5f50, actual_length 8, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> rx err sc (status 0x1c44)
> complete urb c04b5f50, actual_length 0, status -1
> unlink_urb(urb=c04b5f50,qtype=2) status -110
> unlink_urb(urb=c04b5f50) done
> usb.c: USB device not responding, giving up (error=-110)
> m8xxhci_free_dev(usb_dev=c0fcca00)
> m8xxhci_free_dev(dev=c0fcca00) done
>
> The SOFs disappear too!
>
> In some rare cases (when I connect a HUB), the SOFs don't
> disappear. In this cases the 4-port HUB is recognized
> partially.
>
>
> Christian Schroeder
>
> Dr.-Ing. Christian Schroeder
> Institut fuer Mikroelektronik- und Mechatronik-Systeme
> Langewiesener Strasse 22
> 98693 Ilmenau
> Telefon: +49 3677 678315
> Telefax: +49 3677 678337
> Mobil:   +49 173 5789172
> e-mail:  christian.schroeder@imms.de
> www:     http://www.imms.de/~christi/cs.html
> pgp:     finger christi@finger.imms.de
>
>
>
>
>       References:
>             More USB questions (for the MPC8xx)
>                   From: Kári Davíðsson <karid@flaga.is>
>             More USB questions (for the MPC8xx)
>                   From: Kári Davíðsson <karid@flaga.is>
>
>       Prev by Date: Re: es1371.o sound module on a IBM 405 walnut platform
>       Next by Date: RE: More USB questions (for the MPC8xx)
>       Index(es):
>             Chronological
>             Thread

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: More USB questions (for the MPC8xx)
@ 2001-03-21 19:23 Kári Davíðsson
  0 siblings, 0 replies; 5+ messages in thread
From: Kári Davíðsson @ 2001-03-21 19:23 UTC (permalink / raw
  To: linuxppc-embedded


Thanks for the answare.
I got a USB hub and now the hub and mouse are dected correctly.

K.D.

>From dmesg:

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
m8xxhci: initializing controller
m8xxhci_setup()
usb.c: new USB bus registered, assigned bus number 1
m8xxhci_start_controller()
m8xxhci: MPC823B mask 1
m8xxhci: USING BRG4 for USB clock!
cp_brgc4 0x0 before
cp_brgc4 0x10000
ring sizes: rx 32, tx 40
USB microcode patch installed
m8xxhci_init() enable USB controller
m8xxhci_timer_start()
intfreq 48, busfreq 48, count 3000
m8xxhci: USING TIMER1 FOR SOF!
usb bus: idle
m8xxhci: initializing done
m8xxhci: control thread starting
m8xxhci: device found!
m8xxhci_connect_device()
m8xxhci_alloc_dev(usb_dev=c01d9400)
usb.c: kmalloc IF c01b94e0, numif 1
usb.c: new device strings: Mfr=0, Product=0, SerialNumber=0
hub.c: USB hub found
hub.c: 4 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: power on to power good time: 100ms
hub.c: hub controller current requirement: 100mA
hub.c: port removable status: RRRR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface c01b94e0
usb.c: registered new driver hid
hub.c: port 1 connection change
hub.c: port 1, portstatus 301, change 1, 1.5 Mb/s
m8xxhci_alloc_dev(usb_dev=c01d9c00)
hub.c: port 1, portstatus 303, change 10, 1.5 Mb/s
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: kmalloc IF c01b9820, numif 1
usb.c: skipped 1 class/vendor specific interface descriptors
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=0
usb.c: USB device number 2 default language ID 0x409
Manufacturer: Microsoft
Product: Microsoft IntelliMouse® Explorer
complete urb c01d8d30, actual_length 0, status -1
unlink_urb(urb=c01d8d30,qtype=2) status -110
unlink_urb(urb=c01d8d30) done
input0: USB HID v0.01 Mouse [Microsoft Microsoft IntelliMouse® Explorer]
on usb1
:2.0
usb.c: hid driver claimed interface c01b9820

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-03-21 19:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-21 12:25 More USB questions (for the MPC8xx) Roman Weissgaerber
  -- strict thread matches above, loose matches on Subject: below --
2001-03-21 19:23 Kári Davíðsson
2001-03-21 10:03 Kári Davíðsson
2001-03-20 19:08 Kári Davíðsson
2001-03-21  9:15 ` Christian Schroeder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.