2008-07-11 17:13:26     ISP1362 USB timeout issue

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-07-11 17:13:26     ISP1362 USB timeout issue

Ron Weiland (UNITED STATES)

Message: 58704   

 

I am running a BF-533 with an ISP1362 USB chip.  Some USB thumb drives (PINGTEC, KINGSTON, etc) seem to work just fine.  With SanDisk Cruzer Micros and some other devices (such as an Airlink 101 USB 802.11 adapter), I get the following error(s):

 

usb 1-1: new full speed USB device using isp1362-hcd and address 15

usb 1-1: default language 0x0409

usb 1-1: khubd timed out on ep0in len=0/255

usb 1-1: khubd timed out on ep0in len=0/2

usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3

usb 1-1: Product: Cruzer Micro

usb 1-1: Manufacturer: SanDisk Corporation

usb 1-1: uevent

usb 1-1: usb_probe_device

usb 1-1: configuration #1 chosen from 1 choice

usb 1-1: khubd timed out on ep0out len=0/0

usb 1-1: can't set config #1, error -110

drivers/usb/core/inode.c: creating file '015'

hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002

 

 

For another generic thumb drive, I get:

 

 

usb 1-1: new full speed USB device using isp1362-hcd and address 19

usb 1-1: default language 0x0409

usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3

usb 1-1: uevent

usb 1-1: usb_probe_device

usb 1-1: configuration #1 chosen from 1 choice

usb 1-1: can't set config #1, error -32

drivers/usb/core/inode.c: creating file '019'

hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002

hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002

hub 1-0:1.0: port 1, status 0100, change 0001, 12 Mb/s

 

I've tried connecting directly to my board, and also through a powered USB hub.  Same results.

 

My build is 2008R1-RC8.

 

Any idea where to look?

 

Thanks in advance!

 

Ron Weiland

 

 

QuoteReplyEditDelete

 

 

2008-07-13 22:51:42     Re: ISP1362 USB timeout issue

Bryan Wu (CHINA)

Message: 58735   

 

Hi Ron,

 

Could you please enable the DEBUG configuation of the ISP1362 driver and post the whole dmesg things here?

 

If it is a bug, we can track it and do more investigation.

 

-Bryan

QuoteReplyEditDelete

 

 

2008-07-14 20:42:09     Re: ISP1362 USB timeout issue

Ron Weiland (UNITED STATES)

Message: 58771   

 

Hi Bryan, thanks for responding!

 

I think I have more than enough data!  Understanding it however (for me) is another matter.  I enabled all debugging in the ISP1362 driver, as well as turned on usbmon.  I have provided both the /var/log/message files and the usbmon files for both the SanDisk Microcruzer and a working Pingtec drive.

 

Thanks again!  Let me know if there is anything I can do to help; I don't just want to "push it over the fence".

 

Ron Weiland

 

 

 

usb_device.sandisk

1u_sandisk

messages.pingtec

messages.sandisk

1u_pingtec

QuoteReplyEditDelete

 

 

2008-07-17 19:52:19     Re: ISP1362 USB timeout issue

Ron Weiland (UNITED STATES)

Message: 59032   

 

Hi Bryan,

 

A little bit of an update.  I've tried various delay modifications, including changing the EMIU_AMBCL for banks 1 and 2 (used for DUMMY_DELAY_ACCESS in isp1362.h) and such. (Why are both banks used?)  Nothing has had any effect at all.  It seems as though it is a hard failure (as opposed to a soft timing error).

 

One thing I noticed is that the thumb drive that works is a full speed device whereas the SanDisk is a high speed device, and of course the ISP1362 is a full speed controller.  Could the problem be related to that?  It isn't absolute though, a Kingston I tried is supposedly a high speed device and works fine.

 

Has anyone been successful in using either a SanDisk MicroCruzer or a zd1211-based 802.11 USB adapter (such as the Airlink 101) with the ISP1362?  Can anyone else tell me their results with this chip / driver?

 

Anything more I can try?

 

Thanks!

 

Ron Weiland

 

 

QuoteReplyEditDelete

 

 

2008-07-17 21:34:16     Re: ISP1362 USB timeout issue

Ron Weiland (UNITED STATES)

Message: 59038   

 

By the way, I also tried reducing SCLK down to 80 MHz in u-boot.  Same problem.

 

Ron Weiland

 

 

QuoteReplyEditDelete

 

 

2008-08-06 22:07:59     Re: ISP1362 USB timeout issue

Ron Weiland (UNITED STATES)

Message: 60060   

 

I have a brand new layout of my board, and it has the same problem as before.  I know the ISP1362 is used on the Stamp USB addon card as well as the BlackfinOne and the IP08, and it seems someone must know if it works for them or if they have the same problem.

 

Bryan, Mike, anyone know if this is a bug in the driver and / or if there is a fix?  Any more info I can provide?

 

Cheers!

 

Ron Weiland

 

 

QuoteReplyEditDelete

 

 

2008-08-07 09:08:39     Re: ISP1362 USB timeout issue

Michael Hennerich (GERMANY)

Message: 60101   

 

My SanDisk Cruzer Micro always works ...

 

But I think I saw a similar issue in the past with a Lexar Jump Drive.

 

-Michael

 

driver isp1362-hcd, 2005-04-04

isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller

isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1

isp1362_hc_reset:

isp1362-hcd isp1362-hcd.0: irq 53, io mem 0x20360000

isp1362_hc_start:

isp1362-hcd isp1362-hcd.0: ISP1362 Memory usage:

isp1362-hcd isp1362-hcd.0:   ISTL:    2 *  256:      512 @ $0000:$0100

isp1362-hcd isp1362-hcd.0:   INTL:   16 * ( 64+8):  1152 @ $0200

isp1362-hcd isp1362-hcd.0:   ATL :   32 * ( 64+8):  2304 @ $0680

isp1362-hcd isp1362-hcd.0:   USED/FREE:   3968       128

usb usb1: default language 0x0409

usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1: Product: ISP1362 Host Controller

usb usb1: Manufacturer: Linux 2.6.22.19-ADI-2008R1.5-svn5112 isp1362-hcd

usb usb1: SerialNumber: isp1362-hcd.0

usb usb1: uevent

usb usb1: usb_probe_device

usb usb1: configuration #1 chosen from 1 choice

usb usb1: adding 1-0:1.0 (config #1, interface 0)

usb 1-0:1.0: uevent

usb 1-0:1.0: uevent

hub 1-0:1.0: usb_probe_interface

hub 1-0:1.0: usb_probe_interface - got id

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

hub 1-0:1.0: standalone hub

hub 1-0:1.0: no power switching (usb 1.0)

hub 1-0:1.0: individual port over-current protection

hub 1-0:1.0: power on to power good time: 50ms

hub 1-0:1.0: local power source is good

hub 1-0:1.0: trying to enable port power on non-switchable hub

hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000

ISP1362 Host Controller, irq 53

 

-- snip --

 

usb 1-2: new full speed USB device using isp1362-hcd and address 3

usb 1-2: default language 0x0409

usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=3

usb 1-2: Product: U3 Cruzer Micro

usb 1-2: Manufacturer: SanDisk Corporation

usb 1-2: SerialNumber: 0000162443743A6D

usb 1-2: uevent

usb 1-2: usb_probe_device

usb 1-2: configuration #1 chosen from 1 choice

usb 1-2: adding 1-2:1.0 (config #1, interface 0)

usb 1-2:1.0: uevent

usb 1-2:1.0: uevent

hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004

 

root:/> version

kernel:    Linux release 2.6.22.19-ADI-2008R1.5-svn5112, build #1896 Thu Aug 7 15:01:04 CEST 2008

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-6922, build #480 Thu Aug 7 15:00:46 CEST 2008

 

root:/> cat /proc/cpuinfo

processor       : 0

vendor_id       : Analog Devices

cpu family      : 0x27c8000

model name      : ADSP-BF537 500(MHz CCLK) 100(MHz SCLK)

stepping        : 3

cpu MHz         : 500.000/100.000

bogomips        : 1046.52

Calibration     : 523264000 loops

cache size      : 16 KB(L1 icache) 32 KB(L1 dcache-wt) 0 KB(L2 cache)

dbank-A/B       : cache/cache

icache setup    : 4 Sub-banks/4 Ways, 32 Lines/Way

dcache setup    : 2 Super-banks/4 Sub-banks/2 Ways, 64 Lines/Way

board name      : ADDS-BF537-STAMP

board memory    : 65536 kB (0x00000000 -> 0x04000000)

kernel memory   : 57336 kB (0x00001000 -> 0x037ff000)

root:/>

QuoteReplyEditDelete

 

 

2008-08-22 16:29:38     Re: ISP1362 USB timeout issue

Steve Strobel (UNITED STATES)

Message: 60931   

 

We have also had trouble with some USB flash drives - see <http://linkcomm.com/wiki/index.php?title=DSP404_Compatible_USB_Flash_Drives>.  We are using custom hardware with a BF537 and Linux release 2.6.19.3-ADI-2007R1-svn224, build #359 Thu Aug 14 12:54:39 MDT 2008.

 

I haven't personally worked on the problem much, but if I understood my coworkers correctly, the SanDisk flash drives seem to be formatted differently;  reformatting them can make them work.

 

Steve

Outcomes