From: Andrew Lutomirski <luto@mit.edu>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, gregkh@suse.de
Subject: Re: Is anyone maintaining (or even using) usbtmc?
Date: Mon, 3 Aug 2009 17:49:09 -0400 [thread overview]
Message-ID: <cb0375e10908031449l2005a468v9683eb5a078cf226@mail.gmail.com> (raw)
In-Reply-To: <20090803212015.GC28579@kroah.com>
On Mon, Aug 3, 2009 at 5:20 PM, Greg KH<greg@kroah.com> wrote:
> On Mon, Aug 03, 2009 at 05:14:56PM -0400, Andrew Lutomirski wrote:
>> Hi all-
>>
>> I'm trying to use usbtmc on an Aglient N9310A (The only TMC device I
>> have), and it sort of works, but it seems to be both extremely buggy
>> and missing a good deal of rather important functionality. Is there
>> anyone maintaining it?
>
> Yes, me.
>
>> If the answer is yes, I can describe the bugs (logspam, spurious
>> errors, delayed messages, inability to read status, etc.) in greater
>> detail.
>
> Please do, but also please use the latest version, in 2.6.30.3, we fixed
> some bad problems in it recently.
I am.
Almost anything I do triggers this:
usbtmc 3-1:1.0: Unable to read data, error -110
The easiest way is to write something that wasn't a query and then try
to read. Of course, the read should fail, but there's no reason it
should spam the logs.
On occasion, sending garbage to the device will cause even a
subsequent USBTMC_IOCTL_CLEAR to fail with ETIMEDOUT. (Maybe I wanted
USBTMC_IOCTL_ABORT_BULK_IN? That seems wrong, though, since
presumably the driver should manage pending Bulk-IN requests on its
own.)
On other occasions (usually triggered by sending a garbage command,
but, when this happens, the problem persists across several messages),
every response will be delayed. That is, if I send a query, I get
back the previous query's answer or ETIMEDOUT if the previous command
wasn't a query. This persists across closing and reopening the
device.
Sometimes write() fails with ETIMEDOUT. This failure happens with no
perceivable delay and I have no idea why.
An ioctl for GET_CAPABILITIES would be nice, but is not mandatory.
Finally, I see no way to read the USB488 status byte or detect a
status interrupt.
>
>> Is anyone using usbtmc, or, more specifically, does anyone care about
>> backward compatibility?
>
> What do you want to change in the driver interface?
The main compatibility-breaking change is that I'd like to see
close/reopen go through the whole resynchronization procedure so that
the device starts in a sane state. Currently I restore sanity by
doing a bunch of reads and ignoring ETIMEDOUT.
--Andy
next prev parent reply other threads:[~2009-08-03 21:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 21:14 Andrew Lutomirski
2009-08-03 21:20 ` Greg KH
2009-08-03 21:49 ` Andrew Lutomirski [this message]
2009-08-03 22:01 ` Andrew Lutomirski
2009-08-03 23:00 ` Andrew Lutomirski
2009-08-04 15:32 ` Juergen Beisert
2009-08-06 19:55 ` Greg KH
2009-08-06 19:54 ` Greg KH
2009-08-06 12:19 ` Zimmermann Christoph
2009-08-06 15:38 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cb0375e10908031449l2005a468v9683eb5a078cf226@mail.gmail.com \
--to=luto@mit.edu \
--cc=greg@kroah.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®