Home > Geekspeak > ftdi_sio debuging

ftdi_sio debuging

July 26th, 2003

Debug kernels is really hard work. I have this ftdi RS-232 usb chip which the read operations fail after a couple of MB data is received. Anyway I have tried 3 different kernels(2.4.21 2.4.21-mdk, 2.6.0-test1) with a couple of configurations. I can at least make the problem occur every time now.

This is an extract from my system log.

Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: ftdi_read_bulk_callback - length = 20, data = 11 60 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 21
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: ftdi_write_room - returns 2048
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: ftdi_write port 1, 80 bytes
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: data_offset set to 0
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: ftdi_write - length = 64, data = 21 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: ftdi_write - length = 16, data = 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 21
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: ftdi_write write returning: 80
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: ftdi_read_bulk_callback
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: (this is ok on close) nonzero read bulk status received: -110
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: ftdi_write_bulk_callback
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: nonzero write bulk status received: -110
Jul 26 11:53:28 revolution1 kernel: ftdi_sio.c: ftdi_write_bulk_callback - port->open_count = 2

I have tried to replicate the problem under windows but I can’t find any decent programs to do it with. I am going to try 2.4.22-pre8 soon and see whether that makes life any better. Anyway I’ll keep you posted.

Geekspeak

  1. No comments yet.
  1. No trackbacks yet.