SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4c ---------------------------------<intr> ohci_irq:932: s3c2410-ohci s3c2410-ohci: rhsc
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :3
SUD File: drivers/usb/core/hcd.c, Line:00791: usb_hcd_poll_rh_status,1,9d SET TIMER
[26] usb_remote_wakeup:3645: usb usb1: usb wakeup-resume
[26] hcd_bus_resume:2182: usb usb1: usb auto-resume
[26] ohci_rh_resume:184: s3c2410-ohci s3c2410-ohci: wakeup root hub
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :1
SUD File: drivers/usb/core/hcd.c, Line:00791: usb_hcd_poll_rh_status,1,9d SET TIMER
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,99[26] hub_resume:3807: hub 1-0:1.0: hub_resume
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0xa300,0x0000,0x0001,(ptrval),0004)[26] ohci_hub_control:755: s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0]=0x00010301 CSC LSDA PPS CCS
[26] hub_activate:1125: usb usb1-port1: status 0301 change 0001[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0x2301,0x0010,0x0001,(ptrval),0000)
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,44---------------------------------<intr> ohci_irq:932: s3c2410-ohci s3c2410-ohci: rhsc
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a9
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0xa300,0x0000,0x0002,(ptrval),0004)
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a9
[26] hub_event:5533: hub 1-0:1.0: state 7 ports 2 chg 0002 evt 0000[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0xa300,0x0000,0x0001,(ptrval),0004)
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a9
[26] hub_port_connect_change:5300: usb usb1-port1: status 0301, change 0000,1.5 Mb/s
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0x2303,0x0004,0x0001,(ptrval),0000)
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,44---------------------------------<intr> ohci_irq:932: s3c2410-ohci s3c2410-ohci: rhsc
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00791: usb_hcd_poll_rh_status,1,a5 SET TIMER
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0xa300,0x0000,0x0001,(ptrval),0004)[26] ohci_hub_control:755: s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0]=0x00100303 PRSC LSDA PPS PES CCS
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0x2301,0x0014,0x0001,(ptrval),0000)
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a1
usb 1-1: new low-speed USB device number 2 using s3c2410-ohci
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0x2303,0x0004,0x0001,(ptrval),0000)
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,44---------------------------------<intr> ohci_irq:932: s3c2410-ohci s3c2410-ohci: rhsc
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00791: usb_hcd_poll_rh_status,1,a5 SET TIMER
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0xa300,0x0000,0x0001,(ptrval),0004)[26] ohci_hub_control:755: s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0]=0x00100303 PRSC LSDA PPS PES CCS
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0x2301,0x0014,0x0001,(ptrval),0000)
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a1
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------[26] usb_parse_interface:554: usb 1-1: skipped 1 descriptor after interface
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------[26] usb_get_langid:939: usb 1-1:default language 0x0409
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------[26] usb_new_device:2529: usb 1-1: udev 2, busnum 1, minor =1
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------[26] usb_probe_device:255: usb 1-1: usb_probe_device
[26] usb_choose_configuration:187: usb 1-1: configuration #1 chosen from 1 choice
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------[26] usb_set_configuration:2162: usb 1-1: adding 1-1:1.0(config #1, interface 0)
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------[26] usb_probe_interface:327: usbhid 1-1:1.0: usb_probe_interface
[26] usb_probe_interface:349: usbhid 1-1:1.0: usb_probe_interface - got id
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------<intr> td_done:826: s3c2410-ohci s3c2410-ohci:urb(ptrval)td(ptrval)(2) cc 4, len=0/0
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
input: YSPRINGTECH USB OPTICAL MOUSE as /devices/platform/s3c2410-ohci/usb1/1-1/1-1:1.0/0003:10C4:8105.0001/input/input0
hid-generic 0003:10C4:8105.0001: input: USB HID v1.11 Mouse [YSPRINGTECH USB OPTICAL MOUSE] on usb-s3c24xx-1/input0
[26] hub_event:5533: hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),0xa300,0x0000,0x0001,(ptrval),0004)
log解析 s3c2410_hub_control 角度
// 当hubstatus 或者 portstatus[0...n] 中的 任一个bit 发生变化时,就会产生rhsc中断
第一次中断(由于 port1 的 CCS 中断)
获取 port1的 change CCS(change in CurrentConnectStatus)
清除 port1的 CSC
第二次中断(由于 state 7 ports 2 chg 0002 evt 0000 中断?)
获取 port2的状态
对port1 做 reset
第三次中断(由于port1 的 PRSC 中断)
获取 port1的 change PRSC
清除 port1的 PRSC
第四次中断(由于 ?)
对port1 做 reset
第五次中断(由于 ?)
第六次中断(由于port1 的 PRSC 中断)
获取 port1的 change PRSC
清除 port1的 PRSC
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4c ---------------------------------<intr> ohci_irq:932: s3c2410-ohci s3c2410-ohci: rhsc
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :3
SUD File: drivers/usb/core/hcd.c, Line:00791: usb_hcd_poll_rh_status,1,9d SET TIMER
[26] usb_remote_wakeup:3645: usb usb1: usb wakeup-resume
[26] hcd_bus_resume:2182: usb usb1: usb auto-resume
[26] ohci_rh_resume:184: s3c2410-ohci s3c2410-ohci: wakeup root hub
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :1
SUD File: drivers/usb/core/hcd.c, Line:00791: usb_hcd_poll_rh_status,1,9d SET TIMER
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,99[26] hub_resume:3807: hub 1-0:1.0: hub_resume
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)[26] ohci_hub_control:755: s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0]=0x00010301 CSC LSDA PPS CCS
// port 1 对应 roothub.portstatus [0] ,
change :(CSC)change in CurrentConnectStatus
device connected,
port power is on ,
low speed device attached ,[26] hub_activate:1125: usb usb1-port1: status 0301 change 0001[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),ClearPortFeature,0x0010(USB_PORT_FEAT_C_CONNECTION,RH_PS_CSC),0x0001,(ptrval),0000)// port 1clear(CSC)ConnectStatusChange
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,44---------------------------------<intr> ohci_irq:932: s3c2410-ohci s3c2410-ohci: rhsc
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a9
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0002,(ptrval),0004)// port 2 对应 roothub.portstatus [1],
没有change
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a9
[26] hub_event:5533: hub 1-0:1.0: state 7 ports 2 chg 0002 evt 0000[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)// port 1 对应 roothub.portstatus [0] ,
没有change
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a9
[26] hub_port_connect_change:5300: usb usb1-port1: status 0301, change 0000,1.5 Mb/s
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),SetPortFeature,0x0004,0x0001,(ptrval),0000)// port 1 对应 roothub.portstatus [0] ,
port reset
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,44---------------------------------<intr> ohci_irq:932: s3c2410-ohci s3c2410-ohci: rhsc
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00791: usb_hcd_poll_rh_status,1,a5 SET TIMER
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)[26] ohci_hub_control:755: s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0]=0x00100303 PRSC LSDA PPS PES CCS
// port 1 对应 roothub.portstatus [0] ,
change :(PRSC)change port reset is complete
device connected CSC ,
port is enabled
port power is on ,
low speed device attached ,[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),ClearPortFeature,0x0014(USB_PORT_FEAT_C_RESET,RH_PS_PRSC),0x0001,(ptrval),0000)// port 1clear(PRSC) port reset is complete
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a1
usb 1-1: new low-speed USB device number 2 using s3c2410-ohci
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,6---------------------------------[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),SetPortFeature,0x0004,0x0001,(ptrval),0000)// port 1 对应 roothub.portstatus [0] ,
port reset
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,4---------------------------------
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,44---------------------------------<intr> ohci_irq:932: s3c2410-ohci s3c2410-ohci: rhsc
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00791: usb_hcd_poll_rh_status,1,a5 SET TIMER
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)[26] ohci_hub_control:755: s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0]=0x00100303 PRSC LSDA PPS PES CCS
// port 1 对应 roothub.portstatus [0] ,
change : change port reset is complete
device connected CSC ,
port is enabled
port power is on ,
low speed device attached ,[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),ClearPortFeature,0x0014(USB_PORT_FEAT_C_RESET,RH_PS_PRSC),0x0001,(ptrval),0000)// port 1clear(PRSC) port reset is complete
SUD File: drivers/usb/host/ohci-hub.c, Line:00357: ohci_root_hub_state_changes,state :2
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a1
拔出log解析
SUD File: drivers/usb/host/ohci-hcd.c, Line:00889: ohci_irq ,44<intr> ohci_irq:930: s3c2410-ohci s3c2410-ohci: rhsc
SUD File: drivers/usb/core/hcd.c, Line:00791: usb_hcd_poll_rh_status,1,a5
[26] hub_event:5533: hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)[26] ohci_hub_control:754: s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0]=0x00030100 PESC CSC PPS
// port 1// change : PESC CSC// PES : port is disabled// CCS : no device connected// PPS : port power is on[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),ClearPortFeature,0x0010,0x0001,(ptrval),0000)// port 1// clear CSC[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),ClearPortFeature,0x0011,0x0001,(ptrval),0000)// port 1// clear PESC[26] hub_port_connect_change:5300: usb usb1-port1: status 0100, change 0003,12 Mb/s
usb 1-1: USB disconnect, device number 2[26] usb_disconnect:2217: usb 1-1: unregistering device
[26] usb_disable_device:1411: usb 1-1: unregistering interface 1-1:1.0[26] usb_disable_device:1434: usb 1-1: usb_disable_device nuking all URBs
SUD File: drivers/usb/core/hcd.c, Line:00794: usb_hcd_poll_rh_status,1,a1
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)// port 1
no change
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)// port 1
no change
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)// port 1
no change
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)// port 1
no change
[26] ohci_s3c2410_hub_control:177: s3c2410-ohci s3c2410-ohci:s3c2410_hub_control((ptrval),GetPortStatus,0x0000,0x0001,(ptrval),0004)// port 1
no change
[26] hub_port_debounce:4454: usb usb1-port1: debounce total 100ms stable 100ms status 0x100[26] hub_suspend:3762: hub 1-0:1.0: hub_suspend
[26] hcd_bus_suspend:2130: usb usb1: bus auto-suspend, wakeup 1[26] ohci_rh_suspend:73: s3c2410-ohci s3c2410-ohci: suspend root hub