Re: old_scheme_first = 0 in drivers/usb/core/hub.c
hong zhang <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Jason, Thanks for your response. Following is log from 2.6.19.2 and 2.6.10. Pretty long. 1. kernel 2.6.19.2 usbmon: debugfs is not available fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 fsl-ehci fsl-ehci.0: irq 36, io base 0x43f88400 fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: Product: Freescale On-Chip EHCI Host Controller usb usb1: Manufacturer: Linux 2.6.19.2 ehci_hcd usb usb1: SerialNumber: fsl-ehci.0 c->desc.bMaxPower = 0,udev->bus_mA = 500 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2 fsl-ehci fsl-ehci.1: irq 37, io base 0x43f88000 fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb2: Product: Freescale On-Chip EHCI Host Controller usb usb2: Manufacturer: Linux 2.6.19.2 ehci_hcd usb usb2: SerialNumber: fsl-ehci.1 c->desc.bMaxPower = 0,udev->bus_mA = 500 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected Initializing USB Mass Storage driver... usb 1-1: new high speed USB device using fsl-ehci and address 2 usb 1-1: Product: USB Storage c->desc.bMaxPower = 48,udev->bus_mA = 500 usb 1-1: configuration #1 chosen from 1 choice usb 2-1: new high speed USB device using fsl-ehci and address 2 usb 2-1: Product: USB 2.0 Network Adapter ver.2 usb 2-1: Manufacturer: usb 2-1: SerialNumber: 00FFFF c->desc.bMaxPower = 125,udev->bus_mA = 500 usb 2-1: configuration #1 chosen from 1 choice Enter scsi_host_alloc scsi0 : SCSI emulation for USB Mass Storage devices usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver usbcore: registered new interface driver xpad drivers/usb/input/xpad.c: X-Box pad driver:v0.0.6 eth0: register 'asix' at usb-fsl-ehci.1-1, ASIX AX88772 USB 2.0 Ethernet, 00:1a:70:8f:89:47 usbcore: registered new interface driver asix usbcore: registered new interface driver cdc_ether usbcore: registered new interface driver rndis_host MXC keypad loaded i2c /dev entries driver MXC MMC/SD driver mxcmci-0 found oprofile: using arm/arm11 TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 2 Waiting 8sec before mounting root device... scsi 0:0:0:0: Direct-Access ST760211 DE 0014 PQ: 0 ANSI: 0 SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB) sda: Write Protect is off sda: assuming drive cache: write through SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB) sda: Write Protect is off sda: assuming drive cache: write through sda:<7>usb-storage: queuecommand called sda1 sd 0:0:0:0: Attached scsi disk sda sd 0:0:0:0: Attached scsi generic sg0 type 0 No filesystem could mount root, tried: ext2 cramfs 2. kernel 2.6.10 MXC MTD nor Driver 2.0 physmap flash device: 2000000 at a0000000 MXC MTD nand Driver 2.0 WARNING: HS2 ULPI Transceiver Init Skipped... ehci_hcd_h2 ehci_hcd_h2: new USB bus registered, assigned bus number 1 ehci_hcd_h2 ehci_hcd_h2: USB 0.0 initialized, EHCI 1.00, driver 26 Oct 2004 usb usb1: Product: Freescale ARC_OTG usb usb1: Manufacturer: Linux 2.6.10_dev ehci_hcd usb usb1: SerialNumber: ehci_hcd_h2 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected otg_hs_set_vbus_power WARNING: OTG ULPI Transceiver Init Skipped... ehci_hcd_otg_hs ehci_hcd_otg_hs: new USB bus registered, assigned bus number 2 ehci_hcd_otg_hs ehci_hcd_otg_hs: USB 0.0 initialized, EHCI 1.00, driver 26 Oct 2004 usb usb2: Product: Freescale ARC_OTG usb usb2: Manufacturer: Linux 2.6.10_dev ehci_hcd usb usb2: SerialNumber: ehci_hcd_otg_hs hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected sl811: driver sl811-hcd, 06 Dec 2004 Initializing USB Mass Storage driver... usb 1-1: new high speed USB device using ehci_hcd_h2 and address 2 usb 1-1: Product: USB Storage scsi0 : SCSI emulation for USB Mass Storage devices usbcore: registered new driver usb-storage USB Mass Storage support registered. usb 2-1: new high speed USB device using ehci_hcd_otg_hs and address 2 usb 2-1: Product: USB 2.0 Network Adapter ver.2 usb 2-1: Manufacturer: usb 2-1: SerialNumber: 00FFFF usbcore: registered new driver hiddev usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.0:USB HID core driver usbcore: registered new driver xpad drivers/usb/input/xpad.c: X-Box pad driver:v0.0.5 usbcore: registered new driver usbnet MXC keypad loaded MXC MMC/SD driver SDIO port1: active: CSR WiFi Device mxcmci-0 found SDIO Port 2: active: Micro-SD:GPIO3_0:High DVB-H:Low SDIO Port 2: Setting GPIO3_0 HIGH for Micro-SD U512 pin 6 mxcmci-1 found NET: Registered protocol family 2 mmc_setup - Paul-1a err = 1 mmc_setup - Paul-1b ocr = 0 IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 4096 bind 8192) mmc_setup - Paul-2 err = 1 NET: Registered protocol family 1 NET: Registered protocol family 17 VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 2 mmc_setup - Paul-1a err = 1 mmc_setup - Paul-1b ocr = 0 mmc_setup - Paul-2 err = 1 Waiting 8sec before mounting root device... Vendor: ST760211 Model: DE Rev: 0014 Type: Direct-Access ANSI SCSI revision: 00 Paul in slave_configure: us->pusb_dev->descriptor.idVendor = 0x5e3 max_sectos= 64 SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB) sda: assuming drive cache: write through SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB) sda: assuming drive cache: write through sda:<7>usb-storage: queuecommand called sda1 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 yaffs: dev is 8388609 name is "sda1" yaffs: Attempting MTD mount on 8.1, "sda1" yaffs: dev is 8388609 name is "sda1" yaffs: Attempting MTD mount on 8.1, "sda1" --henry --- jidong xiao <[email protected]> wrote: > On 10/10/07, jidong xiao <[email protected]> > wrote: > > On 10/10/07, hong zhang <[email protected]> > wrote: > > > List, > > > > > > I am working on a freescale IMX31(ARM) based > board > > > that has two USB hosts. Host2 connecs to usb > scsi hard > > > disk(30GB). It is detected in kernel 2.6.10. But > it > > > could not be detected when kernel upgrades to > > > 2.6.19.2. We has gone back to old_scheme_first=1 > > > (default is 0) at drivers/usb/core/hub.c. hub.c > > > explains if new usb scheme does not detect > device it > > > will try old scheme. Obviously, I have to hard > code > > > old_scheme_first=1 and usb scsi hard disk will > be > > > detected. > > > > > > Any comment will be appreciated. > > By the way, can you please paste your log files for > against both > 2.6.10 and 2.6.19.2, I feel from the source > perspective, the logic > here is something abnormal. In 2.6.10 we use the new > scheme by > default, and in 2.6.19.2 we use the new scheme first > and then if it > fails the old scheme will be used. So it's strange > the new kernel > could _not_ get the descriptor. > > Regards > Jason > ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel