免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3376 | 回复: 1
打印 上一主题 下一主题

s3c2410 linux2.6.14 usb-host 电源管理问题: [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-30 14:54 |只看该作者 |倒序浏览
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都不见了呢。

论坛徽章:
0
2 [报告]
发表于 2007-12-03 09:32 |只看该作者

顶下,还请各位大侠多多指点啊,先谢谢啦。。。

顶下,还请各位大侠多多指点啊,先谢谢啦。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP