Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   printer uses UHCI instead of EHCI. Why? (http://www.linux-archive.org/gentoo-user/57142-printer-uses-uhci-instead-ehci-why.html)

Andrew Gaydenko 02-16-2008 01:57 PM

printer uses UHCI instead of EHCI. Why?
 
Ehci module is loaded, all MB USB ports are USB 2 ports, printer is "USB
2 (Full Speed)" printer.

Where to dig in? Which additional information must I supply?


Andrew
--
gentoo-user@lists.gentoo.org mailing list

Dan Farrell 02-16-2008 02:09 PM

printer uses UHCI instead of EHCI. Why?
 
On Sat, 16 Feb 2008 17:57:08 +0300
Andrew Gaydenko <a@gaydenko.com> wrote:

> Ehci module is loaded, all MB USB ports are USB 2 ports, printer is
> "USB 2 (Full Speed)" printer.
>
> Where to dig in? Which additional information must I supply?
>
>
> Andrew
just a guess, but do you have your kernel set up to allow ehci bus
control?
--
gentoo-user@lists.gentoo.org mailing list

Andrew Gaydenko 02-16-2008 02:14 PM

printer uses UHCI instead of EHCI. Why?
 
Hi!
======= On Saturday 16 February 2008, you wrote: =======
> On Sat, 16 Feb 2008 17:57:08 +0300
>
> Andrew Gaydenko <a@gaydenko.com> wrote:
> > Ehci module is loaded, all MB USB ports are USB 2 ports, printer is
> > "USB 2 (Full Speed)" printer.
> >
> > Where to dig in? Which additional information must I supply?
> >
> >
> > Andrew
>
> just a guess, but do you have your kernel set up to allow ehci bus
> control?


lsmod | grep hci
uhci_hcd 34592 0
ehci_hcd 46156 0

Do you mean something else?

--
gentoo-user@lists.gentoo.org mailing list

Jens Krahe 02-16-2008 11:15 PM

printer uses UHCI instead of EHCI. Why?
 
Am Samstag, 16. Februar 2008 schrieb Andrew Gaydenko:
> Ehci module is loaded, all MB USB ports are USB 2 ports, printer is "USB
> 2 (Full Speed)" printer.
And there is nothing wrong. EHCI handles only the High Speed mode of USB2!
Low and Full Speed are still handled by UHCI/OHCI.


Regards
Jens

--
gentoo-user@lists.gentoo.org mailing list

Volker Armin Hemmann 02-16-2008 11:51 PM

printer uses UHCI instead of EHCI. Why?
 
On Sonntag, 17. Februar 2008, Jens Krahe wrote:
> Am Samstag, 16. Februar 2008 schrieb Andrew Gaydenko:
> > Ehci module is loaded, all MB USB ports are USB 2 ports, printer is "USB
> > 2 (Full Speed)" printer.
>
> And there is nothing wrong. EHCI handles only the High Speed mode of USB2!
> Low and Full Speed are still handled by UHCI/OHCI.

you are wrong, kernel with ehci only:

[ 31.592651] usb 1-3.1: new low speed USB device using ehci_hcd and address
4
--
gentoo-user@lists.gentoo.org mailing list

Jens Krahe 02-17-2008 12:45 PM

printer uses UHCI instead of EHCI. Why?
 
Am Sonntag, 17. Februar 2008 schrieb Volker Armin Hemmann:
> On Sonntag, 17. Februar 2008, Jens Krahe wrote:
> > Am Samstag, 16. Februar 2008 schrieb Andrew Gaydenko:
> > > Ehci module is loaded, all MB USB ports are USB 2 ports, printer is
> > > "USB 2 (Full Speed)" printer.
> >
> > And there is nothing wrong. EHCI handles only the High Speed mode of
> > USB2! Low and Full Speed are still handled by UHCI/OHCI.
>
> you are wrong, kernel with ehci only:
>
> [ 31.592651] usb 1-3.1: new low speed USB device using ehci_hcd and
> address 4

And the device works?

However, I refer to Universal Serial Bus EHCI Specification [1]
on page 3:
"A USB 2.0 Host Controller includes one high-speed mode host controller and 0
or more USB 1.1 host controllers (see Figure 1-2). The high-speed host
controller implements an EHCI interface. It is used for all high-speed
communications to high-speed-mode devices connected to the root ports of the
USB 2.0 host controller. This specification allows communications to Full-
and Low-speed devices connected to the root ports of the USB 2.0 host
controller to be provided by companion USB 1.1 host controllers."

and on page 4:
"High-speed devices are always routed to and controlled by the EHCI host
controller (eHC). When running and configured, the eHC is the default owner
of all the root ports. The eHC and its driver initially detect all device
attaches. It has additional control bits visible in each port register to
manage the routing logic. For example: if the attached device is not a
high-speed device, the eHC driver releases ownership of the port (and thus
control of the device) to a companion host controller. For that port,
enumeration starts over from the initial attach detect point and the device
is enumerated under the cHC. Otherwise, the eHC retains ownership of the port
and the device completes enumeration under the eHC."

Regards
Jens

[1] http://www.intel.com/technology/usb/download/ehci-r10.pdf
--
gentoo-user@lists.gentoo.org mailing list

Andrew Gaydenko 02-17-2008 01:42 PM

printer uses UHCI instead of EHCI. Why?
 
Hi!
======= On Sunday 17 February 2008, you wrote: =======
...
> and on page 4:
> "High-speed devices are always routed to and controlled by the EHCI
> host controller (eHC). When running and configured, the eHC is the
> default owner of all the root ports. The eHC and its driver initially
> detect all device attaches. It has additional control bits visible in
> each port register to manage the routing logic. For example: if the
> attached device is not a high-speed device, the eHC driver releases
> ownership of the port (and thus control of the device) to a companion
> host controller. For that port, enumeration starts over from the
> initial attach detect point and the device is enumerated under the
> cHC. Otherwise, the eHC retains ownership of the port and the device
> completes enumeration under the eHC."
>
> Regards
> Jens
>
> [1] http://www.intel.com/technology/usb/download/ehci-r10.pdf

It seems like all is as it must be :-) - see below. The printer declared
to be "Full Speed", i.e. 12Mbit/s, and the speed is got.

Just curious why printing is too slow (periodical lags between pages).
Probably, some cupsd tuning is needed (CPU eating is ~0%, of course).


Andrew

===================================

Feb 17 17:30:50 anli hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0004
Feb 17 17:30:50 anli ehci_hcd 0000:00:1d.7: GetStatus port 2 status 001803 POWER sig=j CSC CONNECT
Feb 17 17:30:50 anli hub 2-0:1.0: port 2, status 0501, change 0001, 480 Mb/s
Feb 17 17:30:50 anli hub 2-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x501
Feb 17 17:30:50 anli ehci_hcd 0000:00:1d.7: port 2 full speed --> companion
Feb 17 17:30:50 anli ehci_hcd 0000:00:1d.7: GetStatus port 2 status 003801 POWER OWNER sig=j CONNECT
Feb 17 17:30:50 anli hub 2-0:1.0: port 2 not reset yet, waiting 50ms
Feb 17 17:30:50 anli usb usb5: wakeup_rh (auto-start)
Feb 17 17:30:50 anli ehci_hcd 0000:00:1d.7: GetStatus port 2 status 003002 POWER OWNER sig=se0 CSC
Feb 17 17:30:50 anli hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004
Feb 17 17:30:50 anli uhci_hcd 0000:00:1d.0: port 2 portsc 0093,00
Feb 17 17:30:50 anli hub 5-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
Feb 17 17:30:50 anli hub 5-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
Feb 17 17:30:51 anli usb 5-2: new full speed USB device using uhci_hcd and address 3
Feb 17 17:30:51 anli usb 5-2: ep0 maxpacket = 8
Feb 17 17:30:51 anli usb 5-2: default language 0x0409
Feb 17 17:30:51 anli usb 5-2: uevent
Feb 17 17:30:51 anli usb 5-2: usb_probe_device
Feb 17 17:30:51 anli usb 5-2: configuration #1 chosen from 1 choice
Feb 17 17:30:51 anli usb 5-2: adding 5-2:1.0 (config #1, interface 0)
Feb 17 17:30:51 anli usb 5-2:1.0: uevent
Feb 17 17:30:51 anli usblp 5-2:1.0: usb_probe_interface
Feb 17 17:30:51 anli usblp 5-2:1.0: usb_probe_interface - got id
Feb 17 17:30:51 anli drivers/usb/core/file.c: looking for a minor, starting at 0
Feb 17 17:30:51 anli usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x0482 pid 0x0015
Feb 17 17:30:51 anli drivers/usb/core/inode.c: creating file '003'
Feb 17 17:30:51 anli usb 5-2: new device strings: Mfr=1, Product=2, SerialNumber=3
Feb 17 17:30:51 anli usb 5-2: Product: Kyocera FS-1030D
Feb 17 17:30:51 anli usb 5-2: Manufacturer: Kyocera
Feb 17 17:30:51 anli usb 5-2: SerialNumber: **********
Feb 17 17:30:51 anli hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0004
--
gentoo-user@lists.gentoo.org mailing list

Volker Armin Hemmann 02-17-2008 03:27 PM

printer uses UHCI instead of EHCI. Why?
 
On Sonntag, 17. Februar 2008, Jens Krahe wrote:
> Am Sonntag, 17. Februar 2008 schrieb Volker Armin Hemmann:
> > On Sonntag, 17. Februar 2008, Jens Krahe wrote:
> > > Am Samstag, 16. Februar 2008 schrieb Andrew Gaydenko:
> > > > Ehci module is loaded, all MB USB ports are USB 2 ports, printer is
> > > > "USB 2 (Full Speed)" printer.
> > >
> > > And there is nothing wrong. EHCI handles only the High Speed mode of
> > > USB2! Low and Full Speed are still handled by UHCI/OHCI.
> >
> > you are wrong, kernel with ehci only:
> >
> > [ 31.592651] usb 1-3.1: new low speed USB device using ehci_hcd and
> > address 4
>
> And the device works?
>
31.984912] usb 1-3: new high speed USB device using ehci_hcd and address 2
[ 32.109390] usb 1-3: configuration #1 chosen from 1 choice
[ 32.109727] hub 1-3:1.0: USB hub found
[ 32.110081] hub 1-3:1.0: 4 ports detected
[ 32.437368] usb 1-5: new high speed USB device using ehci_hcd and address 3
[ 32.566492] usb 1-5: configuration #1 chosen from 1 choice
[ 32.753643] usb 1-3.1: new low speed USB device using ehci_hcd and address
4
[ 32.856094] usb 1-3.1: configuration #1 chosen from 1 choice
[ 32.867755] input: Logitech USB Receiver as /class/input/input3
[ 32.880583] input: USB HID v1.11 Mouse [Logitech USB Receiver] on
usb-0000:00:02.1-3.1
[ 32.886684] input: Logitech USB Receiver as /class/input/input4
[ 32.913844] input: USB HID v1.11 Device [Logitech USB Receiver] on
usb-0000:00:02.1-3.1

so it is the mouse/receiver of the mouse. And yes, it works perfectly fine.

I have ohci support compiled as module - but the module is never loaded.
--
gentoo-user@lists.gentoo.org mailing list


All times are GMT. The time now is 05:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.