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 {
@@ -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 {
相关文章推荐
- Github----"The authenticity of host ‘github.com......’ can't be established
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- VS2010 + Sql Server Express 2008 R2 如何安装(兼谈错误:The database 'XXX' cannot be opened because it is version 661. This server support
- HOW TO: FIX ERROR - "the 'microsoft.ace.oledb.12.0' provider is not registered on the local machine"
- ADODB使用excel的"Cannot modify the design of table 'xxxx'. It is in a read-only database"的问题
- The authenticity of host 'www.101du.net (60.210.17.34)' can't be established. RSA key fingerprint is xxxx. Are you sure you want
- One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot"
- Linux下开发warning:"the `gets' function is dangerous and should not be used"
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- 打开一个VC工程提示"Not all of the windows in the workspace could be opened."
- 解决itunesconnect上传时"at least one of the following architecture(s) must be present:armv6"问题
- is quoted with " which must be escaped when used within the value
- The value of attribute "description" associated with an element type "target" must not contain the '<' character.
- How to eliminate the compile error "conversion from 'double ' to 'float ', possible loss of data"
- The stack 'CSTACK' is filled to 100% (4096 bytes used out of 4096) 错误解决
- mysql:Variable 'character_set_client' can't be set to the value of 'NULL'解决
- "An extender can't be in a different UpdatePanel than the control it extends." error really needs debugging information ,错误
- HTTP Error 404.2 - Not Found "The page you are requesting cannot be served because of the ISAPI and
- Unable to resolve target 'Google Inc.:Google APIs和Open the Java build path property page of project
- git使用时遭遇the authenticity of host can't be established