Greg KH wrote:
On Fri, Jul 23, 2004 at 09:38:19PM -0500, Lonnie Mendez wrote:
Try enabling USB Serial Converter verbose debug under USB Serial
Converter support, along with USB verbose debug. Make note that the USB
Serial Converter driver needs to be compiled into the kernel in order for
the debugging option to show up in the kernel config menu.
That's because if you are building the drivers as a module, all you need to do is enable the debug option on the modprobe line like: modprobe usbserial debug=1 modprobe pl2303 debug=1
And now with the debugging. I'm *really* new to this code, but I got debugs in one window and code in another, and I *think* I kinda understand it... =)
I have a lot of:
Jul 23 22:14:16 rider kernel: drivers/usb/serial/generic.c: usb_serial_generic_write_room - port 0
Jul 23 22:14:16 rider kernel: drivers/usb/serial/generic.c: usb_serial_generic_write_room - returns 64
Jul 23 22:14:16 rider kernel: drivers/usb/serial/usb-serial.c: serial_chars_in_buffer = port 0
Jul 23 22:14:16 rider kernel: drivers/usb/serial/generic.c: usb_serial_generic_chars_in_buffer - port 0
Jul 23 22:14:16 rider kernel: drivers/usb/serial/generic.c: usb_serial_generic_chars_in_buffer - returns 0
So using Greg's advice I decided to reboot back onto my old kernel and see what the pl2303 driver had to say. I get lots and lots of sucessful pl2303_read_bulk_callback()s and pl2303_write()s. Then, I get:
Jul 24 00:24:37 rider kernel: drivers/usb/serial/pl2303.c: pl2303_write - length = 64, data = 83 00 48 01 00 45 00 74 00 65 00 6c 00 65 00 63 00 6f 00 6d 00 2f 00 70 00 62 00 2f 00 6c 00 75 00 69 00 64 00 2f 00 30 00 30 00 30 00 30 00 30 00 31 00 30 00 30 00 30 00 30 00 30 00 30 00 2e
Jul 24 00:24:37 rider kernel: drivers/usb/serial/pl2303.c: pl2303_write - port 0, 8 bytes
Jul 24 00:24:37 rider kernel: drivers/usb/serial/pl2303.c: pl2303_write - already writing
Jul 24 00:24:37 rider kernel: drivers/usb/serial/pl2303.c: pl2303_write - port 0, 8 bytes
Jul 24 00:24:37 rider kernel: drivers/usb/serial/pl2303.c: pl2303_write - already writing
Jul 24 00:24:37 rider kernel: drivers/usb/serial/pl2303.c: pl2303_write_bulk_callback - port 0
and a big timeout, and then I send a break, do a few read callbacks, then some settermios, and then it closes the port. I'm unclear why.
While I'm here, I noticed a small bug to the dbg() statement, I've attached a patch.
-- Phil Dibowitz [EMAIL PROTECTED] Freeware and Technical Pages Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, 1759
630c630 < dbg("%s - turning break %s", state==BREAK_OFF ? "off" : "on", __FUNCTION__); --- > dbg("%s - turning break %s", __FUNCTION__, state==BREAK_OFF ? "off" : "on");
signature.asc
Description: OpenPGP digital signature