s3c2410 linux2.6.14 usb-host 电源管理问题:<br /><br />在2410板上挂了个1GB的U盘,测试usb-host的电源管理功能。<br />上电启动显示如下:<br />s3c2410-ohci s3c2410-ohci: S3C24XX OHCI<br />s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1<br />s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000<br />usb usb1: Product: S3C24XX OHCI<br />usb usb1: Manufacturer: Linux 2.6.14.1 ohci_hcd<br />usb usb1: SerialNumber: s3c24xx<br />hub 1-0:1.0: USB hub found<br />hub 1-0:1.0: 2 ports detected<br />usb 1-1: new full speed USB device using s3c2410-ohci and address 2<br />ub(1.2): GetMaxLUN returned 0, using 1 LUNs<br /> /dev/ub/a: p1<br />找到了U盘,mount -t vfat /dev/ub/a/part1 /mnt 就可以访问了。<br /><br /><br /><br />然后,让系统休眠。。。。。。再用键盘唤醒。<br />Stopping tasks: ===========|<br />ub 1-1:1.0: resume is unsafe!<br />usb 1-1: no poweroff yet, suspending instead<br />s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0x2303,0x0002,0x0001,c33e5cc0,0000)<br />usb 1-1: usb suspend<br />usb usb1: no poweroff yet, suspending instead<br />s3c2410-ohci s3c2410-ohci: suspend root hub<br />usb usb1: usb suspend<br />s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 10ns<br />s3c2410-ohci s3c2410-ohci: root hub hardware reset<br />s3c2410-ohci s3c2410-ohci: resetting from state 'reset', control = 0x0<br />s3c2410-ohci s3c2410-ohci: OHCI controller state<br />s3c2410-ohci s3c2410-ohci: OHCI 1.0, NO legacy support registers<br />s3c2410-ohci s3c2410-ohci: control 0x083 HCFS=operational CBSR=3<br />s3c2410-ohci s3c2410-ohci: cmdstatus 0x00000 SOC=0<br />s3c2410-ohci s3c2410-ohci: intrstatus 0x00000044 RHSC SF<br />s3c2410-ohci s3c2410-ohci: intrenable 0x8000001a MIE UE RD WDH<br />s3c2410-ohci s3c2410-ohci: fminterval a7782edf<br />s3c2410-ohci s3c2410-ohci: hcca frame #0024<br />s3c2410-ohci s3c2410-ohci: roothub.a 02001202 POTPGT=2 NOCP NPS NDP=2(2)<br />s3c2410-ohci s3c2410-ohci: roothub.b 00000000 PPCM=0000 DR=0000<br />s3c2410-ohci s3c2410-ohci: roothub.status 00008000 DRWE<br />s3c2410-ohci s3c2410-ohci: roothub.portstatus [0] 0x00010101 CSC PPS CCS<br />s3c2410-ohci s3c2410-ohci: roothub.portstatus [1] 0x00000100 PPS<br />s3c2410-ohci s3c2410-ohci: restart complete<br />usb usb1: usb resume<br />s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0xa300,0x0000,0x0001,c33e5cb8,0004)<br />s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00010105 CSC PPS PSS CCS<br />s3c2410-ohci s3c2410-ohci: GetPortStatus(1)<br />s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0xa300,0x0000,0x0002,c33e5cb8,0004)<br />s3c2410-ohci s3c2410-ohci: GetPortStatus(2)<br />ub 1-1:1.0: PM: resume from 0, parent 1-1 still 2<br />Restarting tasks...<7>hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0000<br />s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0xa300,0x0000,0x0001,c3881df4,0004)<br />s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00010105 CSC PPS PSS CCS<br />s3c2410-ohci s3c2410-ohci: GetPortStatus(1)<br />s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0x2301,0x0010,0x0001,c3881e0c,0000)<br />usb 1-1: USB disconnect, address 2<br />usb 1-1: usb_disable_device nuking all URBs<br />usb 1-1: unregistering interface 1-1:1.0<br />usb 1-1:1.0: hotplug<br />usb 1-1: unregistering device<br />usb 1-1: hotplug<br />s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0xa300,0x0000,0x0001,c3881df4,0004)<br />s3c2410-ohci s3c2410-ohci: GetPortStatus(1)<br /> done<br /><br />usb 1-1: new full speed USB device using s3c2410-ohci and address 3<br />ub(1.3): GetMaxLUN returned 0, using 1 LUNs<br /> /dev/ub/b: p1<br /><br />奇怪的是:怎么唤醒后系统又重新找到了U盘,不过变成了 /dev/ub/b/part1 了,原来的 /dev/ub/a/part1都不见了呢。<br /> |
|