|
2014-02-13更新:
bug描述:
usb hub 系统调用reboot后没有复位问题,会导致USB设备无法继续使用。
解决方法:
修改内核目录arch/arm/mach-s5pv210/mach-tq210.c- +#ifdef CONFIG_USB_SUPPORT
- +void usb_host_phy_off(void)
- +{
- + __raw_writel(__raw_readl(S3C_USBOTG_PHYPWR) | (0x1<<7)|(0x1<<6),
- + S3C_USBOTG_PHYPWR);
- + __raw_writel(__raw_readl(S5P_USB_PHY_CONTROL) & ~(1<<1),
- + S5P_USB_PHY_CONTROL);
- +}
- +EXPORT_SYMBOL(usb_host_phy_off);
- +#endif
- +static void tq210_pm_restart(char mode, const char *cmd)
- +{
- + usb_host_phy_off();
- + arm_machine_restart(mode, cmd);
- +}
- static void __init tq210_machine_init(void)
- {
- + arm_pm_restart = tq210_pm_restart;
复制代码
|
|