It uses LSR to see if the data is sent? That's a bit strange, but ok.
Not that strange. The comments in mos7840.c suggest that this is the
reason why they support it as well.
No, that wouldn't really work. What you need is the real TIOCSERGETLSR
support added to the driver, as it currently doesn't support it.
Or you can go get a different device, as a few other usb to serial
devices do support TIOCSERGETLSR already. Those would be ones
controlled by the io_edgeport, mos7840, and mos7720 drivers.
I only checked mos7840 and they use the result of the chars_in_buffer
function. The ftdi_sio has one as well.
Does this function return the number of characters in the PC buffer or
in the ftdi usb chips buffer? So if it is 0 does it mean the data has
been sent?
regards,
--
Willem-Jan de Hoog
--
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