LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   usbserial enumeration issue after suspend (http://www.linuxquestions.org/questions/linux-kernel-70/usbserial-enumeration-issue-after-suspend-784699/)

zxz 01-25-2010 05:23 PM

usbserial enumeration issue after suspend
 
Hi,

I'm quite new to Linux kernel. I'm using Linux 2.6.27.19 on OpenSuse. Currently I have a usbserial device with three ports showing
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB2

If I start a program when open the port of /dev/ttyUSB1 and /dev/ttyUSB2 and then suspend PC (s2ram --force), I will see
/dev/ttyUSB0
/dev/ttyUSB3 instead of /dev/ttyUSB1
/dev/ttyUSB4 instead of /dev/ttyUSB2
after PC resume.

My goal is NOT to close port of /dev/ttyUSB1 and /dev/ttyUSB2 before suspend and keep the port enumeration the same after resume.

I trace the /var/log/message and found /driver/usb/serial/bus.c usb_serial_device_remove function weren't called for /dev/ttyUSB1 and /dev/ttyUSB2. So at the resume, it directly enumerate with /dev/ttyUSB3 and /dev/ttyUSB4.

I don't know how to proceed to change the driver to reach my goal or I should try other directions?

Any hint will be appreciated!

zxz


All times are GMT -5. The time now is 09:43 AM.