打印

s3c2410 linux2.6.14 usb-host 电源管理问题:

[复制链接]
1834|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
gg940231|  楼主 | 2007-11-30 14:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
s3c2410 linux2.6.14 usb-host 电源管理问题:

在2410板上挂了个1GB的U盘,测试usb-host的电源管理功能。
上电启动显示如下:
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.14.1 ohci_hcd
usb usb1: SerialNumber: s3c24xx
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using s3c2410-ohci and address 2
ub(1.2): GetMaxLUN returned 0, using 1 LUNs
 /dev/ub/a: p1
找到了U盘,mount -t vfat /dev/ub/a/part1 /mnt 就可以访问了。



然后,让系统休眠。。。。。。再用键盘唤醒。
Stopping tasks: ===========|
ub 1-1:1.0: resume is unsafe!
usb 1-1: no poweroff yet, suspending instead
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0x2303,0x0002,0x0001,c33e5cc0,0000)
usb 1-1: usb suspend
usb usb1: no poweroff yet, suspending instead
s3c2410-ohci s3c2410-ohci: suspend root hub
usb usb1: usb suspend
s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 10ns
s3c2410-ohci s3c2410-ohci: root hub hardware reset
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 #0024
s3c2410-ohci s3c2410-ohci: roothub.a 02001202 POTPGT=2 NOCP NPS NDP=2(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
s3c2410-ohci s3c2410-ohci: restart complete
usb usb1: usb resume
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0xa300,0x0000,0x0001,c33e5cb8,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00010105 CSC PPS PSS CCS
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0xa300,0x0000,0x0002,c33e5cb8,0004)
s3c2410-ohci s3c2410-ohci: GetPortStatus(2)
ub 1-1:1.0: PM: resume from 0, parent 1-1 still 2
Restarting tasks...<7>hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0000
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0xa300,0x0000,0x0001,c3881df4,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00010105 CSC PPS PSS CCS
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0x2301,0x0010,0x0001,c3881e0c,0000)
usb 1-1: USB disconnect, address 2
usb 1-1: usb_disable_device nuking all URBs
usb 1-1: unregistering interface 1-1:1.0
usb 1-1:1.0: hotplug
usb 1-1: unregistering device
usb 1-1: hotplug
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c3d4d000,0xa300,0x0000,0x0001,c3881df4,0004)
s3c2410-ohci s3c2410-ohci: GetPortStatus(1)
 done

usb 1-1: new full speed USB device using s3c2410-ohci and address 3
ub(1.3): GetMaxLUN returned 0, using 1 LUNs
 /dev/ub/b: p1

奇怪的是:怎么唤醒后系统又重新找到了U盘,不过变成了 /dev/ub/b/part1 了,原来的 /dev/ub/a/part1都不见了呢。

相关帖子

沙发
阿南| | 2007-11-30 19:48 | 只看该作者

帮顶!没搞过,帮不了楼主了.哪位兄弟搞过的,帮一下忙

使用特权

评论回复
板凳
gg940231|  楼主 | 2007-12-3 09:22 | 只看该作者

谢谢啦,,,顶下

谢谢啦,,,顶下

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

133

主题

223

帖子

0

粉丝