Article [#4253] ISP1760 pehci usb host driver fails to work on BF54x

[#4253] ISP1760 pehci usb host driver fails to work on BF54x

Submitted By: Michael Hennerich

Open Date

2008-07-17 04:34:31     Close Date

2008-07-17 04:45:24

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Drivers     Board:

EZKIT Lite

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

App binary format:

N/A     

Summary: ISP1760 pehci usb host driver fails to work on BF54x

Details:

This bug was reported here:

  blackfin.uclinux.org/gf/project/uclinux-dist/forum/?action=ForumBrowse&forum_id=39&_forum_action=ForumMessageBrowse&thread_id=28276

On BF54x the ISP1760 pehci driver fails to work.

-Michael

Follow-ups

--- Michael Hennerich                                        2008-07-17 04:45:23

Add dummy delay access to satisfy

Memory READ: tp13 = 90ns bus timing initial pre-fetch time

in the isp1761_mem_read function.

Fixed

-Michael

root:/> version

kernel:    Linux release 2.6.24.7-ADI-2008R2-pre-svn4973, build #4966 Thu Jul

17 10:00:41 CEST 2008

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

user-dist: release svn-6748, build #1713 Thu Jul 17 10:00:09 CEST 2008

root:/> cat /proc/cpuinfo

processor       : 0

vendor_id       : Analog Devices

cpu family      : 0x27de000

model name      : ADSP-BF548 525(MHz CCLK) 131(MHz SCLK) (mpu off)

stepping        : 1

cpu MHz         : 525.000/131.250000

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      : ADSP-BF548-EZKIT

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

kernel memory   : 63480 kB (0x00001000 -> 0x03dff000)

root:/> modprobe pehci

drivers/usb/host/pehcd/hal/hal_pxa.c: pid 8210, vid 8210

drivers/usb/host/pehcd/hal/hal_pxa.c: controller address 0024dbe4

drivers/usb/host/pehcd/hal/hal_pxa.c: isp1761_register_driver(drv=0085bda4)

isp1761 isp1761.0: PHILIPS ISP1761

isp1761 isp1761.0: new USB bus registered, assigned bus number 2

isp1761 isp1761.0: irq 206, io mem 0x00000000

usb usb2: configuration #1 chosen from 1 choice

hub 2-0:1.0: USB hub found

hub 2-0:1.0: 1 port detected

usb usb2: Product: PHILIPS ISP1761

usb usb2: Manufacturer: Linux 2.6.24.7-ADI-2008R2-pre-svn4973 Philips

usb usb2: SerialNumber: platform

drivers/usb/host/pehcd/hal/hal_pxa.c: Registered Driver Philips

drivers/usb/host/pehcd/host/pehci.c: Host Driver has been Registered

root:/> usb 2-1: new high speed USB device using isp1761 and address 2

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

hub 2-1:1.0: USB hub found

hub 2-1:1.0: 3 ports detected

usb 2-1: Product: ISP1520

usb 2-1: Manufacturer: Philips Semiconductors

usb 2-1.3: new high speed USB device using isp1761 and address 3

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

scsi1 : SCSI emulation for USB Mass Storage devices

usb 2-1.3: Product: U3 Cruzer Micro

usb 2-1.3: Manufacturer: SanDisk

usb 2-1.3: SerialNumber: 0000287112C3358C

usb 2-1.3: reset high speed USB device using isp1761 and address 3

scsi 1:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  6.51 PQ: 0 ANSI: 0

CCS

sd 1:0:0:0: [sdb] 2014271 512-byte hardware sectors (1031 MB)

sd 1:0:0:0: [sdb] Write Protect is off

sd 1:0:0:0: [sdb] Assuming drive cache: write through

sd 1:0:0:0: [sdb] 2014271 512-byte hardware sectors (1031 MB)

sd 1:0:0:0: [sdb] Write Protect is off

sd 1:0:0:0: [sdb] Assuming drive cache: write through

sdb: sdb1

sd 1:0:0:0: [sdb] Attached SCSI removable disk

root:/> mount /dev/sdb1 /mnt

root:/> ls -al /mnt/testfiles/

drwxr-xr-x    2 root     root        16384 Jul 17  2008 .

drwxr-xr-x    5 root     root        16384 Jan  1 00:00 ..

-rwxr-xr-x    1 root     root      1097897 Jan 17  2008

DirectFB-examples-1.0.0.tar.gz

-rwxr-xr-x    1 root     root      1240152 Jan 17  2008

DirectFB-examples-1.0.1.tar.gz

-rwxr-xr-x    1 root     root       345034 Dec 19  2007 GUIlib-1.2.1.tar.tar

-rwxr-xr-x    1 root     root      5636867 Jun  2  2008

arnmusicmanager-0.2.tar.gz

-rwxr-xr-x    1 root     root       253013 Jun  2  2008 directvnc-0.7.5.tar.gz

-rwxr-xr-x    1 root     root      2840611 Jul  4  2008 gnuplot-4.2.3.tar.gz

-rwxr-xr-x    1 root     root       185839 Jan 24  2008 isp1761.zip

-rwxr-xr-x    1 root     root       326281 Apr  1  2008 libftd2xx0.4.13.tar.gz

-rwxr-xr-x    1 root     root      4165611 Jan 16  2008 links-2.1pre32.tar.gz

-rwxr-xr-x    1 root     root      5244948 May  8  2008 linux.bluetooth.tar.gz

-rwxr-xr-x    1 root     root      1457388 Dec 14  2007 linux_bf.svg

-rwxr-xr-x    1 root     root     53206080 Jun  5  2008 offline.tar.gz

-rwxr-xr-x    1 root     root       147072 Jun  4  2008 qc-usb-0.6.6.tar.tar

-rwxr-xr-x    1 root     root     20039624 Jul 17  2008

qt-embedded-free-3.3.5.tar.bz2

root:/> md5sum /mnt/testfiles/*

0cdfb4dd248eada3dc35db4f8cf75f8d

/mnt/testfiles/DirectFB-examples-1.0.0.tar.gz

6bef85f4eecdc0d659996c7204a5d269

/mnt/testfiles/DirectFB-examples-1.0.1.tar.gz

b80a152a5fcd9e96155a7379339dd6f8  /mnt/testfiles/GUIlib-1.2.1.tar.tar

1c135fa8d483043a0b555e353315470b  /mnt/testfiles/arnmusicmanager-0.2.tar.gz

1fba84dc5450751bb402b68a9b9fb429  /mnt/testfiles/directvnc-0.7.5.tar.gz

6b6d22662df5101b308c465a722c43ce  /mnt/testfiles/gnuplot-4.2.3.tar.gz

4afcf58a5c8c7f0bdb7d577a2829bd0f  /mnt/testfiles/isp1761.zip

6c06de2b4771e6cd67b9fe2054ec8a4d  /mnt/testfiles/libftd2xx0.4.13.tar.gz

18747c7b4a5ff2256a5fcedc4239b4dd  /mnt/testfiles/links-2.1pre32.tar.gz

cf687a245aec7be65a38ea8975ab186d  /mnt/testfiles/linux.bluetooth.tar.gz

400ac4bf3b22f474f8c176e135430d8b  /mnt/testfiles/linux_bf.svg

b07e11807730aad189fa30f53dd82eef  /mnt/testfiles/offline.tar.gz

9eab8fb3a75326d1565d59b0c7256075  /mnt/testfiles/qc-usb-0.6.6.tar.tar

022d7a3c572b554f3c47b12cae71a8a4

/mnt/testfiles/qt-embedded-free-3.3.5.tar.bz2

root:/> time md5sum /mnt/testfiles/*

0cdfb4dd248eada3dc35db4f8cf75f8d

/mnt/testfiles/DirectFB-examples-1.0.0.tar.gz

6bef85f4eecdc0d659996c7204a5d269

/mnt/testfiles/DirectFB-examples-1.0.1.tar.gz

b80a152a5fcd9e96155a7379339dd6f8  /mnt/testfiles/GUIlib-1.2.1.tar.tar

1c135fa8d483043a0b555e353315470b  /mnt/testfiles/arnmusicmanager-0.2.tar.gz

1fba84dc5450751bb402b68a9b9fb429  /mnt/testfiles/directvnc-0.7.5.tar.gz

6b6d22662df5101b308c465a722c43ce  /mnt/testfiles/gnuplot-4.2.3.tar.gz

4afcf58a5c8c7f0bdb7d577a2829bd0f  /mnt/testfiles/isp1761.zip

6c06de2b4771e6cd67b9fe2054ec8a4d  /mnt/testfiles/libftd2xx0.4.13.tar.gz

18747c7b4a5ff2256a5fcedc4239b4dd  /mnt/testfiles/links-2.1pre32.tar.gz

cf687a245aec7be65a38ea8975ab186d  /mnt/testfiles/linux.bluetooth.tar.gz

400ac4bf3b22f474f8c176e135430d8b  /mnt/testfiles/linux_bf.svg

b07e11807730aad189fa30f53dd82eef  /mnt/testfiles/offline.tar.gz

9eab8fb3a75326d1565d59b0c7256075  /mnt/testfiles/qc-usb-0.6.6.tar.tar

022d7a3c572b554f3c47b12cae71a8a4

/mnt/testfiles/qt-embedded-free-3.3.5.tar.bz2

real    0m 25.50s

user    0m 18.99s

sys     0m 5.22s

root:/> time md5sum /mnt/testfiles/*

0cdfb4dd248eada3dc35db4f8cf75f8d

/mnt/testfiles/DirectFB-examples-1.0.0.tar.gz

6bef85f4eecdc0d659996c7204a5d269

/mnt/testfiles/DirectFB-examples-1.0.1.tar.gz

b80a152a5fcd9e96155a7379339dd6f8  /mnt/testfiles/GUIlib-1.2.1.tar.tar

1c135fa8d483043a0b555e353315470b  /mnt/testfiles/arnmusicmanager-0.2.tar.gz

1fba84dc5450751bb402b68a9b9fb429  /mnt/testfiles/directvnc-0.7.5.tar.gz

6b6d22662df5101b308c465a722c43ce  /mnt/testfiles/gnuplot-4.2.3.tar.gz

4afcf58a5c8c7f0bdb7d577a2829bd0f  /mnt/testfiles/isp1761.zip

6c06de2b4771e6cd67b9fe2054ec8a4d  /mnt/testfiles/libftd2xx0.4.13.tar.gz

18747c7b4a5ff2256a5fcedc4239b4dd  /mnt/testfiles/links-2.1pre32.tar.gz

cf687a245aec7be65a38ea8975ab186d  /mnt/testfiles/linux.bluetooth.tar.gz

400ac4bf3b22f474f8c176e135430d8b  /mnt/testfiles/linux_bf.svg

b07e11807730aad189fa30f53dd82eef  /mnt/testfiles/offline.tar.gz

9eab8fb3a75326d1565d59b0c7256075  /mnt/testfiles/qc-usb-0.6.6.tar.tar

022d7a3c572b554f3c47b12cae71a8a4

/mnt/testfiles/qt-embedded-free-3.3.5.tar.bz2

real    0m 25.49s

user    0m 18.98s

sys     0m 5.19s

root:/>

--- Felix Lazarev                                            2008-07-18 09:56:32

Tested, for some reason i'm getting bunch of "Never Error:QH and QTD must

not be zero" errors and then usb becomes not functional until i reset the

board. rmmod pehci, rmmod hal_pxa, modprobe pehci sequence doesn't work after

that state.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.