Re: driver migration

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

 



Konstantin Shkolnyy <Konstantin.Shkolnyy@...> writes:
> Just a wild guess - this 30-second delay before close can happen because
usbserial is waiting for data to be
> transmitted, before closing the port.
> If you know that your data have been transmitted, perhaps you didn't
properly tell usbserial that your
> write operation has finished.

Konstantin

thank you for your suggestion. 

I have implemented a dedicated write routine for the driver, and it is
returning the value 11 (for 11 sent characters downstream). The urb ia then
 put back into the pool, and then the blocking starts. stty -f /dev/ttyUSB0
300 seems never to finish, while echo "0123456789" > /dev/ttyUSB0
reproducibly finish after 30 seconds. I will post the complete source code
in response to Greg's posting. 

Tilman

===== syslog ======
sbrsa_write; private struct =ffff880307620e00
{103936.132220] usbrsa ttyUSB0: usbrsa_write - port 0; bytes=11 := count=11
: nofTxBytesFree=4085
[103936.132226] usbrsa ttyUSB0: usbrsa_write - poolsize  10, urb_index 0
[103936.132231] usbrsa ttyUSB0: usbrsa_write - port 0;URB allocated=0
[103936.132237] usbrsa ttyUSB0: usbrsa_write - port 0;bytes in urb=11
[103936.132245] usbrsa ttyUSB0: usbrsa_write - length = 11, data = 30 31 32
33 34 35 36 37 38 39 0a
[103936.132255] usbrsa ttyUSB0: usbrsa_write - port 0;sent=11;count=0;
nof_bytes_to_be_sent=0;bytes=11
[103936.132261] usbrsa ttyUSB0: usbrsa_write() End - sent=11
[103936.132306] usbrsa ttyUSB0: usbrsa_write_callback() - port = 0, ep
=0xc0018f80
[103936.132319] usbrsa ttyUSB0: usbrsa_write_callback - length = 11, data =
30 31 32 33 34 35 36 37 38 39 0a
[103936.132326] usbrsa ttyUSB0: usbrsa_write_callback(): Returned URB 0
sbrsa_status_callback: nofTxBytesFree=4074,nofRxBytesReceived=0
[103938.129140] usbrsa ttyUSB0: usbrsa_status_callback():
usb_serial_port_softint

......

[103966.130101] usbrsa ttyUSB0: usbrsa_status_callback():
usb_serial_port_softint
[103966.654158] usbrsa_close - start
[103966.654167] usbrsa ttyUSB0: usbrsa_close - port 0 start
[103966.654172] usbrsa ttyUSB0: send_baudrate_lcr_register()
.....



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux