Re: [PATCH] usb-core: Add MS_INTR_BINTERVAL USB quirk

2017-03-13 Thread Dave Mielke
note, they do observe that, so far, they've been unable to achieve a transfer speed faster than 5,000 characters in seven minutes. It looks to me like this is exactly due to their incorrect setting of bInterval. :-) I've sent them a note about it. -- Dave Mielke | 2213 Fox Crescent

Re: [PATCH] usb-core: Add MS_INTR_BINTERVAL USB quirk

2017-03-13 Thread Dave Mielke
nterval must still be interpreted the old way if the device is operating at full or low speed. Is that correct? If the above is correct, how can we tell from usbfs which way to interpret bInterval? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0

Re: [PATCH] usb-core: Add MS_INTR_BINTERVAL USB quirk

2017-03-12 Thread Dave Mielke
Super speed. Yes, I did know this, so maybe I misunderstood what you were wondering about. Were you wondering why 64ms was too long? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d.

Re: [PATCH] usb-core: Add MS_INTR_BINTERVAL USB quirk

2017-03-12 Thread Dave Mielke
criptor. Our assumption was that since it says it's USB 2.0 then bInterval must be intterpreted in light of that regardless of the actual speed used for communication. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mie

Re: [PATCH] usb-core: Add MS_INTR_BINTERVAL USB quirk

2017-03-12 Thread Dave Mielke
eard of) run at low speed, and a few of them run at >full speed. I can't remember any running at high speed. According to my collection of data, 5 say 1.00, 15 say 1.1, and 21 say 2.0. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 |

Re: clear halt

2016-06-05 Thread Dave Mielke
state to >> reset >> its end to? > >Nope, sorry, see the USB spec for details :( Thanks. I was just hoping that I'd missed something. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/b

clear halt

2016-06-05 Thread Dave Mielke
Using USBFS: If a device doesn't support clear halt (or, perhaps, not properly), is there an alternative? For example, is there a way to ask which state the device's data toggle is in and then tell the host what state to reset its end to? -- Dave Mielke | 2213 Fox Crescent

ttyACM device issue.

2016-05-30 Thread Dave Mielke
and VMIN to 0. This should do non-blocking reads that return 0 (something our code always successfully does with ttyS devices) but, with the ttyACM device, the read blocks. Is this expected behaviour for ttyACM devices? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word

Re: Polling a usbfs file descriptor.

2015-04-21 Thread Dave Mielke
of curiosity, do you know why one must poll for output (rather than for input)? JDoes writability precisely mean that there's at least one user-submitted URB that can now be reaped? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario

Polling a usbfs file descriptor.

2015-04-20 Thread Dave Mielke
to use this capability? Can anyone point me to documentation that formally describes how it works? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-12 Thread Dave Mielke
blocked. That lets each thread safely unblock each signal it cares about. So, I aghree, there's no bug - just a bit of memory loss on my part. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-12 Thread Dave Mielke
, that's only one of them - shouldn't the handling revert to the default for that signal? Isn't it wrong that, when there are no signalfd file descriptors open for a given signal, the signal still seems to stay pending within the signalfd mechanism? -- Dave Mielke | 2213 Fox Crescent

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
disconnection? Completion. urb-signr is set to 34 (SIGRTMIN), and that's the signal I'm getting. Did you turn off the device while the URB was in progress, or was the device turned off all along? It was turned off all along. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
be different like that? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com/ -- To unsubscribe from this list: send the line

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
reap waits forever. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com/ -- To unsubscribe from this list: send the line unsubscribe

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
to the thread that submitted the urb or to the whole process? If to the whole process, is there a way to redirect it to just the thread? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
never does anything to deliver the completion signal until a urb has actually completed then what might it be doing to trigger a signalfd notificatoin earlier than that? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
whereas a signalfd notification would occur immediately. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com/ -- To unsubscribe from

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
expecting, it returns 0, and then the non-blocking reap changes to returning -1 with ENOENT. Because when you cancel the URB, it completes. Which also would seem to verify that there's only that one urb. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1

Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
like it's specifically not being executed if the error is -ENOENT. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
, IOCTL_USBFS_DISCARDURB, ) instead of REAP? If I give it the address of the urb I'm expecting, it returns 0, and then the non-blocking reap changes to returning -1 with ENOENT. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
Just like the siginfo data has fields that must be left over from somewhere else, might it be that the user urb is copied, without clearing the signr field, to initialize an underlying system-provided urb? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
that? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com/ -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
application (brltty, if you're curious) is a set of event handlers that come and go as needed. The signalfd notification is appearing on the very first call to poll() after the urb is submitted. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
completion, do you? No, there's none of that kind of stuff in there. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com/ -- To unsubscribe

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
What might it mean that ssi_addr is NULL? Is a non-user urb ever submitted underneath that might be causing the notification? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d

Re: Unable to reap urb after receiving signal using usbfs.

2015-02-11 Thread Dave Mielke
on the previous attempt is delivered. Flushing the signalfd file descriptor before closing it resolves the problem. I guess we all know a little bit more about signalfd now. :-_) Thank you for bearing with me. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726

Detecting removed ttyUSBn device with poll().

2014-08-30 Thread Dave Mielke
the HUPCL termios attribute on the serial device. None of these seem to work, i.e. poll() doesn't come out of its wait when I disconnect the USB to serial adapter. In case it matters, I'm using 3.11.10-100.fc18.x86_64. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God

Re: Detecting removed ttyUSBn device with poll().

2014-08-30 Thread Dave Mielke
when I unplugged the device. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com/ -- To unsubscribe from this list: send the line

Re: Detecting removed ttyUSBn device with poll().

2014-08-30 Thread Dave Mielke
-canonical read should perhaps be returning -1 with errno set appropriately. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com

Re: ETIME on usbfs read of bulk input endpoint.

2014-05-01 Thread Dave Mielke
in ETIME because, perhaps, a lower layer fails the transfer, and then, maybe, a higher layer sees it as a response failure? -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc

ETIME on usbfs read of bulk input endpoint.

2014-04-30 Thread Dave Mielke
expired. My understanding is that ETIME means that the device isn't responding. Given that our log is showing only 10 milliseconds between the clear halt and the bulk read, however, I'm doubting that that's the cause. What else might it be? -- Dave Mielke | 2213 Fox Crescent | The Bible

Re: ETIME on usbfs read of bulk input endpoint.

2014-04-30 Thread Dave Mielke
the start of the bulk transfer and the reported error. What else might it be? A bug in the host controller hardware or driver, perhaps. But that seems rather unlikely. Since it does work on Windows, I kind of doubt it. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word

Re: USB Serial constantly polling

2014-02-23 Thread Dave Mielke
to immediate as soon as we get data. We also only use a single URB. It works quite well. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http

CP2102 mystery - ttyUSB0 vs usbfs

2014-01-03 Thread Dave Mielke
which, on all platforms, will work correctly in a portable way. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com/ ---BeginMessage

CP2102 mystery - ttyUSB0 vs usbfsbrltty/Projects/BrailleMemo/usbmon-ttyUSB0

2013-12-06 Thread Dave Mielke
for many devices. Is there a possibility, though, that the kernel support for the CP2102 doesn't work this way? I'd sure appreciate any help on this issue as I've been staring at it for a couple of weeks now and haven't been able to spot the problem. -- Dave Mielke | 2213 Fox

Re: CP2102 mystery - ttyUSB0 vs usbfsbrltty/Projects/BrailleMemo/usbmon-ttyUSB0

2013-12-06 Thread Dave Mielke
on my own, already. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/ EMail: d...@mielke.cc | Canada K2A 1H7 | http://FamilyRadio.com/ -- To unsubscribe from this list: send the line