Hello,

I am trying to get USB working on Jornada 820, which uses SA1101. There 
is already a driver in the kernel for OHCI on SA1111, which is similar 
to 1101, so I do this by changing the 1111 driver.

This method works on kernel 2.4 (2.4.19-hh36 from handhelds.org), but on 
kernel 2.6 (2.6.7-hh1), it is only almost working. Device 
insertion/removal is recognized, but the devices do not accept new 
address. I checked that IRQs are OK (there are 12 or 13 every time a 
device is inserted) and DMA is OK (the frame number is running in the 
HCCA). I tried this with a few devices, and the kernel always recognizes 
the correct speed (1.5Mb/s or 12Mb/s), so there is some kind of 
communication between HCI and device.

I would be glad to receive any advice regarding how to debug this 
problem.


The session goes something like this:

usbcore: registered new driver usbfs
usbcore: registered new driver hub
drivers/usb/host/ohci-sa1101.c: ohci_hcd (SA-1101) at 0x00000000, irq 101
sa1101-ohci 180000: new USB bus registered, assigned bus number 1
sa1101-ohci 180000: reset, control = 0xbf
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: default language 0x0409
usb usb1: Product: SA-1101 OHCI
usb usb1: Manufacturer: Linux 2.6.7-hh0 ohci_hcd
usb usb1: SerialNumber: sa1101
usb usb1: adding 1-0:1.0 (config #1, interface 0)
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: 1 port detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: no over-current protection
hub 1-0:1.0: power on to power good time: 4ms
hub 1-0:1.0: local power source is good
sa1101-ohci 180000: created debug files
sa1101-ohci 180000: OHCI controller state
sa1101-ohci 180000: OHCI 1.0, with legacy support registers
sa1101-ohci 180000: control 0x083 HCFS=operational CBSR=3
sa1101-ohci 180000: cmdstatus 0x00000 SOC=0
sa1101-ohci 180000: intrstatus 0x00000044 RHSC SF
sa1101-ohci 180000: intrenable 0x8000001a MIE UE RD WDH
sa1101-ohci 180000: hcca frame #0066
sa1101-ohci 180000: roothub.a 02001201 POTPGT=2 NOCP NPS NDP=1
sa1101-ohci 180000: roothub.b 00000000 PPCM=0000 DR=0000
sa1101-ohci 180000: roothub.status 00008000 DRWE
sa1101-ohci 180000: roothub.portstatus [0] 0x00000100 PPS
sa1101-ohci 180000: autosuspend

<inserting device>

sa1101-ohci 180000: GetStatus roothub.portstatus [1] = 0x00010301 CSC LSDA PPS CCS
hub 1-0:1.0: port 1, status 0301, change 0001, 1.5 Mb/s
sa1101-ohci 180000: GetStatus roothub.portstatus [1] = 0x00000301 LSDA PPS CCS
sa1101-ohci 180000: GetStatus roothub.portstatus [1] = 0x00000301 LSDA PPS CCS
sa1101-ohci 180000: GetStatus roothub.portstatus [1] = 0x00000301 LSDA PPS CCS
sa1101-ohci 180000: GetStatus roothub.portstatus [1] = 0x00000301 LSDA PPS CCS
sa1101-ohci 180000: GetStatus roothub.portstatus [1] = 0x00000301 LSDA PPS CCS
hub 1-0:1.0: debounce: port 1: delay 100ms stable 4 status 0x301
sa1101-ohci 180000: GetStatus roothub.portstatus [1] = 0x00100303 PRSC LSDA PPS PES CCS
usb 1-1: new low speed USB device using address 2
sa1101-ohci 180000: urb c04cf658 td ffc4e040 (2) cc 4, len=0/0
sa1101-ohci 180000: urb c04cf658 td ffc4e000 (2) cc 4, len=0/0
usb 1-1: device not accepting address 2, error -32
sa1101-ohci 180000: GetStatus roothub.portstatus [1] = 0x00100303 PRSC LSDA PPS PES CCS
usb 1-1: new low speed USB device using address 3
sa1101-ohci 180000: urb c04cf658 td ffc4e080 (2) cc 4, len=0/0
sa1101-ohci 180000: urb c04cf658 td ffc4e000 (2) cc 4, len=0/0
usb 1-1: device not accepting address 3, error -32
sa1101-ohci 180000: GetStatus roothub.portstatus [1] = 0x00000301 LSDA PPS CCS




-- 
Matan Ziv-Av.                         [EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to