您的位置:首页 > 产品设计 > UI/UE

resolve the issue of "the machine is dead" caused by that /dev/ttyUSB2 cann't be opened

2011-07-19 14:45 417 查看
kernel_imx/drivers/usb/serial/option.c
@@ -980,8 +980,10 @@
if (old_dcd_state && !portdata->dcd_state) {
struct tty_struct *tty =
tty_port_tty_get(&port->port);
- if (tty && !C_CLOCAL(tty))
- tty_hangup(tty);
+ if (tty && !C_CLOCAL(tty)){
+ printk(KERN_INFO"Warning!not calling tty_hangup for dcd state change at %s, line %d\n",__FUNCTION__, __LINE__);
+ //tty_hangup(tty);
+ }
tty_kref_put(tty);
}
} else {
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐