[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#640391: linux-image-3.0.0-1-686-pae: ark3116 driver regression



On Fri, Sep 16, 2011 at 01:17:51PM +0200, Bart Hartgers wrote:
> 2011/9/13 ael <law_ence.dev@ntlworld.com>:
> > On Tue, Sep 13, 2011 at 08:56:54PM +0200, Bart Hartgers wrote:
> >> >> > [Previous messages are logged at <http://bugs.debian.org/640391>.
> >
> >> truncated the termios data. Could you please rerun the strace with the
> >> '-v' option?
> >
> > Ok. Attached.
> >
> Hi ael,
> 
> As far as I can tell from the logs, gpsbabel does not enable
> handshaking. Unfortunately I do not another idea of what might be the
> problem. Another thing to try would be to load the ark3116 module with
> the debug=1 flag. Maybe something will appear in the kernel log/dmesg
> that gives a clue to what is going on.
> 
> I'll see if I can find my ark3116 and hook it up with a null modem to
> try to reproduce the problem myself. But it will take a while before I
> can spend some time on that.
> 

I would try that now but it is a bit late and I am too tired to get the
gps unit out and connect it tonight.

But note that the dmesgs appear when the module is loaded before 
gpsbabel is run.

I thought that I looked at the modinfo for ark3116 for a debug
parameter: I must have missed it.

But what I can do now is connect the ark3116 without the gps unit
attached. Without debug, I see:
Sep 16 20:20:29 elf kernel: [  886.628117] USB Serial support registered for ark3116
Sep 16 20:20:29 elf kernel: [  886.628230] ark3116 2-1:1.0: ark3116 converter detected
Sep 16 20:20:29 elf kernel: [  886.639145] usb 2-1: ark3116 using RS232 mode
Sep 16 20:20:29 elf kernel: [  886.639675] usb 2-1: ark3116 converter now attached to ttyUSB2
Sep 16 20:20:29 elf kernel: [  886.639801] usbcore: registered new interface driver ark3116
Sep 16 20:20:29 elf kernel: [  886.639818] ark3116:v0.6:USB ARK3116 serial/IrDA driver
Sep 16 20:20:29 elf kernel: [  886.721160] usb 2-1: ark3116: don't know how to do software flow control
Sep 16 20:20:29 elf kernel: [  886.734143] usb 2-1: ark3116: don't know how to do software flow control
Sep 16 20:20:29 elf kernel: [  886.742143] usb 2-1: ark3116: don't know how to do software flow control
Sep 16 20:20:29 elf kernel: [  886.850147] usb 2-1: ark3116: don't know how to do software flow control

--------------------------------------------------------------------------------

So that is nothing to do with the gps or gpsbabel.

# rmmod ark3116; modprobe ark3116 debug=1

Now the tail of /var/log/messages has:-
------------------------------------------------------------------------------
Sep 16 20:22:41 elf kernel: [ 1018.338935] usbcore: deregistering interface driver ark3116
Sep 16 20:22:41 elf kernel: [ 1018.339340] ark3116 ttyUSB2: ark3116 converter now disconnected from ttyUSB2
Sep 16 20:22:41 elf kernel: [ 1018.339442] ark3116 2-1:1.0: device disconnected
Sep 16 20:22:41 elf kernel: [ 1018.339542] USB Serial deregistering driver ark3116
Sep 16 20:22:41 elf kernel: [ 1018.361551] USB Serial support registered for ark3116
Sep 16 20:22:41 elf kernel: [ 1018.362726] ark3116 2-1:1.0: ark3116 converter detected
Sep 16 20:22:41 elf kernel: [ 1018.373754] usb 2-1: ark3116 using RS232 mode
Sep 16 20:22:41 elf kernel: [ 1018.374179] usb 2-1: ark3116 converter now attached to ttyUSB2
Sep 16 20:22:41 elf kernel: [ 1018.374250] usbcore: registered new interface driver ark3116
Sep 16 20:22:41 elf kernel: [ 1018.374259] ark3116:v0.6:USB ARK3116 serial/IrDA driver

------------------------------------------------------------------------------

So the "don't know how to do ...." messages have gone. Maybe I need to
do a hot replug with debug on, or maybe the debug switch has changed a
race or some such.

I just unplugged and replugged (I assume ark3116 stayed loaded with
debug=1 set) and just got:

----------------------------------------------------------------------
Sep 16 20:29:38 elf kernel: [ 1435.592212] usb 2-1: USB disconnect, device number 2
Sep 16 20:29:38 elf kernel: [ 1435.592788] ark3116 ttyUSB2: ark3116 converter now disconnected from ttyUSB2
Sep 16 20:29:38 elf kernel: [ 1435.592888] ark3116 2-1:1.0: device disconnected
Sep 16 20:29:44 elf kernel: [ 1441.260149] usb 2-1: new full speed USB device number 3 using uhci_hcd
Sep 16 20:29:44 elf kernel: [ 1441.420141] usb 2-1: New USB device found, idVendor=6547, idProduct=0232
Sep 16 20:29:44 elf kernel: [ 1441.420163] usb 2-1: New USB device strings: Mfr=1, Product=3, SerialNumber=0
Sep 16 20:29:44 elf kernel: [ 1441.420177] usb 2-1: Product: USB-UART Controller
Sep 16 20:29:44 elf kernel: [ 1441.420188] usb 2-1: Manufacturer: ArkMicroChips
Sep 16 20:29:44 elf kernel: [ 1441.422581] ark3116 2-1:1.0: ark3116 converter detected
Sep 16 20:29:44 elf mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1" 
Sep 16 20:29:44 elf kernel: [ 1441.437135] usb 2-1: ark3116 using RS232 mode
Sep 16 20:29:44 elf kernel: [ 1441.437541] usb 2-1: ark3116 converter now attached to ttyUSB2
Sep 16 20:29:44 elf mtp-probe: bus: 2, device: 3 was not an MTP device 
--------------------------------------------------------------------------------

Perhaps this is already a clue. But I will try to do a more thorough
test, perhaps tomorrow. (Just accidentally sawed through a water pipe
and need to get working with blowtorch and solder tommorrow, so
that will have to be a priority!)

Thanks for all the help. Hope to report further soon

ael.



Reply to: