Dear all,
I'm using Ben's patch to S3C24XX USB host,
http://www.mail-archive.com/[email protected]/msg36593.html.
The port 1 of root hub works perfectly,
but the port 2 is not responding to the device plugging.
After inspecting on the patch, I have done some changes, but none seems works.
First, I found an error at usb_hcd_s3c2410_probe(), where...
s3c2410_usb_set_power(dev->dev.platform_data, 0, 1);
s3c2410_usb_set_power(dev->dev.platform_data, 1, 1);
aren't these...?
s3c2410_usb_set_power(dev->dev.platform_data, 1, 1);
s3c2410_usb_set_power(dev->dev.platform_data, 2, 1);
I also had my mach-smdk2410.c like this, ...
static struct s3c2410_hcd_info smdk2410_usbcfg = {
.port[0] = {
.flags = S3C_HCDFLG_USED
},
.port[1] = {
.flags = S3C_HCDFLG_USED
},
};
But none of these changes makes my port 2 working,
any idea?
Thanks in advanced! :)
Rudy 7/28
BTW, some dmesg may be useful, I had two usb devices pluging on the board.
..................
My flash device initialized
usbmon: debugs is not available
bus platform: add driver s3c2410-ohci
s3c2410-ohci s3c2410-ohci: s3c2410_start_hc:
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
CLASS: registering class device: ID = 'usb1'
class_hotplug - name = usb1
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
s3c2410-ohci s3c2410-ohci: resetting from state 'reset', control = 0x0
s3c2410-ohci s3c2410-ohci: OHCI controller state
s3c2410-ohci s3c2410-ohci: OHCI 1.0, NO legacy support registers
s3c2410-ohci s3c2410-ohci: control 0x083 HCFS=operational CBSR=3
s3c2410-ohci s3c2410-ohci: cmdstatus 0x00000 SOC=0
s3c2410-ohci s3c2410-ohci: intrstatus 0x00000044 RHSC SF
s3c2410-ohci s3c2410-ohci: intrenable 0x8000001a MIE UE RD WDH
s3c2410-ohci s3c2410-ohci: fminterval a7782edf
s3c2410-ohci s3c2410-ohci: hcca frame #0003
s3c2410-ohci s3c2410-ohci: roothub.a 02001202 POTPGT=2 NOCP NPS NDP=2
s3c2410-ohci s3c2410-ohci: roothub.b 00000000 PPCM=0000 DR=0000
s3c2410-ohci s3c2410-ohci: roothub.status 00008000 DRWE
s3c2410-ohci s3c2410-ohci: roothub.portstatus [0] 0x00010101 CSC PPS CCS
s3c2410-ohci s3c2410-ohci: roothub.portstatus [1] 0x00000100 PPS
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.12.2 ohci_hcd
usb usb1: SerialNumber: s3c24xx
DEV: registering device: ID = 'usb1'
usb usb1: hotplug
bus usb: add device usb1
bound device 'usb1' to driver 'usb'
usb usb1: adding 1-0:1.0 (config #1, interface 0)
DEV: registering device: ID = '1-0:1.0'
usb 1-0:1.0: hotplug
bus usb: add device 1-0:1.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
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa006,0x2900,0x0000,c030fc40,000d)
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: no over-current protection
hub 1-0:1.0: power on to power good time: 4ms
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa000,0x0000,0x0000,c030fc04,0004)
hub 1-0:1.0: local power source is good
bound device '1-0:1.0' to driver 'hub'
s3c2410-ohci s3c2410-ohci: created debug files
bound device 's3c2410-ohci' to driver 's3c2410-ohci'
CLASS: registering class device: ID = 'mice'
class_hotplug - name = mice
hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0000
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa300,0x0000,0x0001,c2f5de24,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00010101 CSC
PPS CCS
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0x2301,0x0010,0x0001,c2f5de3c,0000)
hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa300,0x0000,0x0001,c2f5de24,0004)
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa300,0x0000,0x0001,c2f5de24,0004)
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa300,0x0000,0x0001,c2f5de24,0004)
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
RAMDISK: Compressed image found at block 0
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa300,0x0000,0x0001,c2f5de24,0004)
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa300,0x0000,0x0001,c2f5de24,0004)
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0x2303,0x0004,0x0001,c2f5ddb8,0000)
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa300,0x0000,0x0001,c2f5dda0,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00100103 PRSC
PPS PES CCS
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0x2301,0x0014,0x0001,c2f5ddb8,0000)
usb 1-1: new full speed USB device using s3c2410-ohci and address 2
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0x2303,0x0004,0x0001,c2f5ddb8,0000)
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa300,0x0000,0x0001,c2f5dda0,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00100103 PRSC
PPS PES CCS
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0x2301,0x0014,0x0001,c2f5ddb8,0000)
usb 1-1: default language 0x0409
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: MATRIX II
usb 1-1: Manufacturer: WIS
DEV: registering device: ID = '1-1'
usb 1-1: hotplug
bus usb: add device 1-1
bound device '1-1' to driver 'usb'
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
DEV: registering device: ID = '1-1:1.0'
usb 1-1:1.0: hotplug
bus usb: add device 1-1:1.0
s3c2410-ohci s3c2410-ohci:
s3c2410_hub_control(c2fb6400,0xa300,0x0000,0x0002,c2f5de24,0004)
s3c2410-ohci s3c2410-ohci: GetPortStatus(2)
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 88K
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel