LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-28-2011, 11:31 AM   #1
dragomang87
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Rep: Reputation: 1
usb2.0 device recognized as 1.1, how to force a reassignation to 2.0?


Hi,
i have an external 2.5 500gb 5200rpm Trekstor DataStation pocket g.u
when i connect it directly to linux it's seen by the system as usb1.1
but if:
  1. i use windows
  2. i connect it with a cable with a secondary usb plug for addictional power surge and i put the secontary plug first
  3. i disconnect and reconnect it fast enough so that the drive does't stop completely
then it works without problems as usb2.0 (up to 30M/s)
so, it has definitely a power supply problem

when recognized properly then i never had problems using it without the secondary power surge
but for using it properly on linux i have to use solution 3, that i don't think is health for the hard drive, or sol 2, that force me to have free 2 of 3 usb port of my laptop (lenovo x200 type 7459-M78) when i connect the drive.

so i want to find a way to force the drive to return to usb2.0
(see the code from dmesg below to understand why i say return)

1a.7,1d.7 are the pci addresses for the external usb2.0 controller
1a.0,1d.0 are the pci addresses for the external correspondent usb1.1 controller
all the others are internals for bt, fingerprint sensor, ...

when working as 1.1
Code:
[140353.156026] usb 2-2: new high speed USB device using ehci_hcd and address 4
[140353.224296] hub 2-0:1.0: unable to enumerate USB device on port 2
[140353.656587] usb 6-2: new full speed USB device using uhci_hcd and address 3
[140353.802041] usb 6-2: not running at top speed; connect to a high speed hub
[140353.836036] usb 6-2: New USB device found, idVendor=1e68, idProduct=0017
when working as 2.0
Code:
[140571.736523] usb 2-2: new high speed USB device using ehci_hcd and address 5
[140571.881504] usb 2-2: New USB device found, idVendor=1e68, idProduct=0017
usb controllers from lspci:
Quote:
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
 
Old 03-02-2011, 03:13 AM   #2
dragomang87
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: 1
if i simply remove the uhci module (rmmod uhci_hcd)
or if i unbind the usb1.1 hub to the driver
[CODE]
15:55:27 /sys/bus/pci/drivers# echo -n 0000:00:1a.0 > uhci_hcd/unbind
[\CODE]

when the problem appears the device just don't work:
[CODE]
[193127.108030] usb 2-2: new high speed USB device using ehci_hcd and address 20
[193127.173007] hub 2-0:1.0: unable to enumerate USB device on port 2
[\CODE]
and nothing else, no /dev/sd* entries, no /sys or lsusb entries

so i need something that does a rescan
 
Old 03-02-2011, 05:26 AM   #3
dragomang87
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: 1
i found these file for making a rescan echoing a non zero value
[CODE]
/sys/bus/pci/rescan

/sys/devices/pci0000:00/devices/pci0000:00/0000:00:1d.7/rescan
/sys/devices/pci0000:00/devices/pci0000:00/0000:00:1a.7/rescan
/sys/devices/pci0000:00/devices/pci0000:00/0000:00:1d.0/rescan
/sys/devices/pci0000:00/devices/pci0000:00/0000:00:1a.0/rescan
[\CODE]

but the only effect that i have is only
[CODE]
[199501.872077] usb 2-1: new high speed USB device using ehci_hcd and address 23
[199501.940346] hub 2-0:1.0: unable to enumerate USB device on port 1
[199731.213561] i915 0000:00:02.0: BAR 6: [??? 0 flags 0x2] has bogus alignment
[199746.444986] i915 0000:00:02.0: BAR 6: [??? 0 flags 0x2] has bogus alignment
[199846.001848] i915 0000:00:02.0: BAR 6: [??? 0 flags 0x2] has bogus alignment
[199957.985493] i915 0000:00:02.0: BAR 6: [??? 0 flags 0x2] has bogus alignment
[200081.261635] i915 0000:00:02.0: BAR 6: [??? 0 flags 0x2] has bogus alignment
[\CODE]

now i'm really happy to see the intel video driver involved without me having any clue of HOW DA FUCK is involved
 
Old 07-07-2011, 12:46 PM   #4
dragomang87
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: 1
Today, i tried again to use my hard drive without the 2nd power supply because i noticed new messages in dmesg aboout the pci power states managing, and the problem is gone

Linux dhcppc11 2.6.39-2-amd64 #1 SMP Wed Jun 8 11:01:04 UTC 2011 x86_64 GNU/Linux (Debian squeeze)

so updating to kernel 2.6.39 solved the problem
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB2 PCI card not recognized AllanB Linux - Hardware 5 08-13-2007 09:38 AM
How to force kernel to use a USB 2.0-compatible device (ehci_hcd) as a USB 1.1 device eze Linux - Hardware 0 05-16-2006 05:24 AM
mount USB2: no valid block device anon187 Linux - Hardware 4 01-03-2006 09:32 AM
USB2 device only working at USB1!! movery Linux - Hardware 5 02-05-2005 08:02 AM
How to force ethernet device to work at 10Mbit/s? maestro_ba Linux - Networking 2 07-12-2004 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration