/*^_^看usb spec 7.1.7.6吧, 这个命令就是把hub的这个port disable掉, 这样就达到休眠的目的了*/ status = set_port_feature(hub->hdev, port1, USB_PORT_FEAT_SUSPEND); if (status) { dev_dbg(hub->intfdev, "can't suspend port %d, status %d/n", port1, status); /* paranoia: "should ...
//连在该端口的设备的suspend状态有变化,从suspended状态出来,也就是说resume完成 if (portchange & USB_PORT_STAT_C_SUSPEND) { struct usb_device *udev; //清除掉SUSPEND这个flag clear_port_feature(hdev, i, USB_PORT_FEAT_C_SUSPEND); udev = hdev->children[i-1]; //该端口连了子设备的情况就把...
ehci_adjust_port_wakeup_flags); staticintehci_bus_suspend(structusb_hcd*hcd) { structehci_hcd*ehci=hcd_to_ehci(hcd); intport; intmask; intchanged; boolfs_idle_delay; ehci_dbg(ehci,"suspend root hub\n"); if(time_before(jiffies
if (portchange & USB_PORT_STAT_C_SUSPEND) { clear_port_feature(hdev, i, USB_PORT_FEAT_C_SUSPEND); //如果端口连接了设备,就将设备唤醒 if (hdev->children[i-1]) { ret = remote_wakeup(hdev-> children[i-1]); if (ret < 0) connect_change = 1; } //如果端口没有连接设备,就将端口...
status = hub_port_suspend(hdev_to_hub(udev->parent), port1, udev); if (status == 0) udev->dev.power.power_state = PMSG_SUSPEND; /*保存设备状态*/ return status; } 第一个参数是要休眠的USB设备, 第二个参数是该USB设备所连接到的hub的某个端口. ...
status = hub_port_suspend(hdev_to_hub(udev->parent), port1, udev); if (status == 0) udev->dev.power.power_state = PMSG_SUSPEND;/*保存 设备状态*/ return status; } 第一个参数是要休眠的USB设备,第二个参数是该USB设备所连接到的hub的某个端口. ...
status = hub_port_suspend(hdev_to_hub(udev->parent), port1, udev); if (status == 0) udev->dev.power.power_state = PMSG_SUSPEND; /*保存设备状态*/ return status; } 第一个参数是要休眠的USB设备, 第二个参数是该USB设备所连接到的hub的某个端口. ...
clear_port_feature(hdev, i,USB_PORT_FEAT_C_SUSPEND); udev = hdev->children[i-1]; if (udev) { usb_lock_device(udev); ret = remote_wakeup(hdev->children[i-1]); usb_unlock_device(udev); if (ret < 0) connect_change = 1; ...
description: USB device port low speed enable. bit_offset: 2 bit_size: 1 - name: DM_PIN description: USB device port UD- pin status. bit_offset: 4 bit_size: 1 - name: DP_PIN description: USB device port UD+ pin status. bit_offset: 5 bit_size: 1 - name: PD_DIS description: ...
3.2 xHCI每个port的4个寄存器 3.3 xHCI HS眼图调试寄存器设置流程 3.4 xHCI HS Roothub眼图测试patch 4EMC测试 4.1 出问题的RF频点 4.2 EMC干扰后,USB设备断开的代码路径 4.3 寄存器判断 - xHCI 5 电源管理 5.1 禁止全局运行autosuspend 5.2 xHCI autosuspend ...